dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

How to execute Oracle stored procedures within Squirrel SQL ? - Oracle Tools

This is a discussion on How to execute Oracle stored procedures within Squirrel SQL ? - Oracle Tools ; Hi all How to execute Oracle stored procedures from within Squirrel SQL. I know "exec " works in SQL Plus. Thanks Steve...


Home > Database Forum > Oracle Database > Oracle Tools > How to execute Oracle stored procedures within Squirrel SQL ?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 12-27-2005, 02:50 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default How to execute Oracle stored procedures within Squirrel SQL ?

Hi all

How to execute Oracle stored procedures from within Squirrel SQL.

I know "exec " works in SQL Plus.

Thanks
Steve

Reply With Quote
  #2  
Old 12-27-2005, 03:14 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: How to execute Oracle stored procedures within Squirrel SQL ?


"stonecoldsteve" wrote in message
news:1135709390.008154.264630@g43g2000cwa.googlegr oups.com...
> Hi all
>
> How to execute Oracle stored procedures from within Squirrel SQL.
>
> I know "exec " works in SQL Plus.
>
> Thanks
> Steve
>


don't know what Squirrel SQL is, but...

'exec' is a SQL*Plus command which is a shortcut for an anonymous
procedure -- that's why error messages (unhandled exceptions) look like
this:

SQL> exec some_procedure
BEGIN some_procedure; END;

*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SOME_PROCEDURE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

the actual syntax to execute a stored procedure from any environment that
can pass SQL to the database is usually to wrap the stored procedure call in
an anonymous block, aka:

BEGIN some_procedure; END;

++ mcs


Reply With Quote
  #3  
Old 08-27-2008, 01:33 PM
Database Newbie
 
Join Date: Aug 2008
Posts: 1
jaaguilarb is on a distinguished road
Default Re: How to execute Oracle stored procedures within Squirrel SQL ?

Hi all.

In SquirrelSQL I can execute an Stored Procedure in this way:

call SP_NAME (PARAM1, PARAM2, ...)
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 02:50 AM.