Changing Oracle System Account Passwords

Changing the four most common Oracle system account (SYSTEM, SYS, SYSMAN, & DBSNMP) passwords is a straightforward process. You needn't worry about breaking connections between the database and other systems because they shouldn't be using these accounts.

SYSTEM and SYS can be changed hassle-free from SQL*Plus.

SQL> alter user system identified by new_password;

SYSMAN and DBSNMP are both used by Oracle Enterprise Manager. A little bit of preparation is necessary to keep OEM functioning.

1. Stop DB Console and the Agent.

emctl stop dbconsole
emctl stop agent


2. You can now change the passwords for both accounts.

3. Edit $ORACLE_HOME/sid/sysman/emd/targets.xml

Look for: <property encrypted="TRUE" name="password" value="####"></property>

Put your password in for the value and change ENCRYPTED to FALSE.
When you restart DB Control it will encrypt the password in the file.

4. Edit $ORACLE_HOME/sid/sysman/config/emoms.properties

Set oracle.sysman.eml.mntr.emdRepPwd to your password.
Set oracle.sysman.eml.mntr.emdRepPwdEncrypted to FALSE.

Again, DB Control will encrypt the password when it is restarted.

5. Restart DB Control.

emctl start dbcontrol

Comments

Popular posts from this blog

Auditing user logon and logoff in Oracle

RMAN Restore vs. Recovery - what's the difference?