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 WebLogic Server Version Finding Ways

1. We can determine weblogic server version using registry.xml file: Location in WLS 12.2.1.3: $ORACLE_HOME/inventory/registry.xml <distribution status="installed" name="WebLogic Server" version="12.2.1.3.0"> e.g. /u02/oracle12213/oracle_home/middleware/inventory/registry.xml <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?> <registry home="/u02/oracle12213/oracle_home/middleware" platform="226" sessions="5" xmlns:ns2="http://xmlns.oracle.com/cie/gdr/dei" xmlns:ns3="http://xmlns.oracle.com/ cie/gdr/nfo" xmlns="http://xmlns.oracle.com/cie/gdr/rgy">    <distributions>       <distribution status="installed" name="WebLogic Server" version="12.2.1.3.0">          <sessions>             <session id="1" date="2017-10-21T17:53:51.433+05:30" action="install"/>          ...

Oracle Http Server 12 C Configuration File's

In Ohs 12c Oracle changed the complete structure by introducing the domain & instances just like Weblogic There are Two Configuration files for Ohs 12C 1.Staging F:\OHS\user_projects\domains\base_domain\config\fmwconfig\components\OHS\ohs1 2.Runtime F:\OHS\user_projects\domains\base_domain\config\fmwconfig\components\OHS\instances\ohs1 You need to make changes in Staging configuration files and these changes automatically replicated to the configuration files of the run time environment.

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