Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FORMATTING SQLPLUS OUTPUT

LibraDBASep 13 2007 — edited Sep 14 2007
I am running a shell script

shell script
#!/bin/sh
sqlplus /nolog <<EOF>/ora01/file1
CONNECT aaa/bbb@abc
select table_name from user_tables;
exit
EOF

output


SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 13 17:01:53 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> Connected.
SQL> SQL> SQL> SQL> SQL>
COUNTRIES
REGIONS
JOBS
JOB_HISTORY
EMPLOYEES
DEPARTMENTS
LOCATIONS
SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options


desired result

COUNTRIES
REGIONS
JOBS
JOB_HISTORY
EMPLOYEES
DEPARTMENTS
LOCATIONS

how can i format my sqlplus output so that my desired result is as above.

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2007
Added on Sep 13 2007
8 comments
1,023 views