Change oc4j administrator password

Step to change oc4j admin password manually:
———————————————————

Step 1:
——–
Stop OC4J and the Application Server Control.

Enter the following command in the Oracle home of the application server instance:

(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=OC4J
(Windows) ORACLE_HOMEopmnbinopmnctl stopproc ias-component=OC4J

Step 2:
———

Locate and open the following file in a text editor:

(UNIX)ORACLE_HOME/j2ee/home/config/system-jazn-data.xml
(Windows)ORACLE_HOMEj2eehomeconfigsystem-jazn-data.xml

Step 3:
———
Locate the line that defines the credentials property for the oc4jadmin user.

The following example shows the section of system-jazn-data.xml with the encrypted credentials entry in boldface type:

    jazn.com
   
     .
     .
     .
     
          oc4jadmin
          OC4J Administrator
          OC4J Administrator
            {903}4L50lHJWIFGwLgHXTub7eYK9e0AnWLUH
     
Step 4:
———

Replace the existing encrypted password with the new password.

Be sure to prefix the password with an exclamation point (!). For example:

!mynewpassword123

The password for the oc4jadmin user should conform to following guidelines:

Must contain at least five characters, but not more than 30 characters.

Must begin with an alphabetic character. It cannot begin with a number, the underscore (_), the dollar sign ($), or the number sign (#).

At least one of the characters must be a number.

Can contain only the following characters; numbers, letters, and the following special characters: US dollar sign ($), number sign (#), or underscore (_).

Cannot contain any Oracle reserved words, such as VARCHAR.

Step 5:
———
Delete cached password data by deleting the contents of the following directory:

(UNIX)
ORACLE_HOME/j2ee/oc4jinstance /persistence/ascontrol/ascontrol/securestore/
(Windows)
ORACLE_HOMEj2eeoc4jinstancepersistenceascontrolascontrolsecurestore/

Start OC4J and the Application Server Control.

Step 6:
———-
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.

  • October 10, 2017 | 27 views
  • Comments