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: How do I access Oracle 8i tables from a korn shell script

Re: How do I access Oracle 8i tables from a korn shell script

From: Steven Hauser <hause011_at_garnet.tc.umn.edu>
Date: 23 Dec 2000 11:27:18 -0600
Message-ID: <922n9m$t3v$1@garnet.tc.umn.edu>

check the man page on ksh for the << (Here Document) Example:
#!/bin/ksh

get_date () {
sqlplus -s << EOF
user/password
select sysdate from dual;
EOF
}

get_date > xxx.txt

-- 

---------------------------------------------------------
Steven Hauser email: hause011@tc.umn.edu URL: http://www.sofbot.com/
---------------------------------------------------------
Received on Sat Dec 23 2000 - 11:27:18 CST

Original text of this message

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