Skip to main content

Multiple Oracle HTTP Server Instances Creation 12c in a Standalone Domain Through Wlst

Step:1 Stop the Node Manager
F:\OHS\user_projects\domains\base_domain\bin>stopNodeManager.cmd                                     Stopping System Component ohs1 ...
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 Create Second OHS Instance Throgh WLST
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('/')
wls:/offline/base_domain>create('ohs2', 'SystemComponent')
Proxy for ohs2: Name=ohs2, Type=SystemComponent
wls:/offline/base_domain>cd('/SystemComponent/ohs2')
wls:/offline/base_domain/SystemComponent/ohs2>cmo.setComponentType('OHS')
wls:/offline/base_domain/SystemComponent/ohs2>set('Machine', 'localmachine')
wls:/offline/base_domain/SystemComponent/ohs2>cd('/OHS/ohs2')
wls:/offline/base_domain/OHS/ohs2>cmo.setAdminHost('127.0.0.1')
wls:/offline/base_domain/OHS/ohs2>cmo.setAdminPort('5000')
wls:/offline/base_domain/OHS/ohs2>cmo.setListenAddress('localhost')
wls:/offline/base_domain/OHS/ohs2>cmo.setListenPort('7778')
wls:/offline/base_domain/OHS/ohs2>cmo.setSSLListenPort('4444')
wls:/offline/base_domain/OHS/ohs2>cmo.setServerName('http://localhost:7778')
wls:/offline/base_domain/OHS/ohs2>updateDomain()
wls:/offline/base_domain/OHS/ohs2>exit()
Exiting WebLogic Scripting Tool.
Note:

Admin Host: The listen address to use for the selected OHS server for communication with Node Manager. The address should only allow loopback communication within the host (for example, 127.0.0.1).
Admin Port: The listen port to use for the selected OHS server for communication with Node Manager on this system. The port must be unique.

Step:4  Start The Nodemanager
F:\OHS\user_projects\domains\base_domain\bin>startNodeManager.cmd
NODEMGR_HOME is already set to F:\OHS\USER_P~1\domains\BASE_D~1\NODEMA~1
CLASSPATH=.;F:\OHS\ORACLE~1\jdk\jre\lib\tools.jar;F:\OHS\wlserver\server\l
Step:5 Now start the both Ohs Instances
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:7  Now start second ohs instance
F:\OHS\user_projects\domains\base_domain\bin>startComponent.cmd ohs2
Starting system Component ohs2 ...
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 ohs2 ...
Successfully started server ohs2 ...
Successfully disconnected from Node Manager.
Exiting WebLogic Scripting Tool.

Done
============================
Screenshot for reference

Comments


  1. Thanks for the script. Can you please provide me script for creation of OHS domain and single instance with custom name.

    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...

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 Conne...

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...