sqlplus lgin script
i have the following script which when run from the linux sercer does not give me the sqlplus prompt...it does the su and leaves it there insted of continuing. Please assist. The target is to run the script and it shd su and login to sqlplus
<#!/bin/sh su -l oracle export ORACLE_SID=MYDB sqlplus user/password #> ~ |
Quote:
|
you could use the -c option http://linux.die.net/man/1/su
Code:
su - l oracle -c "export ORACLE_SID=MYDB && sqlplus user/password" Code:
su -l oracle -c "sqlplus user/password @mysqlfile.sql" |
All times are GMT -5. The time now is 05:48 AM. |