- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dbms_output
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2004 08:49 PM
тАО02-08-2004 08:49 PM
also
When outputing a data line can this start with spaces?
Regards,
John.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2004 11:07 PM
тАО02-08-2004 11:07 PM
Re: dbms_output
use chr(10) for blank lines...
Tried these:
yd@MYDB.MU> exec dbms_output.put_line('Hello');
Hello
PL/SQL procedure successfully completed.
Elapsed: 00:00:01.94
yd@MYDB.MU> exec dbms_output.put_line(chr(10)||'Hello'||chr(10));
Hello
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
yd@MYDB.MU>
hope this helps!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2004 11:18 PM
тАО02-08-2004 11:18 PM
Re: dbms_output
Blank lines can be done just with
dbms_output.put_line('') ;
If you want to use leading spaces, you need to specify FORMAT WRAP before firing off the pl/sql
eg
SET SERVEROUTPUT ON SIZE 1000000 FORMAT WRAP
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2004 11:20 PM
тАО02-08-2004 11:20 PM
Re: dbms_output
for leading spaces, the best i could do till now is:
yd@MYDB.MU> exec dbms_output.put_line('.'||' '||'Hello');
. Hello
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.48
working on it
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 01:13 AM
тАО02-09-2004 01:13 AM
Re: dbms_output
The only solution that seems to work is '.'. I have been using this but it does not give the best output. The chr(10) solution seems to skip 2 lines.
Regards,
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 12:45 PM
тАО02-09-2004 12:45 PM
Solution1 begin
2 dbms_output.enable(200000);
3 dbms_output.put_line('Line 1');
4 dbms_output.put_line(chr(7));
5 dbms_output.put_line('Line 2');
6* end;
SQL> /
Line 1
Line 2
PL/SQL procedure successfully completed.
SQL>
The chr(7) is the bell character which won't print and should be benign to most printers and terminals. You could try some other unprintable characters like chr(1) stx if memory serves. It didn't bother my hpterm emulator.
good luck