ORA-01031: insufficient privileges when trying to connect as sysdba [message #260132] |
Fri, 17 August 2007 09:57 |
vikramjogi
Messages: 71 Registered: June 2005 Location: Scranton
|
Member |
|
|
Hello All,
I am trying to connect to the database as sys user
Enter Username: sys@rman as sysdba
Enter Password: xxxx
It gives me error ORA-01031: insufficient privileges
But i am able to connect when NOT using the connection string
Enter Username: sys as sysdba
Enter Password:
I checked my Environmental Variables, tried re-creating the password file, and has the remote_login_passwordfile=EXCLUSIVE
But i am able to connect to the Database using the connection string when it is up and running. And NOT able to do the samething when it is shutdown or i am not able to startup the database when using the connection string.
I would greatly appreciate if someone can shed light or let me know if i am missing something here.
Thanks,
Vikram
|
|
|
|
|
|
|
|
Re: ORA-01031: insufficient privileges when trying to connect as sysdba [message #260178 is a reply to message #260132] |
Fri, 17 August 2007 11:47 |
vikramjogi
Messages: 71 Registered: June 2005 Location: Scranton
|
Member |
|
|
Michel,
I am working on AIX. tnsping works fine and returns
$/u/oracle >tnsping rman
TNS Ping Utility for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production on
17-AUG-2007 12:39:22
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = xx.x.xx.xx)(PORT = 1521))) (CONNECT_DATA = (SERVER=DEDICATED) (SERVICE_NAME = rman)))
My tnsnames.ora file looks good.
I am not using sqlnet.ora file at all. Do you think that might have something to do with my issue.
And just to let you know, if i use the connection string to connect to the database it works fine if the database is up and running. But if i shutdown the database using 'sys as sysdba' and try to start it with the connect string sys@rman as sysdba, it fails.
Thanks,
Vikram
|
|
|
|
|
|
Re: ORA-01031: insufficient privileges when trying to connect as sysdba [message #260214 is a reply to message #260132] |
Fri, 17 August 2007 13:32 |
vikramjogi
Messages: 71 Registered: June 2005 Location: Scranton
|
Member |
|
|
I have shutdown the database and tried doing this, i get
$:/u/oracle >rman target sys/xxxx@rman nocatalog
Recovery Manager: Release 9.2.0.5.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges
But again, i started the database and did the same thing, i get
$:/u/oracle >rman target sys/xxxx@rman nocatalog
Recovery Manager: Release 9.2.0.5.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: RMAN (DBID=1441339890)
using target database controlfile instead of recovery catalog
RMAN>
-Vikram
|
|
|
Re: ORA-01031: insufficient privileges when trying to connect as sysdba [message #260217 is a reply to message #260132] |
Fri, 17 August 2007 13:34 |
vikramjogi
Messages: 71 Registered: June 2005 Location: Scranton
|
Member |
|
|
I have shutdown the database and tried doing this, i get
$:/u/oracle >rman target sys/xxxx@rman nocatalog
Recovery Manager: Release 9.2.0.5.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges
But again, i started the database and did the same thing, i get
$:/u/oracle >rman target sys/xxxx@rman nocatalog
Recovery Manager: Release 9.2.0.5.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: RMAN (DBID=1441339890)
using target database controlfile instead of recovery catalog
RMAN>
-Vikram
|
|
|
|
|
|
|
|
|
Re: ORA-01031: insufficient privileges when trying to connect as sysdba [message #260246 is a reply to message #260132] |
Fri, 17 August 2007 15:10 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
What is your OS name & version?
Are you logged directly to the same system where the DB itself is installed & runs?
If so, why are you trying to make a SQL*Net connection (as oppose to using BEQ protocol).
Do you see a record of the connection attemp in listener.log file?
Please post the contents of your listener.ora file.
|
|
|