The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with EXPECT script hanging markus2008 UNIX for Dummies Questions & Answers 0 03-11-2008 12:44 PM
Hanging port? NycUnxer UNIX for Dummies Questions & Answers 1 01-09-2008 11:21 AM
hanging sockets!??! Naanu SUN Solaris 1 02-08-2007 06:15 PM
script hanging - remsh vivsiv Shell Programming and Scripting 2 07-09-2006 12:41 PM
How to find a hanging pid Ravi Kanth UNIX for Dummies Questions & Answers 6 01-12-2002 08:31 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-20-2001
inquirer
Guest
 

Posts: n/a
Exclamation hanging sql script

Need your help pls...

I have integrated my shell script with sqlplus statements that will fetch necessary data for the rest of the script. As observed, sometimes problems at the oracle database occurs wherein users can not login via sqlplus, so does the script. During execution, the logging of username and password will be rejected and will be asked 3 times before exit. But the script will only login once that is why, the scripts hangs and is unable to continue.

Is there anyway that I can specify so that at logon it will only prompt me once and if error occurs it will exit immediately?

Thanks.
Forum Sponsor
  #2  
Old 12-21-2001
Jimbo
Guest
 

Posts: n/a
I do not know how to suppress the additional connection attempts. On failure to connect, my batch script will hang when coded like this:

sqlplus scott/tiger @ myscript.sql

But if I use a redirected stdin, it will not hang:

sqlplus scott/tiger << endplus
@ myscript.sql
endplus
  #3  
Old 12-26-2001
inquirer
Guest
 

Posts: n/a
Question compatibility

i've seen this before...

i'm using bourne shell is it compatible?

for example:

...
sqlplus scott/tiger << endplus
@ myscript.sql
endplus
ls -l
date
... etc.

i mean is this syntax will be compatible if combined with other syntax under bourne shell?

thanks
  #4  
Old 12-26-2001
Jimbo
Guest
 

Posts: n/a
Sure, once the "endplus" (or whatever name you choose to assign) closes out the sqlplus, the script will continue with the following commands.
  #5  
Old 12-26-2001
inquirer
Guest
 

Posts: n/a
Talking thanks

it worked like a charm... thanks
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0