Tuesday, October 11, 2022

PLS-00306: wrong number or types of arguments in call to 'SWITCH_DESTINATION' After Switchover Between Primary and Standby

Problem:

On a 19c DB having remote AWR configured on the ADG standby DB, I had the below error when trying to SWITCH OVER destination as per Oracle documentation in order to allow the automatic AWR Snapshots to be collected on the new primary (former Standby)

 

SQL>  exec DBMS_UMF.SWITCH_DESTINATION(topology_name =>'Topology_1',force_switch=> 'TRUE');
BEGIN DBMS_UMF.SWITCH_DESTINATION(topology_name =>'Topology_1',force_switch=> 'TRUE'); END;

      *
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'SWITCH_DESTINATION'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


Solution:

On the new Primary; Simply Set _remote_awr_enabled hidden parameter to FALSE and then the AWR Snapshots will get automatically collected on the new primary:

SQL> ALTER SYSTEM SET "_remote_awr_enabled"=FALSE SCOPE=BOTH;


No comments:

Post a Comment