My Oracle Support Banner

PRCD-1229 : An attempt to access configuration of database <db_name> was rejected (Doc ID 2214084.1)

Last updated on AUGUST 06, 2023

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.