|
|
Re: calling procedure in unix shell script-1 [message #239957 is a reply to message #239913] |
Wed, 23 May 2007 13:57 |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
#!/bin/ksh -x
# make env file avail to this script
. $HOME/.profile_mydb
$ORACLE_HOME/bin/sqlplus /NOLOG <<HERE
-- Exit with failure, if SQL, PL/SQL or OS error is raised in top level proc
WHENEVER SQLERROR EXIT FAILURE;
WHENEVER OSERROR EXIT FAILURE;
CONNECT oracle/password
@$ORACLE_HOME/rdbms/admin/exampleeeeeee.sql
Exit
Exit 0
save it with .sh and run it like
.my_script.sh
[Updated on: Wed, 23 May 2007 13:58] Report message to a moderator
|
|
|