惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
News and Events Feed by Topic
P
Privacy International News Feed
Apple Machine Learning Research
Apple Machine Learning Research
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
Spread Privacy
Spread Privacy
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
GbyAI
GbyAI
The Hacker News
The Hacker News
K
Kaspersky official blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cyber Attacks, Cyber Crime and Cyber Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
A
About on SuperTechFans
S
Secure Thoughts
G
Google Developers Blog
博客园 - 司徒正美
Forbes - Security
Forbes - Security
T
The Exploit Database - CXSecurity.com
Latest news
Latest news
V2EX - 技术
V2EX - 技术
I
InfoQ
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Security Latest
Security Latest
AI
AI
T
Tailwind CSS Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cloudbric
Cloudbric
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Schneier on Security
博客园 - 【当耐特】
NISL@THU
NISL@THU
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
Lohrmann on Cybersecurity
Help Net Security
Help Net Security
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - jimeper

RAC升级后,一个节点无法连接数据库,报ORA-12537: TNS:connection closed 升级到11.2.0.4后用srvctl无法启用数据库实例,报CRS-0254: authorization failure Oracle 11gR2 RAC DBCA无法识别ASM磁盘组(ORA-19504,ORA-15045,ORA-17502,ORA-15081) Troubleshooting Scheduler Autotask Issues (Doc ID 1561498.1) LINUX系统下添加映射存储LUN goldengate一些参数整理 原创:goldengate从11.2升级到12.1.2 Transaction recovery: lock conflict caught and ignored 搭建mongodb集群(副本集+分片) 不停止MySQL服务增加从库的两种方式 Oracle Goldengate REPLICAT启动时报正在运行解决办法 Oracle 11g RAC环境下Private IP修改方法及异常处理 LOB字段存放在指定表空间 清理CLOB字段及压缩CLOB空间 (原创)INTERVAL分区表与RANGE分区表相互转化 删除数据报ORA-00600: internal error code, arguments: [ktbesc_plugged] OGG-03517 Conversion from character set failed解决方法 Redis之高可用方案 linux中shell变量$#,$@,$0,$1,$2的含义解释 用飞信监控GoldenGate进程
Logdump使用指引
jimeper · 2015-02-25 · via 博客园 - jimeper

Logdump使用指引
在GGSCI中使用如下命令查看当前处理的队列文件和RBA号,例如:
GGSCI (br-jl-accs-db1) 3> info REPYXA
REPLICAT   REPYXA    Last Started 2011-01-08 19:48   Status RUNNING
Checkpoint Lag       00:00:00 (updated 136:41:42 ago)
Log Read Checkpoint  File ./dirdat/p1000556 First Record  RBA 59193235
检查discard file:
GGSCI (edvmr1p0) 3> sh more dirrpt/rep_5b.dsc
GGSCI (edvmr1p0) 4> dblogin userid source, password ggs
GGSCI (edvmr1p0) 5> info trandata SOURCE.EMP5B
检查这个SQL所在的事务,用Logdump:
[oracle@edvmr1p0 OGG_Target]$ logdump
Logdump 46 >open ./dirdat/5b000000
Current LogTrail is /home/oracle/OGG_Target/dirdat/5b000000
Logdump 47 >ghdr on
Logdump 48 >detail on
Logdump 49 >detail data
Logdump 50 >usertoken on
Logdump 51 >pos 153345
Reading forward from RBA 153345 
从Discard File获取这条记录的RBA,通过Logdump定位到这条记录
Logdump 60 >pos 153345
Reading forward from RBA 153345
Logdump 61 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)
RecLength  :    28  (x001c)   IO Time    : 2011/04/08 00:30:59.001.728
IOType     :    15  (x0f)     OrigNode   :   255  (xff)
TransInd   :     .  (x00)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :        231       AuditPos   : 11214352
Continued  :     N  (x00)     RecCount   :     1  (x01) 
 
2011/04/08 00:30:59.001.728 FieldComp            Len    28 RBA 153345
Name: SOURCE.EMP5B
After  Image:                                             Partition 4   G  b
 0000 000a ffff 0000 0000 0000 0000 0006 000a 0000 | ....................
 0000 0000 0000 03e8                               | ........
Column     0 (x0000), Len    10 (x000a)
Column     6 (x0006), Len    10 (x000a)  
 
为了不破坏事务的完整性,找到这个SQL的事务结尾,找到下个事务的起始RBA
Logdump 62 >scanforendtrans
End of Transaction found at RBA 165149
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)
RecLength  :    28  (x001c)   IO Time    : 2011/04/08 00:30:59.001.728
IOType     :    15  (x0f)     OrigNode   :   255  (xff)
TransInd   :     .  (x02)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :        231       AuditPos   : 11246304
Continued  :     N  (x00)     RecCount   :     1  (x01) 
 
2011/04/08 00:30:59.001.728 FieldComp            Len    28 RBA 165149
Name: SOURCE.EMP5B
After  Image:                                             Partition 4   G  e
 0000 000a ffff 0000 0000 0000 0000 0006 000a 0000 | ....................
 0000 0000 0001 86a0                               | ........
Column     0 (x0000), Len    10 (x000a)
Column     6 (x0006), Len    10 (x000a)  
 
Logdump 63 >pos 165149
Reading forward from RBA 165149
Logdump 64 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)
RecLength  :    28  (x001c)   IO Time    : 2011/04/08 00:30:59.001.728
IOType     :    15  (x0f)     OrigNode   :   255  (xff)
TransInd   :     .  (x02)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :        231       AuditPos   : 11246304
Continued  :     N  (x00)     RecCount   :     1  (x01) 
 
2011/04/08 00:30:59.001.728 FieldComp            Len    28 RBA 165149
Name: SOURCE.EMP5B
After  Image:                                             Partition 4   G  e
 0000 000a ffff 0000 0000 0000 0000 0006 000a 0000 | ....................
 0000 0000 0001 86a0                               | ........
Column     0 (x0000), Len    10 (x000a)
Column     6 (x0006), Len    10 (x000a)  
 
通过Scanforheader知道下一个事务的开始
Logdump 65 >scanforheader
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)
UndoFlag   :     .  (x00)     BeforeAfter:     B  (x42)
RecLength  :    14  (x000e)   IO Time    : 2011/04/08 00:30:59.001.728
IOType     :     3  (x03)     OrigNode   :   255  (xff)
TransInd   :     .  (x00)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :        231       AuditPos   : 11247120
Continued  :     N  (x00)     RecCount   :     1  (x01) 
 
2011/04/08 00:30:59.001.728 Delete               Len    14 RBA 165268
Name: SOURCE.EMP5B
Before Image:                                             Partition 4   G  b
 0000 000a 0000 0000 0000 0000 0315                | ..............
Column     0 (x0000), Len    10 (x000a)
Solution:

GGSCI (edvmr1p0) 5> alter REP_5B, extseqno 0, extrba 165268
REPLICAT altered.