Home » Infrastructure » Unix » Shell script
Shell script [message #184843] Fri, 28 July 2006 05:24 Go to next message
gkrishn
Messages: 506
Registered: December 2005
Location: Putty a dark screen
Senior Member
#!/usr/bin/ksh
HOST=`uname -a|awk '{print $2}'`

$ORACLE_HOME/bin/sqlplus /nolog << EOF
conn / as sysdba
@/u01/app/oracle/admin/rwp/create/rwp1/data_load.sql
EOF

What does the first two lines do?
Why two EOF is required?
Re: Shell script [message #184846 is a reply to message #184843] Fri, 28 July 2006 05:36 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
One for opening the in-line script and the last one to close/end it.
icon11.gif  Re: Shell script [message #184849 is a reply to message #184843] Fri, 28 July 2006 05:47 Go to previous message
gkrishn
Messages: 506
Registered: December 2005
Location: Putty a dark screen
Senior Member
Sorry I dont understand !!

What does the first two lines do?
Why two EOF is required?why EOF is used ?
Previous Topic: SQL*Plus does not exit - shell script
Next Topic: FTP a file through UNIX script.--URGENT
Goto Forum:
  


Current Time: Mon Nov 25 18:12:21 CST 2024