Skip to main content

Node Manager Username and Password for Oracle HTTP Server 12c in a Standalone Domain

Start the Ohs Instance for 12C
F:\OHS\user_projects\domains\base_domain\bin>stopComponent.cmd ohs1
Step:1 Stop the OHS component
F:\OHS\user_projects\domains\base_domain\bin>stopComponent.cmd ohs1
Stopping 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 F:/OHS/user_projects/domains/base_domain
Please enter Node Manager password:
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Killing server ohs1 ...
Successfully killed server ohs1
Successfully disconnected from Node Manager.
Exiting WebLogic Scripting Tool.
Done
Step:2  Invoke WLST offline
F:\OHS\oracle_common\common\bin>wlst.cmd
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>
Step:3 Connect nodemanger
wls:/offline> nmConnect('weblogic','weblogic@123','localhost','5556','base_domain','F:/OHS/user_projects/domains/base_domain','ssl','true')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Step:4 Nodemanager Disconnect
wls:/nm/base_domain> nmDisconnect()
Successfully disconnected from Node Manager.
wls:/offline>
Step:5 Changing the nodemanger username and password
F:\OHS\oracle_common\common\bin>wlst.cmd
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> readDomain('F:/OHS/user_projects/domains/base_domain')
wls:/offline/base_domain>cd("/SecurityConfiguration/base_domain")
wls:/offline/base_domain/SecurityConfiguration/base_domain>cmo.setNodeManagerUsername("weblogic1")
wls:/offline/base_domain/SecurityConfiguration/base_domain>cmo.setNodeManagerPasswordEncrypted("mindcraft123")
wls:/offline/base_domain/SecurityConfiguration/base_domain>updateDomain()
wls:/offline/base_domain/SecurityConfiguration/base_domain>exit()
Exiting WebLogic Scripting Tool.
F:\OHS\oracle_common\common\bin>

Step:6  Now connect nodemanager old user name and password
wls:/offline> nmConnect('weblogic','weblogic@123','localhost','5556','base_domain','F:/OHS/user_projects/domains/base_domain','ssl','true')
Connecting to Node Manager ...
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<iostream>", line 111, in nmConnect
  File "<iostream>", line 240, in raiseWLSTException
WLSTException: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Received error message from Node Manager Server: [Access to domain 'base_domain' for user 'weblogic' denied
]. Please check Node Manager log for details.
Use dumpStack() to view the full stacktrace :
wls:/offline>
Step:7  Now try to connect the updated username and password
wls:/offline> nmConnect('weblogic1','mindcraft123','localhost','5556','base_domain','F:/OHS/user_projects/domains/base_domain','ssl','true')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/base_domain>

We  successfully changed the username and password.
This process will automatically update the following files for you:

  DOMAIN_HOME/config/config.xml
  DOMAIN_HOME/config/nodemanager/nm_password.properties

Comments

  1. Thank you so much for the info, Actually I am using linux OS(redhat) I am aware of weblogic server setup but I am confused with oracle http server setup from beginning like creating domain and setting up ssl certificate configuration. Could you please help me with thatšŸ„²

    ReplyDelete

Post a Comment

Popular posts from this blog

oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl buildIoException SEVERE: Failed to start the server ohs1 In New Installation of FMW 12.2.1.3 on Windows Server

Problem Summery: When we are trying start OHS instance it's failing with an error. Error: 29 Mar, 2018 10:30:22 PM IST> <INFO> <Server Implementation Class: weblogic.nodemanager.server.NMServer$ClassicServer.> <29 Mar, 2018 10:30:23 PM IST> <INFO> <Secure socket listener started on port 5556> <29 Mar, 2018 10:30:54 PM IST> <INFO> <base_domain> <ohs1> <Creating directory "F:\OHS\user_projects\domains\base_domain\system_components\OHS\ohs1\data\nodemanager"> Mar 29, 2018 10:30:54 PM oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl start INFO: Starting server ohs1 Mar 29, 2018 10:30:55 PM oracle.ohs.plugin.nodemanager.OhsRunCommand execute INFO: Running F:\OHS\ohs\bin\launch.exe F:\OHS\ohs\bin\httpd.exe -DOHS_MPM_WINNT -d F:/OHS/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/ohs1 -f F:\OHS\user_projects\doma ins\base_domain\config\fmwconfig\c...

Avoid password prompt when using startComponent.sh to start OHS 12c

Step:1 Start Ohs With Password Prompt F:\OHS\user_projects\domains\base_domain\bin>startComponent.cmd 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 F:/OHS/user_projects/domains/base_domain Please enter Node Manager password: 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 Step:2 Store the password for avoid ohs password F:\OHS\user_projects\domains\base_domain\bin>startComponent.cmd 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 F:/OHS/u...