How to connect SYS from SQLPLUS [message #174430] |
Mon, 29 May 2006 04:17  |
sruthi
Messages: 23 Registered: May 2006
|
Junior Member |
|
|
Dear all
I could connect DB usnig TOAD,OEM for SYS. But when i try to connect from SQLPLUS it is giving the follwing error.
ORA-01031: insufficient privileges.
Note: This is from cleint mechine.
Farook Quisar
|
|
|
|
|
|
|
Re: How to connect SYS from SQLPLUS [message #175571 is a reply to message #175455] |
Fri, 02 June 2006 23:20   |
sruthi
Messages: 23 Registered: May 2006
|
Junior Member |
|
|
Thanks Bijupm,
I did try as u suggested(connect sys/password@database as sysdba; ), but it is gving the error:"ORA-12154: TNS:could not resolve service name". But Im able to connect from OEM or TOAD without any problem.
Sruthi
|
|
|
|
|
|
|
|
|
|
Re: How to connect SYS from SQLPLUS [message #175621 is a reply to message #175617] |
Sat, 03 June 2006 07:47   |
Art Metzer
Messages: 2480 Registered: December 2002
|
Senior Member |
|
|
Is there a file called login.sql in the directory from which you are launching SQL*Plus? Does it contain any calls that your user does not have permissions to execute? Failing that, I would hunt down any glogin.sql file, and similarly look for subprogram calls your user is not privileged to make.
|
|
|
Re: How to connect SYS from SQLPLUS [message #175645 is a reply to message #175621] |
Sat, 03 June 2006 23:28   |
sruthi
Messages: 23 Registered: May 2006
|
Junior Member |
|
|
hi Art Metzer,
There is no calls in the login.sql which is not having permission to the user. Remind you that the user is SYS. And as per your suggetion I commented out all the commands in login.sql and still in vien. And one more thing I can still access the SQLPLUS from TOAD for sys, but when i try to connect directly it is gving the error.
thnks
Farook Quisar.
|
|
|
Re: How to connect SYS from SQLPLUS [message #180852 is a reply to message #174430] |
Wed, 05 July 2006 08:55   |
Chewie71
Messages: 19 Registered: October 2005 Location: WIU
|
Junior Member |
|
|
Did this ever get resolved? I'm having the exact same problem. Cannot connect to the database through SQLPlus or RMAN.
$ rman target sys/syspass@dbname
...gets this result...
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges
Going into SQLPlus...
$ sqlplus /nolog
SQL> connect sys/syspass@dbname as sysdba
gets this result...
ERROR:
ORA-01031: insufficient privileges
Help!!
Thanks,
Matt
|
|
|
|
Re: How to connect SYS from SQLPLUS [message #180856 is a reply to message #180854] |
Wed, 05 July 2006 09:11   |
Chewie71
Messages: 19 Registered: October 2005 Location: WIU
|
Junior Member |
|
|
nirav_hyd wrote on Wed, 05 July 2006 09:03 | To: Chewie71. In your scenario:
Connecting as sys remotely also requires that password file be set up. was that done?
|
Yes...I used the orapwd command to create the password file in $ORACLE_HOME/dbs.
Thanks,
Matt
|
|
|
|