DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Monday, June 27, 2016

Changing the oc4jadmin password for a Application Server

Log in to the server where oc4j is running

Locate the following configuration file in the Oracle home of the OC4J instance:

ORACLE_HOME/j2ee/oc4j_instance_name/config/system-jazn-data.xml    

vi system-jazn-data.xml file and locate the following entry for the oc4jadmin
user:

<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>

In this example, replace “welcome123” with the actual password you want to use. The exclamation point ensures that the password will be encrypted in the configuration file.

Save your changes and exit the system-jazn-data.xml file.

Restart the OC4J instance.For example, use the following Oracle Process Manager and Notification Server (OPMN) commands to stop and then start the Oracle Application Server instance:

ORACLE_HOME/opmn/bin/opmnctl stopall
ORACLE_HOME/opmn/bin/opmnctl startall

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.

No comments: