Creating Os Dbusers
Creating Os Dbusers
By using operating system authentication, you can manage the database users and
their privileges at the Windows level.
To set up operating system–authenticated users, perform the following steps:
1. Set the os_authent_prefix initialization parameter.
os_authent_prefix = “”
2. Shut down and restart the instance.
3. Set the sqlnet.authentication_services parameter in the sqlnet.ora file to NTS.
4. Create a local Windows user named winuser.
5. Enter regedt32 and add the entry:
hklm/software/oracle/home0/osauth_prefix_domain = False
The default value is True.
6. Connect to SQL*Plus.
7. Create an Oracle database user named winuser:
SQL> CREATE USER winuser IDENTIFIED EXTERNALLY;
SQL> GRANT create session TO winuser;
8. Connect to Windows as winuser, and then connect to SQL*Plus.
DOS> sqlplus /
SQL> SHOW USER
SQL> SELECT username, password FROM user_users;