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!

using spool in a procedure

907301Jul 8 2013 — edited Jul 9 2013

Hi,

I've a package with 6 procedures.

In one procedure I need to load the data into a flat file. The procedure contains only one select statement.

example:

procedure pro_test as

select * from emp;

end pro_test;

Shell script is being used to call one procedure inside the package and that procedure is calling remaining procedures inside it.

connected to database using sqlplus.

Can anyone help me out how I can spool the select statement inside the procedure. Version of oracle is 11g.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2013
Added on Jul 8 2013
8 comments
28,499 views