Quantcast
Channel: Database Administration Tips
Viewing all articles
Browse latest Browse all 214

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

$
0
0

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;



Viewing all articles
Browse latest Browse all 214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>