Home » Server Options » Data Guard » Incorrect database role (11.2.0, Centos 5.5)
Incorrect database role [message #485924] |
Sat, 11 December 2010 15:18  |
mateenaslam
Messages: 21 Registered: November 2010 Location: Islamabad, Pakistan
|
Junior Member |
|
|
Hi,
I am getting error ORA-16816: incorrect database role. The reason is my switch over to standby become failed and now both primary and standby databases showing 'database_role' as 'Physical Standby'.
My question is how to manually set 'database_role' to 'PRIMARY' on primary database.
--------------------------------------------
DGMGRL> show configuration
Configuration - dgproj
Protection Mode: MaxPerformance
Databases:
repl - Primary database
Error: ORA-16816: incorrect database role
dgrepl - Physical standby database
--------------------------------------------
|
|
|
|
Re: Incorrect database role [message #485971 is a reply to message #485924] |
Sun, 12 December 2010 05:59   |
John Watson
Messages: 8984 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I have seen the reverse situation, where Data Guard Broker thought that both databases were primary. I would suggest that the first thing to do is to disable and remove the configuration, and (very important) delete all the config files. Then check reality: connect to both databases with SQL*Plus, and see if they are, in fact, primary or standby.
If you do have a primary and a standby, create a new configuration. Easy.
If both database are in fact standby, you will have to activate one of them as a primary, create a new configuration, and then try to reinstate the other as a standby. That might be a bit harder.
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Aug 17 21:03:56 CDT 2025
|