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.

./startComponent.sh 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 setNMJavaHome.sh
-rwxr-x---. 1 oracle oracle 2285 Aug  2 14:56 startComponent.sh
-rwxr-x---. 1 oracle oracle 1129 Aug  2 14:56 startNodeManager.sh
-rwxr-x---. 1 oracle oracle  711 Aug  2 14:56 startRSDaemon.sh
-rwxr-x---. 1 oracle oracle 1949 Aug  2 14:56 stopComponent.sh
-rwxr-x---. 1 oracle oracle 1073 Aug  2 14:56 stopNodeManager.sh
-rwxr-x---. 1 oracle oracle  853 Aug  2 14:56 stopRSDaemon.sh
[oracle@oracle bin]$ ./startComponent.sh 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.

Done


Arihant Baid

4 comments:

  1. Replies
    1. Saving Node Manager credentials using the storeUserConfig option makes starting Oracle HTTP Server more convenient by avoiding repeated password entry. The steps demonstrate how WLST stores the credentials and key in separate files and confirms a successful connection and component startup. However, these files should be kept in a secure location with appropriate permissions to protect the stored credentials.

      Secure credential storage is an important part of managing enterprise infrastructure, especially when configuring services and automating administrative tasks. Exploring Cyber Security Projects for Final Year can help learners understand authentication, access control, and practical approaches to protecting sensitive system information.

      Delete
    2. Cloud-hosted and enterprise environments also require careful handling of configuration files, credentials, and service permissions. Working on Cloud Security Projects for Final Year can provide useful exposure to security practices for infrastructure, applications, and cloud resources.

      Delete