Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Instream SQL

RE: Instream SQL

From: Bellows, Bambi <BBellows_at_usg.com>
Date: Fri, 08 Feb 2002 09:14:30 -0800
Message-ID: <F001.0040A367.20020208081828@fatcity.com>

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: rlsmith_at_kmg.com

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: ListGuru_at_fatcity.com (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: BBellows_at_usg.com
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: ListGuru_at_fatcity.com (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). Received on Fri Feb 08 2002 - 11:14:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US