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 -> connecting automatically as sys

connecting automatically as sys

From: jonathan <ttyp32000_at_yahoo.com>
Date: 15 Jul 2004 21:56:27 -0700
Message-ID: <f05e664d.0407152056.3bbd47df@posting.google.com>


Ok,

I have a bizarre one - I want to automate a script that uses the 'sys' user, but when I try to log in via sqlplus:

sqlplus sys/.....@......

I get the message 'permission denied: sys should connect as sysdba'.

but when I try:

sqlplus sysdba/.....@.....

I get the message 'incorrect password'. So - I *can* do:

connect sys/.....@..... as sysdba

at the beginning of the script - but I'm loathe to do this because I don'
want the user/password string in the sql file.

So - how can one cleanly automate this? Preferably, I'd want to do this all from environmental variables so I don't have the password displayed at all inside the process table...

thanks much,

jon Received on Thu Jul 15 2004 - 23:56:27 CDT

Original text of this message

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