how to failover to primary database from standby database on TAF connection string
Oracle database enterprise edition 19.3
I have a rac primary database and a rac standby database. I want to connect reporting system to standby database. standby database sync mode is set to max availability. after connect to standby database i execute 'alter session set standby_max_data_delay=20' to prevent execute of query on out of date database.
Because of above setting, some of times i get ORA-03172 STANDBY_MAX_DATA_DELAY of 20 seconds exceeded error.
my reporting system connect to oracle database using ODBC connection on windows operating system.
I want if query get above error on standby database, connection fail over to primary database and re-execute query on it.