You can use the GoldenGate Logdump utility to view records in the GoldenGate trail files. The Logdump utility is part of the regular GoldenGate software installation. Logdump lets you view the unstructured trail data in hex and ASCII forma
You can use the GoldenGate Logdump utility to view records in the GoldenGate trail files. The Logdump
utility is part of the regular GoldenGate software installation. Logdump lets you view the unstructured
trail data in hex and ASCII format and count the number of records in the trail for debugging purposes.
You can also filter the trail for desired records and save them to a new trail for reprocessing if needed.
how to use logdump:
[oracle@ogg1 ogg]$ ./logdump
Oracle GoldenGate Log File Dump Utility for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Logdump 44 >help
FC [ | ] – Edit previous command
HISTORY – List previous commands
OPEN | FROM
RECORD | REC - Display audit record
NEXT [ ] - Display next data record
SKIP [ ] [FILTER] – Skip down
FILTER – Apply filter during skip
COUNT – Count the records in the file
[START[time] ,]
[END[time] ,]
[INT[erval] ,]
[LOG[trail] ,]
[FILE ,]
[DETAIL ]
[[yy]yy-mm-dd] [hh[:mm][:ss]]
POSITION [ | FIRST | LAST | EOF ] – Set position in file
REVerse | FORward - Set read direction
RECLEN [ ] - Sets max output length
EXIT | QUIT - Exit the program
FILES | FI | DIR – Display filenames
ENV - Show current settings
VOLUME | VOL | V – Change default volume
DEBUG - Enter the debugger
GHDR ON | OFF – Toggle GHDR display
DETAIL ON | OFF | DATA – Toggle detailed data display
RECLEN
SCANFORHEADER (SFH) [PREV] - Search for the start of a header
SCANFORTYPE (SFT) – Find the next record of
[,]
SCANFORRBA (SFR) – Find the next record with
,
SCANFORTIME (SFTS) – Find the next record with timestamp
[,]
[[yy]yy-mm-dd] [hh[:mm][:ss]]
SCANFORENDTRANS (SFET) – Find the end of the current transaction
SCANFORNEXTTRANS (SFNT) – Find start of the next transaction
SHOW
HEX
]
TRANSID
FILENAME
PROCESS
INT16
INT32
INT64
STARTTIME
ENDTIME
SYSKEY []
SYSKEYLEN [] []
TRANSIND []
UNDOFLAG []
RECLEN []
AUDITRBA []
ANSINAME
GGSTOKEN
USERTOKEN
CSN | LogCSN [] []
=, ==, !=, , , = EQ, GT, LE, GE, LE, NE
X
TRANSHIST nnnn - Set size of transaction history
TRANSRECLIMIT nnnn - Set low record count threshold
TRANSBYTELIMIT nnnn – Set low byte count threshold
LOG {STOP} | { [TO]
BEGIN
SAVEFILECOMMENT on | OFF - Toggle comment records in a savefile
SAVE
nnn RECORDS | nnn BYTES
[NOCOMMENT] - Suppress the Comment header/trailer recs, Default
[COMMENT] - Insert Comment header/trailer recs
[OLDFORMAT] - Force oldformat records
[NEWFORMAT] - Force newformat records
[TRUNCATE ] - purgedata an existing savefile
[EXT ( , [,])] – Savefile Extent sizes on NSK
[MEGabytes ] – For extent size calculation
[TRANSIND ] – Set the transind field
[COMMITTS ] – Set the committs field
USERTOKEN on | OFF | detail - Show user token info
HEADERTOKEN on | OFF | detail - Show header token info
GGSTOKEN on | OFF | detail - Show GGS token info
FILEHEADER on | OFF | detail - Display file header contents
ASCIIHEADER ON | off – Toggle header charset
EBCDICHEADER on | OFF – Toggle header charset
ASCIIDATA ON | on - Toggle user data charset
EBCDICDATA on | OFF – Toggle user data charset
ASCIIDUMP ON | off – Toggle charset for hex/ascii display
EBCDICDUMP on | OFF – Toggle charset for hex/ascii display
TRAILFORMAT old | new – Force trail type
PRINTMXCOLUMNINFO on | OFF – Toggle SQL/MX columninfo display
TMFBEFOREIMAGE on | OFF – Toggle display of TMF before images
FLOAT
[FORMAT ] – sprintf format default %f
Logdump 45 >
Logdump 45 >history
23> n
24> n
25> n
26> n
27> n
28> n
29> open
30> open /opt/ogg/dirdat/k1000000
31> ghdr on
32> detail on
33> dat
34> detail data
35> usertoken on
36> n
37> sfh
38> filter include filename zbdba.test;
39> n
40> n
41> filter clear
42> env
43> fileheader detail
44> help
45> history
Logdump 50 >open ./dirdat/k1000005
Current LogTrail is /opt/ogg/dirdat/k1000005
After you open the trail file, you need to turn on some useful features to make full use of the
Logdump utility. The first command is GHDR ON. It enables display of the record header for the
transactions in the trail file for Oracle GoldenGate:
Logdump 51 >ghdr on
Next, you need to toggle the option for viewing the hex and ASCII values for trailfile data. To do so,
execute the detail data command:
Logdump 52 >detail data
Now you can move to the next record in the trail file by using the next command in Logdump. When
you issue the next command, Logdump moves forward one record:
Logdump 53 >next
2014/09/09 21:05:02.655.182 FileHeader Len 1007 RBA 0
Name: *FileHeader*
3000 0196 3000 0008 4747 0d0a 544c 0a0d 3100 0002 | 0…0…GG..TL..1…
0003 3200 0004 2000 0000 3300 0008 02f2 28df 1908 | ..2… …3…..(…
bace 3400 0013 0011 7572 693a 6f67 6731 3a3a 6f70 | ..4…..uri:ogg1::op
743a 6f67 6736 0000 1a00 182f 6f70 742f 6f67 672f | t:ogg6…../opt/ogg/
6469 7264 6174 2f6b 3130 3030 3030 3537 0000 0101 | dirdat/k10000057….
3800 0004 0000 0005 39ff 0008 0000 0000 0000 0000 | 8…….9………..
3a00 0081 0731 3433 3339 3539 0000 0000 0000 0000 | :….1433959……..
Logdump 54 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x00)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 0 (x0000) IO Time : 2014/09/09 21:05:02.628.813
IOType : 150 (x96) OrigNode : 0 (x00)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 0 AuditPos : 0
Continued : N (x00) RecCount : 0 (x00)
2014/09/09 21:05:02.628.813 RestartAbend Len 0 RBA 1015
Name:
After Image: Partition 0 G s
Logdump 55 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: B (x42)
RecLength : 46 (x002e) IO Time : 2014/09/09 23:14:09.000.000
IOType : 3 (x03) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 30 AuditPos : 24111432
Continued : N (x00) RecCount : 1 (x01)
2014/09/09 23:14:09.000.000 Delete Len 46 RBA 1074
Name: OGG.GGS_MARKER
Before Image: Partition 4 G s
0000 0008 0000 0004 3130 3031 0001 0005 0000 0001 | ……..1001……..
3200 0200 1500 0032 3031 342d 3039 2d30 3420 3032 | 2……2014-09-04 02
3a33 373a 3331 | :37:31
Column 0 (x0000), Len 8 (x0008)
0000 0004 3130 3031 | ….1001
Column 1 (x0001), Len 5 (x0005)
0000 0001 32 | ….2
Column 2 (x0002), Len 21 (x0015)
0000 3230 3134 2d30 392d 3034 2030 323a 3337 3a33 | ..2014-09-04 02:37:3
31 | 1
Logdump 56 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: B (x42)
RecLength : 46 (x002e) IO Time : 2014/09/09 23:44:11.000.000
IOType : 3 (x03) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 30 AuditPos : 24441148
Continued : N (x00) RecCount : 1 (x01)
2014/09/09 23:44:11.000.000 Delete Len 46 RBA 1235
Name: OGG.GGS_MARKER
Before Image: Partition 4 G s
0000 0008 0000 0004 3135 3137 0001 0005 0000 0001 | ……..1517……..
3200 0200 1500 0032 3031 342d 3039 2d30 3420 3232 | 2……2014-09-04 22
3a33 363a 3036 | :36:06
Column 0 (x0000), Len 8 (x0008)
0000 0004 3135 3137 | ….1517
Column 1 (x0001), Len 5 (x0005)
0000 0001 32 | ….2
Column 2 (x0002), Len 21 (x0015)
0000 3230 3134 2d30 392d 3034 2032 323a 3336 3a30 | ..2014-09-04 22:36:0
36 | 6
Logdump 57 >

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

MySQL is suitable for small and large enterprises. 1) Small businesses can use MySQL for basic data management, such as storing customer information. 2) Large enterprises can use MySQL to process massive data and complex business logic to optimize query performance and transaction processing.

