1、在另一个窗口执行 Update 操作
update TAP.YBCGRIDINFO_SZWB_ODS set POINTX=122 where RECID=‘4231’;
commit;
2、启动 Logminer
2-1 登录Oracle:sqlplus TAP/Tap#Msa#3@191.254.8.105:1521/tapdata
2-2设定参数(非必选)
set linesize 32767;
set pagesize 50000;
col MEMBER for a60;
col TYPE for a10;
select t1.THREAD#,t1.GROUP#, t1.STATUS, t2.MEMBER, t2.TYPE from v
l
o
g
t
1
i
n
n
e
r
j
o
i
n
v
log t1 inner join v
logt1innerjoinvlogfile t2 on t1.GROUP# = t2.GROUP# and t1.STATUS = ‘CURRENT’;
CURRENT:当前的
结果:
THREAD# GROUP# STATUS MEMBER TYPE
1 2 CURRENT +DATADG/tapdata/onlinelog/group_2.562.1119537751 ONLINE
1 2 CURRENT +FRADG/tapdata/onlinelog/group_2.31948.1119537753 ONLINE
2 6 CURRENT +DATADG/tapdata/onlinelog/group_6.560.1119538853 ONLINE
2 6 CURRENT +FRADG/tapdata/onlinelog/group_6.10942.1119538855 ONLINE
exec dbms_logmnr.add_logfile(‘+DATADG/tapdata/onlinelog/group_2.562.1119537751’);
exec dbms_logmnr.add_logfile(‘+DATADG/tapdata/onlinelog/group_6.560.1119538853’);
exec dbms_logmnr.start_logmnr(options=>dbms_logmnr.dict_from_online_catalog);
3、查询 redo log 日志
select sql_redo from v$logmnr_contents where table_name like ‘%YBCGRIDINFO_SZWB_ODS%’;
4、结束分析
exec dbms_logmnr.end_logmnr;
查看了 redolog 更新语句,是否和步骤一的更新语句对比,是否是完整的。
若缺失了,则需要找DBA查看其是否开启了全补充归档日志。