The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-30-2004
etravels etravels is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 12
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0