Oracle GoldenGate 系列:如何计算 Extract 或 Replicat 进程的
测量吞吐量 在数据复制环境中,测量指定时间段内复制的数据量非常重要。不过,带宽一般是按照 Gbps 的单位(Gbit/s)来算的。测量和报告操作的类型和数量可以从整体上了解 GoldenGate 环境的性能。 数据吞吐量 要计算 GoldenGate 的吞吐量,我们可以使用以下
测量吞吐量
在数据复制环境中,测量指定时间段内复制的数据量非常重要。不过,带宽一般是按照 Gbps 的单位(Gbit/s)来算的。测量和报告操作的类型和数量可以从整体上了解 GoldenGate 环境的性能。
数据吞吐量
要计算 GoldenGate 的吞吐量,我们可以使用以下参数在进程的报告文件中附加该进程相关的统计信息:
REPORTCOUNT EVERY 1 MINUTES, RATE
REPORTCOUNT 可以在 Extract 或 Replicat参数文件中使用。 RATE 选项可以提供额外的性能统计信息,计算进程启动以来处理的总记录数,包括上一次报告以来的增量统计信息。
下面的 Extract 报告示例显示的是 1 分钟间隔内的 RATE 统计信息:
2010-10-13 11:24:58 INFO OGG-01026 Rolling over remote file ./dirdat/na000060.
9334116 records processed as of 2010-10-13 11:25:24 (rate 3728,delta 9352)
9907789 records processed as of 2010-10-13 11:26:24 (rate 3865,delta 9543)
10492064 records processed as of 2010-10-13 11:27:26 (rate 3997,delta9518)
10975243 records processed as of 2010-10-13 11:28:26 (rate 4088,delta8052)
要测量每秒、每分钟、每小时的吞吐量,我们需要计算指定时间段处传输的字节数。为此,我们必须按照以下步骤在持续的负载期间对每个 Extract 或 Replicat进程执行如下操作:
1. 以 Oracle 用户登录并调用 GGSCI 命令:
2. 执行 INFO ALL 命令列出各个进程的信息。选择一个进程来测量其吞吐量及运行时详细信息:
GGSCI (dbserver2) 2> info RTGTRNG1, detail
REPLICAT RTGTRNG1 Last Started2010-10-29 16:39 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:27 ago)Log Read Checkpoint File ./dirdat/nb000001 2010-10-29 17:07:15.993969 RBA 428715322
Extract Source Begin End
./dirdat/nb000001 2010-10-2916:37 2010- 10-29 17:07 ./dirdat/nb000000 * Initialized * 2010- 10-29 16:37
3. 等待一分钟后,再通过 GGSCI 命令执行同样的命令:
GGSCI (dbserver2) 3> !
info RTGTRNG1, detail
REPLICAT RTGTRNG1 Last Started2010-10-29 16:39 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:07 ago)Log Read Checkpoint File ./dirdat/nb000001 2010-10-29 17:08:15.982789 RBA 485803675
4. 用两次 info,detail 命令的 RelativeByte Address (RBA) 相减来计算吞吐量的详细信息。
485803675 – 428715322= 57088353 bytes / minute
5. 将每分钟处理的字节数转换成每分钟处理的MB数。
57088353/(1024*1024) = 54.55 MB/minute
6. 将每分钟处理的MB数转换为每小时处理的MB数。
54.55 * 60 = 3266.62 MB/hour
7. 最后,计算每小时处理的GB数。
3266.62/1024 = 3.19 GB/hour
8. 通过上述步骤,可以准确地计算每个进程的数据吞吐量,快速地识别性能瓶颈。
操作吞吐量
操作的吞吐量是指指定时间段内每秒出现的 insert、update、delete 和 discard 操作的总数。
GoldenGate软件针对操作的吞吐量提供了全面的统计信息,可以通过该统计信息确认进程是否运行正常,报告进程的负载和性能。可以通过针对 Extract 或 Replicat 进程执行 GGSCI STATS 命令获取该信息。以下命令可以查看进程启动以来的累积操作数,包括每天和每小时的。该命令支持通配符。
GGSCI (dbserver2) 1> stats replicat RTGTRNG1, totalsonly *, reportratesec
STATS 命令的另一个选项可以报告指定时间段内针对 Extract 进程以及特定表的操作负载。
GGSCI (dbserver1) 1> stats EXTRACT ESRCNMSG, totalsonly SRC.ORDERS
可以根据需要执行 GGSCI SEND 命令将操作的负载信息写入进程的报告文件。
GGSCI (dbserver1) 2> send EXTRACT ESRCNMSG, report
Sending REPORT request to EXTRACT ESRCNMSG ... Request processed.
SEND 还可以和 EVENTACTIONS 一起使用,用以生成特定事件的统计信息。可以通过 view report 命令阅读最新的报告文件。
GGSCI (dbserver1) 3> view report ESRCNMSG
..
Output to ./dirdat/na:
From Table SRC.SESSIONS:
# inserts: 2526
# updates: 2526
# deletes: 0
# discards: 0
From Table SRC.USERS:
# inserts: 0
# updates: 7534
http://blog.csdn.net/xiangsir/article/details/8837163

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

The function in Oracle to calculate the number of days between two dates is DATEDIFF(). The specific usage is as follows: Specify the time interval unit: interval (such as day, month, year) Specify two date values: date1 and date2DATEDIFF(interval, date1, date2) Return the difference in days

The Oracle database startup sequence is: 1. Check the preconditions; 2. Start the listener; 3. Start the database instance; 4. Wait for the database to open; 5. Connect to the database; 6. Verify the database status; 7. Enable the service (if necessary ); 8. Test the connection.

The INTERVAL data type in Oracle is used to represent time intervals. The syntax is INTERVAL <precision> <unit>. You can use addition, subtraction, multiplication and division operations to operate INTERVAL, which is suitable for scenarios such as storing time data and calculating date differences.

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

To find the number of occurrences of a character in Oracle, perform the following steps: Get the total length of a string; Get the length of the substring in which a character occurs; Count the number of occurrences of a character by subtracting the substring length from the total length.

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.

The Xiaomi Mi 15 series is expected to be officially released in October, and its full series codenames have been exposed in the foreign media MiCode code base. Among them, the flagship Xiaomi Mi 15 Ultra is codenamed "Xuanyuan" (meaning "Xuanyuan"). This name comes from the Yellow Emperor in Chinese mythology, which symbolizes nobility. Xiaomi 15 is codenamed "Dada", while Xiaomi 15Pro is named "Haotian" (meaning "Haotian"). The internal code name of Xiaomi Mi 15S Pro is "dijun", which alludes to Emperor Jun, the creator god of "The Classic of Mountains and Seas". Xiaomi 15Ultra series covers
