Thursday, March 29, 2018

To avoid password prompt when using startComponent.sh to start OHS

When we start OHS, it prompts for a password of nodemanager as :

$./startComponent.sh ohs1

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 /opt/ows/Oracle/Middleware/OHS_Home/user_projects/domains/base_domain
Please enter your password :


You can avoid password every time you launch the server with startComponent.sh/.cmd by starting it with the storeUserConfig option for the first time. Do the following:

$DOMAIN_HOME/bin/startComponent.sh componentName storeUserConfig

Please enter your password :


Type the password of nodemanager and press Enter. The system responds with this message:

"Creating a key file can reduce the security of your system if it is not a secured location after it is created. Do you want to create the key file? y or n."

Type y to store your Node manager password.

It creates hidden files in the users home directory after the above steps.
These files contain domain infomation.

for example

.wlst/nm-key-base_domain.props
.wlst/nm-cfg-base_domain.props

No comments:

Post a Comment