Varad, The .NET Guy!

Exploring the excitement of Microsoft .NET and much more..

Executing Oracle Stored Proc from SQL+

Just for self!

To execute an Oracle stored procedure in a package that returns a refcursor follow the below command:

SQL> set num 2
SQL> set linesize 1500
SQL> var refc refcursor
SQL> exec pkg_report.sp_get_bdg_clnt_grd_smry_det(2899, :refc);

PL/SQL procedure successfully completed.

To print the executed results, use the below command:

SQL> print refc

 

Posted: Jun 29 2006, 02:59 PM by Varad | with no comments
Filed under:

Comments

No Comments