Home » Oracle » How to add managed server in R12.2

How to add managed server in R12.2

  • I was working on the R12.2 Test env and I was supposed to increase the JVM(add the managed server in R12.2) for the oacore to sustain  the load
  • The procedure to increase JVM was quite simple in R12.1.X.  In Oracle E-Business Suite Release 12, the oacore, oafm, forms, and forms-c4ws services were deployed as applications on OC4J instances and were managed by Oracle Process Manager (OPMN). So we just need to increase the numprocs in opmn.xml  and start the services or run autoconfig with increased numprocs in the Context file
  • I came to know it is quite different in R12.2.X as  Oracle WebLogic Server has replaced OC4J in Oracle E-Business Suite Release 12.2, these services are now deployed as applications on individual managed servers.
  • Only part of the configuration of these applications and managed servers are still managed via AutoConfig.The rest of the things need to be done quite differently
  • In the below, I will be explaining what I learned from that experience and How to add the managed server in R12.2.  I will particularly be taking the example of oacore

Steps on How to add the managed server in R12.2

(1) The addition of managed servers needs to be done on the run file system when there is no active ADOP cycle. During the next adop prepare phase, the Configuration Change Detector identifies that the addition has been made and the managed servers are automatically synced up from the run file system to the patch file system. The synchronization also gets done when fs_clone is executed.

See also  How to backup controlfile in RMAN in Oracle Database

(2) Execute the following command to add a new managed server. This will create a managed server and add a new entry to the context file for starting and stopping the new managed server via the adstrtal and adstpall scripts:

$ perl <AD_TOP>/patch/115/bin/adProvisionEBS.pl \
ebs-create-managedserver -contextfile=<CONTEXT_FILE> \
-managedsrvname=<MANAGED_SERVER_NAME> -servicetype=<SERVICE_TYPE> \
-managedsrvport=<MANAGED_SERVER_PORT> -logfile=<LOGFILE>

For example, to add a managed server ‘oacore_server2’ of type ‘oacore’ with port 9705, run the following command:

$ perl <AD_TOP>/patch/115/bin/adProvisionEBS.pl \
ebs-create-managedserver -contextfile=<CONTEXT_FILE> \
-managedsrvname=oacore_server2 -servicetype=oacore \
-managedsrvport=9705 -logfile=<APPLRGF>/TXK/addMS_oacoreserver2.log

(3) Start the newly created managed server

sh <ADMIN_SCRIPTS_HOME>/admanagedsrvctl.sh start <MANAGED SERVER NAME>

(4) Perform the following steps on all application tier nodes participating in the same cluster where this managed server is added:
Add the entry in the OHS configuration file
a)Source the run file system.
b)Execute the following command to add details of the newly added managed servers into the OHS configuration files mod_wl_ohs.conf and apps.conf on the current node:

$ perl <FND_TOP>/patch/115/bin/txkSetAppsConf.pl \
-contextfile=<CONTEXT_FILE> \
-configoption=addMS \
-oacore=<host>.<domain>:<port> \
-oafm=<host>.<domain>:<port> \
-forms=<host>.<domain>:<port> \
-formsc4ws=<host>.<domain>:<port>

where
The argument contextfile accepts the complete path to the context file.
The arguments oacore, oafm, forms, formsc4ws accept a comma-separated list of managed server details in the following format:<host>.<domain>:<port>
host and domain are the hostname and the domain name of the newly added node
port is the port of the new managed server whose reference is to be added


For example, if the managed server oacore_server2 has been added on host ‘myserver’ and domain ‘go.com’ with port 9705, the following command should be executed:

$ perl <FND_TOP>/patch/115/bin/txkSetAppsConf.pl -contextfile=<CONTEXT_FILE> \
-configoption=addMS -oacore=myserver.go.com:9705
 

c) Restart the HTTP server if it is present on that server

$sh <ADMIN_SCRIPTS_HOME>/adapcctl.sh stop
$ sh <ADMIN_SCRIPTS_HOME>/adapcctl.sh start

As I told you earlier, the steps are very different from R12.1.X  in R12.2.X.  I hope the steps are clear on How to add managed server in R12.2

See also  what is pl sql block : Structure & syntax

I will look for feedback on this post.

Related Articles

40 question you must know about R12.2
How to delete the manage server in R12.2
oracle ebs 11i/R12/R12.1/R12.2
Step by step upgrade process for R12.2 Upgrade Part -1
Step by step upgrade process to R12.2 Upgrade part -2(Main Upgrade Driver for R12.2.0)
Step by step upgrade process to R12.2 Upgrade part -3
Step by step upgrade process for R12.2 Upgrade Part -4(Applying 12.2.6 Release Update Pack)

Recommended  Courses

The following are some of the recommended courses you can buy if you want to get a step further

Given below are the links to some of the courses


Oracle DBA 11g/12c – Database Administration for Junior DBA : This course is good for the people who are starting as Junior DBA or aspire to be Oracle DBA. This will provide a good understanding of backup & recovery and General administration tasks
Oracle Database: Oracle 12C R2 RAC Administration : This course covers the installation, administration of Oracle RAC. A good course for Oracle DBA who want to upgrade his skills for Oracle RAC
Oracle Data Guard: Database Administration for Oracle 12C R2 : This course covers the installation, administration of Oracle Dataguard. A good course for Oracle DBA who want to upgrade his skills for Oracle Dataguard

1 thought on “How to add managed server in R12.2”

  1. What if the steps are to be done on PATCH fs at the same time without waiting for the next patching cycle to ensure that any discrepancies get caught at this stage only without waiting for the patching cycle to run and point errors.. Do we have definitive steps for that ?

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top