Why do we get error when we run “opmnctl status” from “$INST_TOP/ ora/ 10.1.3/ opmn/ bin”
2014-01-09 16:30
477 查看
原文:http://onlineappsdba.com/index.php/2010/01/04/oracle-apps-r12-interviewreaders-question-opmnctl-status/
This post covers interview question (related to Oracle Apps R12) from one reader, If you have any question then email us or post it under comments section.
Q. Why do we get error when we run “opmnctl status” from “$INST_TOP/ ora/ 10.1.3/ opmn/ bin” where as $ADMIN_SCRIPTS_HOME/adopmnctl.sh works ?
For those who are new to Oracle Apps R12 or OPMN
ORACLE_HOME in application tier in Applications R12
Similar to Oracle Applications 11i, there are two ORACLE_HOMEs (but of version 10g) on application tier (three in total including database)
i) 10.1.3 (10g R3) for Web-Apps Tier (HTTP, OC4J – oacore, oafm, forms)
ii) 10.1.2 (10g R2) for forms & reports server
For technical differences between 11i & R12 click here
.
What is opmnctl/adopmnctl ?
OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
adopmnctl - is wrapper around opmnctl to manage application server (10g R3 & 10g R3) in Oracle Applications (EBS) R12 . More information here
.
What is INST_TOP in Oracle Apps ?
INST_TOP denotes new TOP in Apps R12 INSTANCE_HOME, more informationhere . INSTANCE_HOME
contains scripts, log and configuration files .
.
Now back to question Why do we get error when we run “opmnctl status” from “$INST_TOP/ ora/ 10.1.3/ opmn/ bin” although we get output on running$ADMIN_SCRIPTS_HOME/ adopmnctl.sh
When you run opmnctl status from $INST_TOP/ora/10.1.3/opmn/bin you get error like below
$ ./opmnctl status
Error reading opmn.xml
Message:{$INST_TOP/ora/10.1.2/opmn/conf/opmn.xml (No such file or directory)}
Filename:{$INST_TOP/ora/10.1.2/opmn/conf/opmn.xml}
FileContent:{}
.
This is because when you run “opmnctl status” from $INST_TOP/ora/10.1.3/opmn/bin, opmnctl executable picks up OPMN config file (opmn.xml) from $ORACLE_CONFIG_HOME/opmn/conf/opmn.xml
and $ORACLE_CONFIG_HOME by default is set to 10.1.2 ORACLE_HOME .
It is still possible to display status using $INST_TOP/ora/10.1.3/opmn/bin/status but first set $ORACLE_CONFIG_HOME to10.1.3 (This can be done by executing 10.1.3 environment file i.e.$INST_TOP/ora/10.1.3/$SID_$hostname.env )
.
Why don’t you get above error by running $ADMIN_SCRIPTS_HOME/ adopmnctl.sh ? adopmnctl.sh calls $INST_TOP/ora/10.1.3/$SID_$hostname.env and sets $ORACLE_HOME
and $ORACLE_CONFIG_HOME to 10.1.3 related executable and configuration files. adopmnctl.sh is correct script to manage services (start/stop/status) controlled by OPMN in R12.
This post covers interview question (related to Oracle Apps R12) from one reader, If you have any question then email us or post it under comments section.
Q. Why do we get error when we run “opmnctl status” from “$INST_TOP/ ora/ 10.1.3/ opmn/ bin” where as $ADMIN_SCRIPTS_HOME/adopmnctl.sh works ?
For those who are new to Oracle Apps R12 or OPMN
ORACLE_HOME in application tier in Applications R12
Similar to Oracle Applications 11i, there are two ORACLE_HOMEs (but of version 10g) on application tier (three in total including database)
i) 10.1.3 (10g R3) for Web-Apps Tier (HTTP, OC4J – oacore, oafm, forms)
ii) 10.1.2 (10g R2) for forms & reports server
For technical differences between 11i & R12 click here
.
What is opmnctl/adopmnctl ?
OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
adopmnctl - is wrapper around opmnctl to manage application server (10g R3 & 10g R3) in Oracle Applications (EBS) R12 . More information here
.
What is INST_TOP in Oracle Apps ?
INST_TOP denotes new TOP in Apps R12 INSTANCE_HOME, more informationhere . INSTANCE_HOME
contains scripts, log and configuration files .
.
Now back to question Why do we get error when we run “opmnctl status” from “$INST_TOP/ ora/ 10.1.3/ opmn/ bin” although we get output on running$ADMIN_SCRIPTS_HOME/ adopmnctl.sh
When you run opmnctl status from $INST_TOP/ora/10.1.3/opmn/bin you get error like below
$ ./opmnctl status
Error reading opmn.xml
Message:{$INST_TOP/ora/10.1.2/opmn/conf/opmn.xml (No such file or directory)}
Filename:{$INST_TOP/ora/10.1.2/opmn/conf/opmn.xml}
FileContent:{}
.
This is because when you run “opmnctl status” from $INST_TOP/ora/10.1.3/opmn/bin, opmnctl executable picks up OPMN config file (opmn.xml) from $ORACLE_CONFIG_HOME/opmn/conf/opmn.xml
and $ORACLE_CONFIG_HOME by default is set to 10.1.2 ORACLE_HOME .
It is still possible to display status using $INST_TOP/ora/10.1.3/opmn/bin/status but first set $ORACLE_CONFIG_HOME to10.1.3 (This can be done by executing 10.1.3 environment file i.e.$INST_TOP/ora/10.1.3/$SID_$hostname.env )
.
Why don’t you get above error by running $ADMIN_SCRIPTS_HOME/ adopmnctl.sh ? adopmnctl.sh calls $INST_TOP/ora/10.1.3/$SID_$hostname.env and sets $ORACLE_HOME
and $ORACLE_CONFIG_HOME to 10.1.3 related executable and configuration files. adopmnctl.sh is correct script to manage services (start/stop/status) controlled by OPMN in R12.
相关文章推荐
- Why do we get error "Call to undefined function: ora_logon()/ ocilogon()"?
- Why do Kafka consumers connect to zookeeper, and producers get metadata from brokers?
- When and Why do we use "#if 0"
- How to resolve ORA-19706 error when select from dblink
- Why do I get "Value computed is not used" when working with pointers?
- Why do I get the error "The target GatherAllFilesToPublish does not exist"?
- 刚建的mysql主从,但是主机的bin日志没有开启,报如下错:Got fatal error 1236 from master when reading data from binary log: '
- /usr/bin/ld: error when run ./build.sh after compiling opencv2.4.10 on ubuntu12.04
- Why I always get “Uncaught SyntaxError: Unexpected token u ” from Chrome?
- ORA-15033 error when run root.sh
- “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?
- 【转】How to resolve ORA-19706 error when select from dblink
- ogg不能实施初始化数据加载_OCI Error ORA-01031: insufficient privileges (status = 1031)
- mysql主从同步报错 Got fatal error 1236 from master when reading data from binary log
- rep进程删不掉-OCI Error ORA-00942: table or view does not exist (status = 942
- ORA-01115 IO error reading block from file
- When Do We Write Our Chinese OS? (3)
- 解决:ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [-1]]
- configure: error: cannot run /bin/sh ./config.sub解决办法
- Upon startup of Linux database get ORA-27102: out of memory Linux-X86_64 Error: 28: No space left on device