R12.2 Configuration Management - Scenario on SyncContext
Configuration Management - Scenario on SyncContext
http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8000
http://testserver01.oratest.com:8000/OA_HTML/AppsLogin
8000
8000
" step="1" range="-1" label="Web Listener Port">8000
8000
http://testserver01.oratest.com:8001/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8001/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8001
http://testserver01.oratest.com:8001/OA_HTML/AppsLogin
8001
8001
8001
http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
http://testserver01.oratest.com:8000
http://testserver01.oratest.com:8000/OA_HTML/AppsLogin
8000
1800000
8000
8000
In Oracle E-Business Suite Release 12.2, some configurations are managed via AutoConfig, and some are managed natively via Fusion Middleware Control and WebLogic Server Administration Console. A new mechanism has been introduced to keep the context variables and the OHS configuration parameters (where applicable) in synchronization. This mechanism is called the 'feedback loop'. The SyncContext tool is one of the tools used for explicit synchronization of the context variables with the WLS configuration parameters.
This tool can be run on all application tier nodes as follows:
On UNIX:
$ perl /bin/adSyncContext.pl contextfile=
Scenario: Changing WebPort from 8000 to 8001
$ grep 8000 $CONTEXT_FILE
$
$ pwd
/inst122i/applmgr/fs1/FMW_Home/webtier/instances/EBS_web_INST122I_OHS1/config/OHS/EBS_web_INST122I
$
$ cp httpd.conf httpd.conf_bkup
$ diff httpd.conf httpd.conf_bkup
200c200
< Listen 8001
---
> Listen 8000
$
$ perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE
Enter the APPS user password:
Enter the WebLogic AdminServer password:
The log file is /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/logs/appl/rgf/Wed_Nov_27_23_55_34_2013/adSyncContext.log
$
$ cat /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/logs/appl/rgf/Wed_Nov_27_23_55_34_2013/adSyncContext.log
..
..
Updating the below context variables in /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/appl/admin/INST122I_testserver01.xml
Context Variable : s_webport
Current Value : 8000
New Value : 8001
Context Variable : s_login_page
Current Value : http://testserver01.oratest.com:8000/OA_HTML/AppsLogin
New Value : http://testserver01.oratest.com:8001/OA_HTML/AppsLogin
Context Variable : s_active_webport
Current Value : 8000
New Value : 8001
Context Variable : s_http_listen_parameter
Current Value : 8000
New Value : 8001
Context Variable : s_chronosURL
Current Value : http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
New Value : http://testserver01.oratest.com:8001/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
Context Variable : s_endUserMonitoringURL
Current Value : http://testserver01.oratest.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
New Value : http://testserver01.oratest.com:8001/oracle_smp_chronos/oracle_smp_chronos_sdk.gif
Context Variable : s_external_url
Current Value : http://testserver01.oratest.com:8000
New Value : http://testserver01.oratest.com:8001
Context Variable : s_contextserial
Current Value : 1
New Value : 2
Updated the context file. Now going to upload the context file to the database..
$ grep 8001 $CONTEXT_FILE
$
Autoconfig in Check Mode
$ adchkcfg.sh contextfile=$CONTEXT_FILE
Enter the APPS password:
The log file for this session is located at: /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/log/11272357/adconfig.log
AutoConfig is running in test mode and building diffs...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01
Classpath : /inst122i/applmgr/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/inst122i/applmgr/fs1/EBSapps/comn/java/classes
Using Context file : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/INST122I_testserver01.xml
Context Value Management will now update the test Context file
Updating test Context file...COMPLETED
[ Test mode ]
No uploading of Context File and its templates to database.
Testing templates from all of the product tops...
Testing AD_TOP........COMPLETED
Testing FND_TOP.......COMPLETED
Testing ICX_TOP.......COMPLETED
Testing MSC_TOP.......COMPLETED
Testing IEO_TOP.......COMPLETED
Testing BIS_TOP.......COMPLETED
Testing CZ_TOP........COMPLETED
Testing AMS_TOP.......COMPLETED
Testing CCT_TOP.......COMPLETED
Testing WSH_TOP.......COMPLETED
Testing CLN_TOP.......COMPLETED
Testing OKE_TOP.......COMPLETED
Testing OKL_TOP.......COMPLETED
Testing OKS_TOP.......COMPLETED
Testing CSF_TOP.......COMPLETED
Testing IBY_TOP.......COMPLETED
Testing JTF_TOP.......COMPLETED
Testing MWA_TOP.......COMPLETED
Testing CN_TOP........COMPLETED
Testing CSI_TOP.......COMPLETED
Testing WIP_TOP.......COMPLETED
Testing CSE_TOP.......COMPLETED
Testing EAM_TOP.......COMPLETED
Testing FTE_TOP.......COMPLETED
Testing ONT_TOP.......COMPLETED
Testing AR_TOP........COMPLETED
Testing AHL_TOP.......COMPLETED
Testing IES_TOP.......COMPLETED
Testing OZF_TOP.......COMPLETED
Testing CSD_TOP.......COMPLETED
Testing IGC_TOP.......COMPLETED
Differences text report is located at:/inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/cfgcheck.txt
Generating Profile Option differences report...COMPLETED
Differences text report for the Database is located at: /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/ProfileReport.txt
Generating File System differences report......COMPLETED
Differences html report is located at: /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/cfgcheck.html
Differences Zip report is located at: /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/ADXcfgcheck.zip
AutoConfig completed successfully.
$
$ cat /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/cfgcheck.txt
Plenty of Changes
Some of the Important Changes File : trusted.conf
$ cat /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/x_trusted.conf
Checking differences between
Existing file(<) : /inst122i/applmgr/fs1/FMW_Home/webtier/instances/EBS_web_INST122I_OHS1/config/OHS/EBS_web_INST122I/trusted.conf
New file(>) : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/trusted.conf
===========================================================================
Differences
===========================================================================
171c171
< RedirectMatch ^/OA_HTML/fwk/t/(.*) http://testserver01.oratest.com:8000/OA_IMAGE/fwk/t/$1
-----
> RedirectMatch ^/OA_HTML/fwk/t/(.*) http://testserver01.oratest.com:8001/OA_IMAGE/fwk/t/$1
$
Some of the Important Changes File : oacore_wls.properties
$ cat /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/x_oacore_wls.properties
Checking differences between
Existing file(<) : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/appl/admin/oacore_wls.properties
New file(>) : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/oacore_wls.properties
===========================================================================
Differences
===========================================================================
38c38
< EXTERNAL_URL=http://testserver01.oratest.com:8000
-----
> EXTERNAL_URL=http://testserver01.oratest.com:8001
65c65
< SOA_SERVER_URL=http://testserver01.oratest.com:8000
-----
> SOA_SERVER_URL=http://testserver01.oratest.com:8001
$
Some of the Important Changes File : ohwconfig.xml
$ cat /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/x_ohwconfig.xml
Checking differences between
Existing file(<) : /inst122i/applmgr/fs1/FMW_Home/Oracle_EBS-app1/common/config/ohwconfig.xml
New file(>) : /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/admin/out/11272357/ohwconfig.xml
===========================================================================
Differences
===========================================================================
22c22
< <branding imageSource="http://testserver01.oratest.com:8000/OA_MEDIA/FNDSSCORP.gif" imageShortDesc="Oracle Logo" />
-----
> <branding imageSource="http://testserver01.oratest.com:8001/OA_MEDIA/FNDSSCORP.gif" imageShortDesc="Oracle Logo" />
$
Autoconfig
If autoconfig is run at this time then changes will be in place.
Oh that is a lot of change I do not want to do it now. So reverting back.
$ pwd
/inst122i/applmgr/fs1/FMW_Home/webtier/instances/EBS_web_INST122I_OHS1/config/OHS/EBS_web_INST122I
$ cp httpd.conf_bkup httpd.conf
$ grep -i listen httpd.conf
# Listen: Allows you to bind Apache to specific IP addresses and/or
# Change this to Listen on specific IP addresses as shown below to
# Listen 12.34.56.78:80
# OHS Listen Port
Listen 8000
$
I reran the adSyncContext.pl that will update the new values to the context file again.
$ perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE
Enter the APPS user password:
Enter the WebLogic AdminServer password:
The log file is /inst122i/applmgr/fs1/inst/apps/INST122I_testserver01/logs/appl/rgf/Thu_Nov_28_00_01_25_2013/adSyncContext.log
$
$ grep -i 8001 $CONTEXT_FILE
$
There are references to 8001 port which has been reverted back.
$
$ grep -i 8000 $CONTEXT_FILE
$
This scenario shows how SyncContext.pl drives the changes to HTTP Server.
No comments:
Post a Comment