The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SQLPLUS error ssmith001 Shell Programming and Scripting 3 07-22-2008 01:00 PM
Sqlplus LiquidChild Shell Programming and Scripting 9 06-01-2007 12:22 PM
Sqlplus antkiu Shell Programming and Scripting 4 09-14-2006 01:36 AM
Need to capture ERROR msg and stack trace gswhoops Shell Programming and Scripting 2 01-11-2006 07:51 PM
error connecting to sqlplus papachi UNIX for Dummies Questions & Answers 2 05-23-2005 12:05 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-05-2004
w33man w33man is offline
Registered User
  
 

Join Date: Sep 2003
Posts: 20
sqlplus -s error capture

Hi folks a wee problem that requires some help.

I am writing a script that allows me to automate the changing of a password in sqlplus

the problem i encounter is that the code contains a case statement that allows the helpdesk to select whether to allow or deny access by switching the password, this works fine unless you select the password already held in the sql password field

the environment is such that I have to press the enter key three times (because of error messages)

this then throws me out of oracle db and back to my menu

is there anyway I can overcome this so that if there is an error I can return straight to the menu

this is my code
sqlplus -s the_username/${the current password} @set_password ${the new password}
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0