![]() |
|
|
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 |
| Problem in comparing procedure with file in unix | krishna_gnv | Shell Programming and Scripting | 1 | 03-11-2008 07:45 AM |
| Running PL/SQL procedure via unix | kingofprussia | UNIX for Dummies Questions & Answers | 1 | 04-27-2007 08:29 AM |
| How to call SQL procedure from UNIX Shellscript ? | varungupta | UNIX for Advanced & Expert Users | 1 | 03-05-2007 11:12 AM |
| Installation Procedure of UNIX on a standalone pc | phanikmv | UNIX for Dummies Questions & Answers | 1 | 02-19-2006 06:03 AM |
| calling Oracle procedure from Unix | ssmiths001 | UNIX for Dummies Questions & Answers | 1 | 01-19-2005 10:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to exec a procedure in Unix
I am trying to execute a procedure in Unix:
Here is the deal: I have created a procedure, which works fine,it runs via a Shell script. Now I want to execute that Procedure to it can update all the rows... Currently have the following: shell script: sqlplus $ES_DB_STRING @$ES_PATH/code/other/Data_patches/T5_Update_corp.sql Exit; My procedure creates but its still stuck on SQLPLUS...the 'exit' part does not work secondly I want to execute this so it updates rows.: I havce used the following: spool $ES_LOGS/T5_T5_Update_corp.log Whenever SQLERROR EXIT 1 Whenever OSERROR EXIT 1 SET SERVEROUTPUT ON BEGIN T5_Update_corp; END; / --***************** --* END OF PL/SQL * --***************** -------------------------------------------------------------- -- Check if Exception record was created, if so, set the -- exit code accordingly -------------------------------------------------------------- set feedback off set feedback on spool off exit But returns the following: ' ERROR at line 3 ora -06550 line 3, column 3 pls -00201 idendifier 'T5_Update_corp must be declared PLSQL STATEMENT IGNORED hence it did not work, I just want to exec the above script as in EXEC Update Corp: (all has to be uploaded automatically) |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|