eMarcel.com

Oracle Database, Fusion Middleware, Linux

How to change password for Application Server users

To change the oc4jadmin password for a remote account without using Application Server Control:

1. Log in to the operating system where the remote OC4J is installed and running.

  • You have to determine, in which instance “ascontrol” application is up and running, usually it’s “home” instance

2. Locate the following configuration file in the $ORACLE_HOME of the OC4J (home) instance:

$ORACLE_HOME/j2ee/oc4j_instance_name(home)/config/system-jazn-data.xml

3. Use a text editor to open the 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>>EFB28FB027DF11DD8F6459825775987A</guid>
<description>OC4J Administrator</description>
<credentials>{903}4nlfHHRwaqJWipVbGXuS2ce8egfwBPqp</credentials>
</user>

 

4. 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>!new_password_321</credentials>

In this example, new_password_321 with is the actual password you want to use.

The exclamation point ensures that the password will be encrypted in the configuration file.

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

6. Restart an instance.

For example, use the following Oracle Process Manager and Notification Server (OPMN) commands to stop and then start the Oracle Application Server all instances:

$ORACLE_HOME/opmn/bin/opmnctl shutdown
$ORACLE_HOME/opmn/bin/opmnctl startall

###You can also just restart instances separately :

$ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=home
$ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=oc4j_soa
$ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=HTTP_Server

 

7. Once an instance has been restarted, you can display system-jazn-data.xml again to check whether the new password has been encrypted.

(Visited 43 times, 1 visits today)

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close