修改oacore的数量

来源:互联网 发布:sha256代码java 编辑:程序博客网 时间:2024/04/28 08:54
1)Take a backup of below files /test/inst/apps/TEST_test02/ora/10.1.3/opmn/conf/opmn.xml and $CONTEXT_FILE

2)Modify $CONTEXT_FILE as follows

From
<oacore_nprocs oa_var="s_oacore_nprocs">1</oacore_nprocs>
To
<oacore_nprocs oa_var="s_oacore_nprocs">4</oacore_nprocs>

3)Modify  /test/inst/apps/TEST_test02/ora/10.1.3/opmn/conf/opmn.xml file as follows

under oacore section modify as follows

(<process-type id="oacore" module-id="OC4J" status="enabled"
working-dir="$ORACLE_HOME/j2ee/home">)

From

<process-set id="default_group" numprocs="1"/>
To
<process-set id="default_group" numprocs="4"/>

4)Bounce Apache services


In pre

$ adapcctl.sh status
You are running adapcctl.sh version 120.7.12010000.2
Checking status of OPMN managed Oracle HTTP Server (OHS) instance ...
Processes in Instance: TEST_test02.test02.hyd.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status 
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2023 | Alive  
OC4JGroup:default_group          | OC4J:oacore        |    1899 | Alive  
HTTP_Server                      | HTTP_Server        |    1814 | Alive  

In post

$ adapcctl.sh status
You are running adapcctl.sh version 120.7.12010000.2
Checking status of OPMN managed Oracle HTTP Server (OHS) instance ...
Processes in Instance: TEST_test02.test02.hyd.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status 
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |   17348 | Alive  
OC4JGroup:default_group          | OC4J:oacore        |   17347 | Alive  
OC4JGroup:default_group          | OC4J:oacore        |   17345 | Alive  
OC4JGroup:default_group          | OC4J:oacore        |   17346 | Alive  
OC4JGroup:default_group          | OC4J:oacore        |   17340 | Alive  
HTTP_Server                      | HTTP_Server        |   17339 | Alive  
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /test/inst/apps/TEST_test02/logs/appl/admin/log/adapcctl.txt for more information ... 
0 0
原创粉丝点击