Explain Oracle authentication methods.
In Oracle Database, authentication is the "gatekeeper" process that verifies a user's identity before allowing them into the system. Depending on your security requirements, this can range from a simple password to sophisticated biometric or certificate-based logins.
Oracle classifies these methods into four primary categories:
This is the most common method. The database itself stores the credentials.
How it works: When you create a user (CREATE USER scott IDENTIFIED BY tiger;), the username and a salted hash of the password are stored in the data dictionary (the SYS.USER$ table).
Pros: Simple to set up; no external dependencies.
Cons: Managing passwords for thousands of users across multiple databases becomes an administrative nightmare.
In this mode, Oracle trusts the Operating System (OS) to verify who you are.
How it works: If you are logged into a Linux server as oracle, you can type sqlplus / as sysdba. Oracle sees you are already authenticated by the OS and lets you in without a password.
The "OPS$" Prefix: Traditionally, these users were identified by the prefix OPS$ (e.g., CREATE USER ops$jsmith IDENTIFIED EXTERNALLY;).
Use Case: Primarily used for local administration and automated cron jobs/scripts.
This is the "Enterprise Standard" for 2026. Instead of every database having its own list of users, the database points to a central corporate directory.
Active Directory (AD) / LDAP: Oracle maps database roles and users directly to Active Directory groups. If an employee leaves the company and their AD account is disabled, their database access is instantly revoked everywhere.
Kerberos: Provides "Single Sign-On" (SSO). Once you log into your Windows workstation, you can connect to the database without re-entering your password.
For high-security environments, Oracle supports Oracle Identity Cloud Service (IDCS) and IAM (Identity and Access Management) integration.
Token-Based: Users can authenticate using Azure AD tokens or OCI IAM tokens.
PKI (Public Key Infrastructure): Users authenticate via digital certificates stored on smart cards or hardware security modules (HSM). No passwords are exchanged over the network.
| Method | Where Credentials Live | Best For |
| Database | Inside the DB | Small apps / Local testing. |
| OS | Operating System | DBAs and local scripts. |
| LDAP/AD | Central Directory | Large enterprises / Compliance. |
| IAM/Tokens | Cloud Identity Provider | Modern Cloud/Hybrid architectures. |
If the database is shut down, Oracle cannot check the data dictionary to see if your password is correct. To solve this, Oracle uses a Physical Password File (usually orapw<SID>) located at the OS level. This file allows administrators to authenticate and start the database even when the data files are closed.
In 2026, security audits frequently flag "Database Authentication" as a risk. The industry trend is moving toward Passwordless Authentication using IAM tokens or Kerberos. This eliminates the risk of "credential stuffing" attacks and hardcoded passwords in application code.