Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using shell script to log into SQLPLUS
Apparently, ou're attempting to use operating system authentication to
a remote database instance. That doesn't work by default. Its not a
good idea to make it work, not by default.
You're going to need to supply the password for the sys account in this case.
Another option would be to connect to the remote database server (e.g. via an ssh client) and execute the script there. Since you would be running under the credentials of a local account (most likely in the local group "dba" or something similar)
SQL> connect / as sysdba
would succeed.
hth
An additional suggestion would be to post the exact error message, such as "insufficient privileges".
-bdbafh Received on Fri Jan 13 2006 - 13:44:48 CST
![]() |
![]() |