Pages

Wednesday, January 5, 2022

How to save the password for 12 OHS during startup and shutdown of services ?

How to save the password for 12 OHS during startup and shutdown of services ?


Stop the OHS services:

$DOMAIN_HOME/bin/stopComponent.sh ohs1

Run the below command, It will prompt for password once and it will generate and store the password in nm-cfg-basenew_domain.props and nm-key-basenew_domain.props location:             

./startComponent.sh ohs1 storeUserConfig

$DOMAIN_HOME/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 /u01/oraclefrs/middleware/user_projects/domains/basenew_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 /export/home/testapps/.wlst/nm-cfg-basenew_domain.props and /export/home/testapps/.wlst/nm-key-basenew_domain.props.
Connecting to Node Manager ...
<Jan 5, 2022 12:26:54 PM AST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Jan 5, 2022 12:26:54 PM AST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Jan 5, 2022 12:26:54 PM AST> <Info> <Security> <BEA-090909> <Using the configured custom SSL Hostname Verifier implementation: weblogic.security.utils.SSLWLSHostnameVerifier$NullHostnameVerifier.>
Successfully Connected to Node Manager.
Starting server ohs1 ...
Successfully started server ohs1 ...
Successfully disconnected from Node Manager.
Exiting WebLogic Scripting Tool.
Done

Start the OHS services:

$DOMAIN_HOME/bin/startComponent.sh ohs1

No comments:

Post a Comment