PRCD-1229 : An attempt to access configuration of database <db_name> was rejected

(Doc ID 2214084.1)

Last updated on DECEMBER 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 to 12.2 BETA1 [Release 10.2 to 12.2]
Information in this document applies to any platform.

Symptoms

GI srvctl command fails: 

$ srvctl stop database -d <db_name>
PRCD-1229 : An attempt to access configuration of database <db_name> was rejected
because its version 12.1.0.2.0 differs from the program version 12.2.0.0.0.
Instead run the program from /u01/app/oracle/product/12.1.0/dbhome_1.

If you run the srvctl with same environmental settings from 12.1.0 home you will get java.lang.NoSuchFieldError: override_name, as below:

[oracle node1 trace]$ /u01/app/oracle/product/12.1.0/dbhome_1/bin/srvctl stop database -d <DB_NAME>
Exception in thread "main" java.lang.NoSuchFieldError: override_name
at oracle.ops.mgmt.has.HASContextNative.allocHASContext(Native Method)
at oracle.ops.mgmt.has.HASContext.<init>(HASContext.java:146)
at oracle.ops.mgmt.has.HASContext.getInstance(HASContext.java:292)
....
at oracle.ops.opsctl.OPSCTLDriver.execute(OPSCTLDriver.java:502)
at oracle.ops.opsctl.OPSCTLDriver.main(OPSCTLDriver.java:231)

 

 

The issue can happen after upgrading database  and forgot to execute srvctl upgrade,hence the version of the db resource was still in previous version, which lead to the same error.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms