ADG不同步可能情況

2022-09-20 16:24:11 字數 1501 閱讀 6640

1、主庫存在資料庫級別的登入觸發器

登入資料庫會觸發insert資料到表中

adg備庫屬於唯讀資料庫,因此會導致主庫無法登入到備庫

檢查方法:

--檢視sys使用者下觸發器

set linesize 500 pagesize 500

col owner format a5

col trigger_name format a50

col trigger_type format a30

col base_object_type format a12

col status format a12

select owner,trigger_name,trigger_type,base_object_type,status from dba_triggers where owner='sys';

處理方法:

1、檢查觸發器隱含引數情況

col name format a20

col description format a20

col value format a6

col isdefault format a8

col ismodified format a8

col isadjusted format a8

select   i.ksppinm name,  

i.ksppdesc description,  

cv.ksppstvl value,  

cv.ksppstdf isdefault,  

decode (bitand (cv.ksppstvf, 7),  

1, 'modified',  

4, 'system_mod',  

'false')  

ismodified,  

decode (bitand (cv.ksppstvf, 2), 2, 'true', 'false') isadjusted  

from   sys.x$ksppi i, sys.x$ksppcv cv  

where       i.inst_id = userenv ('instance')  

and cv.inst_id = userenv ('instance')  

and i.indx = cv.indx  

and i.ksppinm like '/_%' escape '/'  

and i.ksppinm='_system_trig_enabled'

order by   replace (i.ksppinm, '_', '');

2、禁用隱含引數

alter system set "_system_trig_enabled"=false;

--啟用

--alter system set "_system_trig_enabled"=true;

zabbix時間不同步

linux下如何實現與internet時間同步 一 安裝ntp root server 2 yum install y ntpdate二 同步時間 方式 一 使用網域名稱連線,要經過dns解析,速度慢。root server 2 ntpdate pool.ntp.org 方式 二 使用ip連線,超級...

MYSQL 日誌同步資料不同步

最近在做mysql主從備份時,發現,日誌已經同步,但是資料不同步的問題.後來,我就重新把做了一次主從設定,發現,竟然又同步了,一開始我還以為是我的儲存過程中使用了insert into select 所致呢.重新做的方案寫下來一下,以作記錄 主伺服器 1.停止mysql伺服器的外部接入.2.停止my...

解決VmWare TSC不同步問題

tsc不同步的提示,從以前開始用vmware就有提示了,只是一直也沒注意啥,因為沒看出影響啥了。今天一啟動vmware,發現提示監測出的cpu頻率是2400 mhz,而windows報告的是1790mhz,心中暗想這太離譜了吧,難道vmware還能幫我偽超頻?接著是提示tsc不同步,繼續跳過,然後開...