InnoDB effectively prevents phantom reading through Next-KeyLocking mechanism. 1) Next-KeyLocking combines row lock and gap lock to lock records and their gaps to prevent new records from being inserted. 2) In practical applications, by optimizing query and adjusting isolation levels, lock competition can be reduced and concurrency performance can be improved.

MySQL is not a programming language, but its query language SQL has the characteristics of a programming language: 1. SQL supports conditional judgment, loops and variable operations; 2. Through stored procedures, triggers and functions, users can perform complex logical operations in the database.

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

MySQL is an open source relational database management system suitable for data storage, management, query and security. 1. It supports a variety of operating systems and is widely used in Web applications and other fields. 2. Through the client-server architecture and different storage engines, MySQL processes data efficiently. 3. Basic usage includes creating databases and tables, inserting, querying and updating data. 4. Advanced usage involves complex queries and stored procedures. 5. Common errors can be debugged through the EXPLAIN statement. 6. Performance optimization includes the rational use of indexes and optimized query statements.

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

InnoDB's lock mechanisms include shared locks, exclusive locks, intention locks, record locks, gap locks and next key locks. 1. Shared lock allows transactions to read data without preventing other transactions from reading. 2. Exclusive lock prevents other transactions from reading and modifying data. 3. Intention lock optimizes lock efficiency. 4. Record lock lock index record. 5. Gap lock locks index recording gap. 6. The next key lock is a combination of record lock and gap lock to ensure data consistency.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools