对adRegisterWLSListeners.pl 和 adSyncContext.pl 脚本的研究


事情起源与在应用层发现一个进程:

[apptest@vs022 bin]$ ps -fu apptest|grep opmn
apptest  19100     1  0 May01 ?        00:00:00 /u01/test/apps/fs2/FMW_Home/webtier/opmn/bin/opmn -d
apptest  19101 19100  0 May01 ?        00:01:54 /u01/test/apps/fs2/FMW_Home/webtier/opmn/bin/opmn -d
apptest  20347 20274  1 May01 ?        01:01:03 /u01/test/apps/fs2/FMW_Home/jrockit32/jre/bin/java -classpath /u01/test/apps/fs2/FMW_Home/webtier/opmn/lib/wlfullclient.jar:/u01/test/apps/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/test/apps/fs2/EBSapps/comn/java/classes
-mx256m oracle.apps.ad.tools.configuration.RegisterWLSListeners -appsuser APPS -appshost vs022 -appsjdbcconnectdesc jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=vs022.hand-china.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))
-adtop /u01/test/apps/fs2/EBSapps/appl/ad/12.0.0 -wlshost vs022 -wlsuser weblogic -wlsport 7002 -dbsid VIS -dbhost vs022 -dbdomain hand-china.com -dbport 1521 -outdir /u01/test/apps/fs2/inst/apps/VIS_vs022/appltmp/Thu_May_1_09_57_18_2014 -log /u01/test/apps/fs2/inst/apps/VIS_vs022/logs/appl/rgf/Thu_May_1_09_57_18_2014/adRegisterWLSListeners.log
-promptmsg hide -contextfile /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml

apptest  28525 27833  0 23:38 pts/2    00:00:00 grep opmn

根据进程20274查找到了父进程:

[apptest@vs022 bin]$ ps -fu apptest|grep 20274
apptest  20274     1  0 May01 ?        00:00:00 perl /u01/test/apps/fs2/EBSapps/appl/ad/12.0.0/bin/adRegisterWLSListeners.pl contextfile=/u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
apptest  20347 20274  1 May01 ?        01:01:05 /u01/test/apps/fs2/FMW_Home/jrockit32/jre/bin/java -classpath /u01/test/apps/fs2/FMW_Home/webtier/opmn/lib/wlfullclient.jar:/u01/test/apps/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/test/apps/fs2/EBSapps/comn/java/classes
-mx256m oracle.apps.ad.tools.configuration.RegisterWLSListeners -appsuser APPS -appshost vs022 -appsjdbcconnectdesc jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=vs022.hand-china.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))
-adtop /u01/test/apps/fs2/EBSapps/appl/ad/12.0.0 -wlshost vs022 -wlsuser weblogic -wlsport 7002 -dbsid VIS -dbhost vs022 -dbdomain hand-china.com -dbport 1521 -outdir /u01/test/apps/fs2/inst/apps/VIS_vs022/appltmp/Thu_May_1_09_57_18_2014 -log /u01/test/apps/fs2/inst/apps/VIS_vs022/logs/appl/rgf/Thu_May_1_09_57_18_2014/adRegisterWLSListeners.log
-promptmsg hide -contextfile /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
apptest  28629 27833  0 23:40 pts/2    00:00:00 grep 20274

查看了此脚本产生的日志如下:

[apptest@vs022 bin]$ cat /u01/test/apps/fs2/inst/apps/VIS_vs022/logs/appl/rgf/Thu_May_1_09_57_18_2014/adRegisterWLSListeners.log
Established connection with the WebLogic AdminServer.
Trying to establish connection using the AppsJDBCConnector
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=vs022.hand-china.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=VIS)))
Established the database connection...
Going to download the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml to /u01/test/apps/fs2/inst/apps/VIS_vs022/appltmp/Thu_May_1_09_57_18_2014/VIS_vs022.xml
Downloaded the context file VIS_vs022.xml from the database to /u01/test/apps/fs2/inst/apps/VIS_vs022/appltmp/Thu_May_1_09_57_18_2014
instantiate file: 
   source : /u01/test/apps/fs2/EBSapps/appl/ad/12.0.0/admin/template/adWlsAcMappings_xml.tmp
   dest   : /u01/test/apps/fs2/inst/apps/VIS_vs022/appltmp/Thu_May_1_09_57_18_2014/adWlsAcMappings.xml

WARNING: Unable to load the OHS ObjectNames
Registered notification listener for com.bea:Name=forms-c4ws_server1,Type=Server for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for com.bea:Name=forms_server1,Type=Server for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for com.bea:Name=oacore_server1,Type=Server for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for JMImplementation:type=MBeanServerDelegate for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for com.bea:Name=vs022,Type=NodeManager,Machine=vs022 for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for com.bea:Name=oafm_server1,Type=Server for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml
Registered notification listener for com.bea:Name=ConfigurationManager,Type=weblogic.management.mbeanservers.edit.ConfigurationManagerMBean for the context file /u01/test/apps/fs2/inst/apps/VIS_vs022/appl/admin/VIS_vs022.xml

经过从网上查询,确定了这是一个监听weblogic参数配置变化的进程,这个进程会跟随weblogic 中的Admin server一同启动和关闭:

Run adRegisterWLSListeners Tool on the Application Tier

  • The adRegisterWLSListeners tool has been introduced to perform synchronization of context variables with the associated Oracle WebLogic Server configuration parameters.
  • This tool does not listen for changes to the Oracle HTTP Server configuration parameters.
  • Once started, adRegisterWLSListeners keeps running, listening for changes to the WebLogic Server configuration and synchronizing the context files stored in the database.
  • This tools starts/stops along with the WebLogic Admin Server.

