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!

capture output of SQL command to a file..

MURTAZA IQBALOct 18 2014 — edited Oct 19 2014

Hi,

I want to capture output of sql command.

i know how to spool but problem is spooled file contains the sql command too.

I just want to capture the result of the command just like in linux redirecting process

for example... i want to capture the result of

select 'drop '||object_type||' '|| object_name||' purge;' from user_objects;

Capture.JPG

and than redirect it to a file so it will only contain the result of the sql query.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2014
Added on Oct 18 2014
2 comments
2,068 views