Home » RDBMS Server » Security » ORA-01031: insufficient privileges when conn sys/password as sysdba
|
|
Re: ORA-01031: insufficient privileges when conn sys/password as sysdba [message #132674 is a reply to message #132670] |
Mon, 15 August 2005 11:10  |
alliejane
Messages: 59 Registered: July 2005 Location: Glasgow
|
Member |
|
|
When you log on from the server itself the database is using Operating Authentication, that is Oracle checks that the user you've logged onto the server as is a member of an OS group called dba (or oradba), if it is then you can use the "as sysdba" and you get access.
This will of course not work if your on a client - the database had no real way of checking your client OS user (you can set REMOTE_OS_AUTHENTICATION = TRUE but thats not recommended) the recommended way of using sysdba from a client is by setting up a password file.
You do this by running the utility orapwd from a command line.
orapwd file=$ORACLE_HOME/dbs/orapwsid password=secure entries=5
This will automatically create a password file with the sys user in it, and allow you to log on remotely using
connect sys/secure@db as sysdba
Hope that helps
Allie
|
|
|
Goto Forum:
Current Time: Wed Jun 18 18:10:15 CDT 2025
|