How To Create Password File
Creating Oracle Database Password Files
Introduction
Oracle database password files store privileged user credentials (like SYS and SYSTEM) to enable remote database administration. This guide covers creating password files in both Windows and Linux environments with security best practices.
Password File Basics
- Stores encrypted passwords for users with SYSDBA, SYSOPER, and SYSASM privileges
- Required for remote database administration
- File naming conventions differ by OS
- Created using the
orapwd
utility
Windows Environment
Step-by-Step Instructions
- Open Command Prompt as Administrator
- Navigate to ORACLE_HOME:
cd %ORACLE_HOME%\database
- Create the password file:
orapwd file=%ORACLE_HOME%\database\pwdORCL.ora password=Str0ngP@ssw0rd entries=30 ignorecase=n force=y
Parameter Explanation:
file
: Path and filename (convention: pwd[SID].ora)password
: Password for SYS and other privileged usersentries
: Maximum number of privileged usersignorecase
: Case sensitivity (n=case sensitive)force
: Overwrite existing file (y=yes)
Linux/Unix Environment
Step-by-Step Instructions
- Open terminal as oracle user
- Navigate to $ORACLE_HOME/dbs
- Create the password file:
orapwd file=$ORACLE_HOME/dbs/orapwORCL password=V3ryS3cureP@ss entries=20 force=y
Security Considerations
File Protection
- Restrict read access to DBAs only
- Monitor for unauthorized changes
Password Complexity
- Minimum 12 characters
- Mix uppercase, lowercase, numbers, special characters
- Avoid dictionary words
0 comments:
Post a Comment