I'm a little confused.  It sounds like what you're trying to do is:

#!/bin/ksh
echo "Look at me!  I'm in a Unix script!"
sleep 5
sqlplus << EOF
system/incredibly_secret_password
select 'Look at me... here in SQL*Plus!  Life is grand!' 
from dual;
!echo "Where am I?  I'm so confused!  There's an orange elephant here!"
exit
EOF
echo "Wasn't that fun?"
exit

HTH,
Bambi.

-----Original Message-----
Sent: Friday, February 08, 2002 8:23 AM
To: Multiple recipients of list ORACLE-L

I have a Unix batch script that calls a short (5 line) SQL script.  Is there
any way to include the SQL statements in the Unix script
instead of calling the SQL?
 
Ron Smith 
DBA 
Kerr-McGee Corp 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bellows, Bambi
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to