Home Database Mysql Tutorial Oracle GoldenGate 系列:如何计算 Extract 或 Replicat 进程的

Oracle GoldenGate 系列:如何计算 Extract 或 Replicat 进程的

Jun 07, 2016 pm 03:02 PM
ext oracle how series calculate

测量吞吐量 在数据复制环境中,测量指定时间段内复制的数据量非常重要。不过,带宽一般是按照 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



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

How to export oracle view How to export oracle view Apr 12, 2025 am 06:15 AM

Oracle views can be exported through the EXP utility: Log in to the Oracle database. Start the EXP utility, specifying the view name and export directory. Enter export parameters, including target mode, file format, and tablespace. Start exporting. Verify the export using the impdp utility.

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

See all articles