Saturday, February 23, 2019

How to save the password for 12 OHS start services?

Step for setting up the password.

Avoid entering password each time when you start OHS, you can save the password in encrypted file with parameter storeUserConfig:

Run the below command, It will prompt for password once and it will generate a  nm-cfg-ohs_domain.props and nm-key-ohs_domain.props. files.

./ ohs1 storeUserConfig

[oracle@oracle ~]$ cd /app/oracle/middleware/user_projects/domains/ohs_domain/bin/
[oracle@oracle bin]$ ll
total 28
-rwxr-x---. 1 oracle oracle  994 Aug  2 14:56
-rwxr-x---. 1 oracle oracle 2285 Aug  2 14:56
-rwxr-x---. 1 oracle oracle 1129 Aug  2 14:56
-rwxr-x---. 1 oracle oracle  711 Aug  2 14:56
-rwxr-x---. 1 oracle oracle 1949 Aug  2 14:56
-rwxr-x---. 1 oracle oracle 1073 Aug  2 14:56
-rwxr-x---. 1 oracle oracle  853 Aug  2 14:56
[oracle@oracle bin]$ ./ ohs1 storeUserConfig
Starting system Component ohs1 ...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Reading domain from /app/oracle/middleware/user_projects/domains/ohs_domain

Please enter Node Manager password:
Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Creating new key...
The username and password that were used for this WebLogic NodeManager connection are stored in /home/oracle/.wlst/nm-cfg-ohs_domain.props and /home/oracle/.wlst/nm-key-ohs_domain.props.
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Starting server ohs1 ...
Successfully started server ohs1 ...
Successfully disconnected from Node Manager.

Exiting WebLogic Scripting Tool.


Arihant Baid

1 comment:

  1. Great Article
    Cloud Computing Projects

    Networking Projects

    Final Year Projects for CSE

    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training