![]() |
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 |
| Exiting a script | lassimanji | Shell Programming and Scripting | 7 | 05-05-2009 02:02 PM |
| Shell script..invoking command and exiting at fixed intervals | rajuak12 | Shell Programming and Scripting | 1 | 07-19-2008 09:34 AM |
| Script Not Exiting??? | lesstjm | Shell Programming and Scripting | 1 | 07-11-2007 11:58 AM |
| Shell script not exiting Gracefully | smithK | Shell Programming and Scripting | 5 | 02-08-2007 06:48 PM |
| Terminate session on completing script | deepsteptom | Shell Programming and Scripting | 4 | 06-08-2004 10:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shell script exiting before completing
I have a script which has the following statement,
/opt/oracle/product/9i/bin/sqlplus << EOC >> $LOG_FILE 2>&1 username/password ---- Enters the SQL prompt @/export/home/oracle/shells/grant_userview.sql ---Runs the SQL script @/export/home/oracle/shells/grant_proc_userview.sql ---Runs the SQL script @/export/home/oracle/shells/createindex.sql ---Runs the SQL script exit --- Exits the SQL prompt EOC imp system/password file=/oradata/temp/user.dmp fromuser=user 1 touser=user2 indexes=y log=user.log -- Runs on $ prompt. The statement in red above doesnt run. When run out of the script manually it succeeds, I am trying to figure if i have to move this "exit" below the last line, Please advice |
|
||||
|
Does it produce an error?
(and what is the 1 between the fromuser and touser part)? Code:
fromuser=user 1 touser=user2 The exit isn't neccessary either in the SQL*Plus or the script. You should replace it with a / in the SQL. |
|
||||
|
Hi Scottn/fpmurhpy,
No there is no export of username/password required in the script because it contains the original username and password. This script was running and since couple of days it terminates and doesnt run that imp command. Thanks. |