-
CREATE TRIGGER adg_logon_sync_trigger
-
AFTER LOGON ON user.schema
-
begin
-
if (SYS_CONTEXT('USERENV', 'DATABASE_ROLE') IN ('PHYSICAL STANDBY')) then
-
execute immediate 'alter session sync with primary';
-
end if;
- end;
看起来很不错,但有些前提条件需要准备好:
