How to change oc4jadmin password for Application Server

How to change oc4jadmin password for Application Server 
You have to change the oc4jadmin password for a remote account without using  Application Server Control:
Locate the following configuration file in the Oracle home of the OC4J instance: vi ORACLE_HOME/oc4j_instance_name/j2ee/home/config/system-jazn-data.xml

Edit the system-jazn-data.xml file and locate the following entry for the oc4jadminuser:      


<user>
     <name>oc4jadmin</name>
     <display-name>OC4J Administrator</display-name>
     <guid>41A2E560C96711DABFD08D3BF8B780C4</guid>description>OC4J Administrator</description><credentials>{903}4nlfYYDwaqMJipVbGXuS2ce8egfwBPqp</credentials> 
</user>
Replace the value of the <credentials> element with the new password. Be sure to include an exclamation point character (!) before the password.For example:



<credentials>!welcome123</credentials>


 The exclamation point ensures that the password will be encrypted in the configuration file. 
 Save your changes and exit the system-jazn-data.xmlfile.


Restart the OC4J instance.


nohup $ORACLE_HOME/bin/oc4j -start &

After the restart, the Application Server Control will use your new Administrator (oc4jadmin)password, which will be stored in encrypted format within the system-jazn-data.xml file.


 Now we can login through a application console with a new password of oc4jadmin.

  • April 30, 2016 | 28 views
  • Comments