Home » Infrastructure » Unix » Starting & Stopping DB using Script (Oracle 9i, HP-UX)
Starting & Stopping DB using Script [message #314605] Thu, 17 April 2008 05:00 Go to next message
Brayan
Messages: 315
Registered: June 2002
Senior Member
Hi,

I have following part of the script to stop database in HP-UX.
       sqlplus /nolog <<EOF
       connect / as sysdba
       shutdown immediate
       EOF


But while running the script it gives error
dbPROD.sh[6]: Syntax error at line 13 : `<<' is not matched.


What could be wrong.

Brayan.
Re: Starting & Stopping DB using Script [message #314606 is a reply to message #314605] Thu, 17 April 2008 05:07 Go to previous messageGo to next message
ThomasG
Messages: 3189
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
`<<' is not matched, like it says.

Make sure there are no blanks or other invisible characters before or after both of the EOFs
Re: Starting & Stopping DB using Script [message #314607 is a reply to message #314605] Thu, 17 April 2008 05:07 Go to previous message
varu123
Messages: 754
Registered: October 2007
Senior Member
In linux it works fine,don't what syntax it takes in HP-UX.
Google it.
Previous Topic: Read and Write to same file in Unix Shell Script
Next Topic: tail command and time stamp
Goto Forum:
  


Current Time: Fri Dec 02 23:00:01 CST 2016

Total time taken to generate the page: 0.08621 seconds