All Dcmctl Commands Fail With ADMN-202001 "DCM farm or an instance in the farm could not be found" [ID 753917.1]
In this Document
Symptoms
Changes
Cause
Solution
For an Oracle Application Server 10g middle-tier which is associated with an infrastructure instance, all dcmctl commands (ie. 'dcmctl getstate -v -d' or 'dcmctl updateconfig') fail with the following errors :-
ADMN-202001
An exception has occurred while accessing DCM repository. Please refer to the accompanying base exception for more details.
Resolution:
check the details of the base exception.
Base Exception:
The
DCM farm or an instance in the farm could not be found. This generally
happens when an Oracle Application Server instance has inadvertently
been removed from the farm.
Resolution:
The repository may need to
be restored from a backup. Please refer to DCM reference guide or call
Oracle Support for more information.The $ORACLE_HOME/dcm/config/dcm.conf file looks like the following:
repository_type=db
instance_id=
cluster_id=
instance_name=
cluster_name=
cluster_name=standalone
cluster_id=1
instance_name=standalone
instance_id=1 The $ORACLE_HOME/dcm/config/dcm.conf.bak shows the following :-
repository_type=db
instance_id=
cluster_id=
instance_name=
cluster_name= The following four extra lines in the $ORACLE_HOME/dcm/config/dcm.conf file are causing the dcmctl commands to fail:
cluster_name=standalone
cluster_id=1
instance_name=standalone
instance_id=1 It has not been determined why the dcm.conf file has changed from the original dcm.conf.bak file; this is unknown.
cd $ORACLE_HOME/dcm/config
mv dcm.conf dcm.conf.bad cd $ORACLE_HOME/dcm/config
cp dcm.conf.bak dcm.confcd $ORACLE_HOME/opmn/bin
opmnctl stopall
opmnctl startallcd $ORACLE_HOME/dcm/bin
dcmctl getstate -v -dcd $ORACLE_HOME/dcm/bin
dcmctl updateconfig -force来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/678020/viewspace-1044210/ ,如需转载,请注明出处,否则将追究法律责任。