Opmnctl Command Fails With Error "A file or directory in the path name does not exist." or "LPX-00202:" (Doc ID 756573.1)
Symptoms |
Changes |
Cause |
Solution |
Applies to:
Oracle Fusion Middleware - Version 10.1.2.0.0 to 10.1.3.4.0 [Release AS10gR2 to AS10gR3]Oracle E-Business Suite Technology Stack - Version 12.1.3 to 12.1.3 [Release 12.1]
Information in this document applies to any platform.
Oracle Application Server 10g Enterprise Edition - Version: 10.1.2.0.0 to 10.1.3.4.0
Symptoms
The scope of this note applies to Oracle Application Server 10g installations only and does not cover layered products such as EBS where multiple opmn.xml files exists.When attempting to run an opmnctl command, opmnctl reports errors relevant to opmn.xml. Errors are similar to examples below:
% $ORACLE_HOME/opmnctl status
Error reading opmn.xml
Message:{ORACLE_HOME/opmn/conf/opmn.xml (A file or directory in the path name does not exist.)}
Filename:{ORACLE_HOME/opmn/conf/opmn.xml}
FileContent:{}
Error reading opmn.xml
Message:{ORACLE_HOME/opmn/conf/opmn.xml (A file or directory in the path name does not exist.)}
Filename:{ORACLE_HOME/opmn/conf/opmn.xml}
FileContent:{}
or
% $ORACLE_HOME/opmn/bin/opmnctl start
LPX-00202: could not open "ORACLE_HOME/opmn/conf/opmn.xml" (error 200)
XML parse failed: error 202.
opmnctl: opmn.xml validation failed.
LPX-00202: could not open "ORACLE_HOME/opmn/conf/opmn.xml" (error 200)
XML parse failed: error 202.
opmnctl: opmn.xml validation failed.
Command opmnctl is trying to read opmn.xml file from different path instead of Oracle AS10g (10.1.3) ORACLE_HOME from where this command is being executed.
Note:
1. If the directory or opmn.xml does not exist, opmnctl command will returns error as shown above.
2. If opmn.xml does exist in that directory (a different Oracle Application Server installation), opmn startup uses that opmn.xml and will yield unexpected results.
2. If opmn.xml does exist in that directory (a different Oracle Application Server installation), opmn startup uses that opmn.xml and will yield unexpected results.
Changes
Cause
The issue is caused by the ORACLE_CONFIG_HOME environment variable setup. In the example below, ORACLE_CONFIG_HOME points to a different ORACLE_HOME (/app/ora/10.1.2) while the opmnctl operation is intended for /app/ora/10.1.3.
ORACLE_CONFIG_HOME=/app/ora/10.1.2
Since the directory specified by ORACLE_CONFIG_HOME does not
exist, opmnctl command errors out because internally opmnctl command
uses this environment variable to decide where to read opmn.xml file
from.Solution
Either set ORACLE_CONFIG_HOME environment variable to the correct ORACLE_HOME:
Ex. export ORACLE_CONFIG_HOME=/app/ora/10.1.3
or unset ORACLE_CONFIG_HOME environment variable:
export ORACLE_CONFIG_HOME=
To Bottom |
No comments:
Post a Comment