Scenario on adRegisterWLSListeners


Run SyncContext on the Application Tier

  • The adSyncContext.pl script reads the WLS configuration parameter values and synchronizes them with the context variables.
  • This is used to synchronize the OHS configuration parameters with the respective context variables.
  • 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.
  • In Oracle E-Business Suite Release 12.2 some important configuration files like httpd.conf and ssl.conf  are no longer maintained by AutoConfig. Oracle Enterprise Manager 11g Fusion Middleware Control should
    be used to maintain these configuration files as well as making additional changes to Context File variables.

Scenario on SyncContext 

时间: 2024-08-05 14:44:26

对adRegisterWLSListeners.pl 和 adSyncContext.pl 脚本的研究的相关文章

PL/SQL --> PL/SQL记录

--======================= -- PL/SQL --> PL/SQL记录 --=======================       PL/SQL记录有着类似于表的数据结构,是一个或多个字段且拥有数据类型的集合体.定义了PL/SQL记录类型之后,可以定义PL/SQL记录变 量.声明一个PL/SQL记录变量相当于定义了多个标量变量,简化了变量的声明,从而大大节省了内存资源.多用于简化单行多列的数据处理.     一.定义PL/SQL记录     1.直接定义PL/SQL

pl/sql-关于PL/SQL的有关loop循环的问题

问题描述 关于PL/SQL的有关loop循环的问题 本人是学习PL/SQL的小菜鸟,最近遇到一个问题解决不了,还希望各位高手指点一二. 下面是一个关于cursor的语句,但是其中的cursor c3怎么都不进去,而且确定cursor c3是有值的,是应该要用into替换as吗?可是cursorc1 c2都可以进,该声明和定义的都已经做了 CURSOR c1 IS SELECT RPAD ('LCM_CELL', 20, ' ') format_id, RPAD (' ', 20, ' ') tr

pl sql-关于pl/sql编程的问题

问题描述 关于pl/sql编程的问题 看看这个程序哪错了,本人刚学,啥也不会. CREATE OR REPLACE PROCEDURE lvkaihua1 ( C_NAME VARCHAR2, C_PASSWORD VARCHAR2, FLAG OUT NUMBER) IS COUNTS NUMBER; PCOUNTS NUMBER; BEGIN SELECT COUNT(*) INTO COUNTS FROM USERS WHERE USERS=C_NAME; IF COUNTS>0 THEN

oracle11g pl sql-oracle11g与pl/sql连接问题

问题描述 oracle11g与pl/sql连接问题 我电脑是64位的,安装了oracle11g,也安装了plsql但是不知道他们怎么连接起来的,请大神帮帮忙,本人是初级选手,麻烦大神说的详细点,拜托了,谢了 解决方案 http://blog.csdn.net/txadf/article/details/49765403 解决方案二: 我都按照网上的改了以后,再次登录客户端提示为:ORA-12514:TNS:listener does not currently know of service r

pl/sql-oracle 中PL/SQL 语义解析问题。

问题描述 oracle 中PL/SQL 语义解析问题. CREATE PROCEDURE DEVELOP.SP_CLEANSYNCOLDDATAAS m_DataTime date;BEGINm_DataTime := sysdate - 2/24; delete from T_TRANS_PORT_SYNwhere D_UPDATE_TIME <= m_DataTime;delete from T_TRANS_LINK_ODU_TEST_SYNwhere D_UPDATE_TIME <= m

用正则表达式过滤脚本的研究(ASP.net)

asp.net|脚本|正则 在做一些网站(特别是BBS之类)时,经常会有充许用户输入html样式代码,却禁止脚本的运行的需求, 以达到丰富网页样式,禁止恶意代码的运行.当然不能用 HtmlEncode 和 HtmlDecode 方法,因为这样连基本的html代码会被禁止掉. 我在网上搜索,也没有找到好的解决办法,倒是收集了一些脚本攻击的实例: 1. <script>标记中包含的代码2. <a href=javascript:...中的代码3. 其它基本控件的 on...事件中的代码4.

mysql性能优化脚本mysqltuner.pl使用介绍_Mysql

MySQLTuner 下载地址:http://github.com/rackerhacker/MySQLTuner-perl MySQLTuner 使用方法: Downloading and using MySQLTuner is actually a very simple process: wget mysqltuner.pl perl mysqltuner.pl If you'd rather not invoke perl every time, just make it executa

PL/SQL dev使用指南

1.PLSQL DEV 与oracle instant client 连接配置: Oracle Instant client 是oracle提供的简便客户端, 支持多种平台. 包括如下内容: Instant client Package - Basic 运行OCI, OCCI, 和JDBC-OCI应用程序需要的所有文件. Instant client Package - Basic Lite: 只包含英语错误信息, 只支持unicode, ascii, 西欧字符集. Instant client

《Oracle PL/SQL程序设计(第5版)》一一1.5 PL/SQL开发人员的资源

1.5 PL/SQL开发人员的资源 Oracle PL/SQL程序设计(第5版) O'Reilly在1995年出版了本书的第一版.当时,Oracle PL/SQL编程这本书确实造成一个小轰动.它是第一本关于PL/SQL的独立著作(也就是,不是来自于Oracle公司的).从那时开始,PL/SQL程序员的资源─图书.开发环境.工具以及网站─开始蓬勃发展.(当然,迄今为止这本书仍然是这些资源中最重要和最有价值的!) 下面这一节简要地介绍了这许多资源.要充分利用这些资源,许多资源都可以免费获得或者非常低