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

Home -> Community -> Usenet -> c.d.o.server -> Re: Running an SQL script from C Shell (Unix)

Re: Running an SQL script from C Shell (Unix)

From: Steven Hauser <hause011_at_garnet.tc.umn.edu>
Date: 4 Oct 2000 13:37:21 -0500
Message-ID: <8rftd1$ptn$1@garnet.tc.umn.edu>

use a real shell like sh or korn
and a "here document" this also hides the user/password. But you could pass in parameters if needed.

sqlplus << EOF
user/password
select blah from bleah;
exit;
EOF

-- 

---------------------------------------------------------
Steven Hauser email: hause011@tc.umn.edu URL: http://www.tc.umn.edu/~hause011
---------------------------------------------------------
Received on Wed Oct 04 2000 - 13:37:21 CDT

Original text of this message

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