Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Calling SQL statement
!/bin/ksh
sqlplus / <<EOF
select sysdate from dual;
EOF
exit
>>> waibals_at_mtn.co.ug 03/14/02 06:26AM >>>
Hi all,
How do I issue SQL staments to the Oracle server from shell scripts
-preferably korn shell. Example scripts highly welcome.
Thanx 'n Ciao
+---------------------------------------------------+CSW,
+---------------------------------------------------+
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Simon Waibale INET: waibals_at_mtn.co.ug 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: Gene Sais INET: Gsais_at_co.palm-beach.fl.us 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 Thu Mar 14 2002 - 07:33:25 CST