![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing parameter 4m shell script to a DB stored procedure | hema2026 | Shell Programming and Scripting | 0 | 11-16-2007 06:55 AM |
| calling a PL/SQL stored procedure from KSH | BlAhEr | Shell Programming and Scripting | 1 | 10-09-2007 05:18 AM |
| Calling an Oracle Stored Procedure from Unix shell script | Leojhose | Shell Programming and Scripting | 2 | 08-06-2007 06:00 AM |
| Calling stored procedure from shell script | dorisw | Shell Programming and Scripting | 3 | 06-12-2007 05:03 PM |
| Calling MYSQL Stored Procedure? | kshelluser | Shell Programming and Scripting | 3 | 12-19-2006 09:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
calling stored procedure from shell script.
Hi All,
This is a very starnge problem I am having. I have a shell script that calls a stored procedure. Here's my code in shell script: sqlplus "userid/pwd" @file.sql and file.sql has the following statement: exec my_storedProc; Now, when I execute my shell script, nothing happens, the stored procedure is NOT executed. But, if I run the same stored procedure not as a script but, do a sqlplus "userid/password" on UNIX, it brings up the sqlplus prompt. Now if I manually type exec myStoredProc; , it runs just fine. I do not know why it is happening. Also, I am able to run other stored procedures from shell scripts just fine. This is the only stored proceudre that is giving me problem. FYI, my stored procedures access external tables. I checked permissions on the external tables and they have full access. Any suggestions will be appreciated. |
|
||||
|
Quote:
Code:
sqlplus "userid/pwd" <<! set serveroutput on size 1000000 exec my_storedProc; ! Quote:
You can also select something from dual to see if you are able to return any rows from you stored procedure. Thomas Last edited by tmarikle; 04-21-2005 at 07:26 PM.. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|