Oracle Database - How to connect SYS as SYSDBA without password

1 - About

When you connect as sysdba issuing a 'CONNECT / AS SYSDBA', Oracle checks if your account is a member of the os group 'ORA_sid_DBA' or 'ORA_DBA' group.

Operating System Group UNIX User Group Windows User Group

3 - Check

To make a user an administrative user simply:

  • Create a LOCAL user
  • Create a local NT group ORA_DBA or ORA_sid_DBA where 'sid' is in upper case
  • Add the user to the ORA_DBA or ORA_sid_DBA group
  • Check for registry variable called LOCAL in the 9.2 Oracle Home Key in the registry. If this is set, unset the registry variable.

That user should now be able to “connect / as sysdba”

4 - Support

If the check requirements are not met, you receive an ORA-01031 error.

C:\Documents and Settings\gerardnico>sqlplus / as sysdba
SQL*Plus: Release - Production on Tue Jun 9 14:28:12 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
ORA-01031: insufficient privileges

5 - Reference

db/oracle/connect_as_sys_without_password.txt · Last modified: 2017/12/12 14:16 by gerardnico