Analysis Steps for slow OGG rep running

Source: Internet
Author: User

Analysis Steps for slow OGG rep running

Analysis Steps for slow OGG rep running:

1. Perform ps-ef | grep according to the rep process name to obtain the rep process PID.

[Oracle @ hosta ~] $ Ps-ef | grep repfull
Oracle 27906 27861 0 pts/7 S + \ _ grep repfull
Oracle 27603 20773 1? Ssl 0: 51 \ _/u02/ggs/replicat PARAMFILE/u02/ggs/dirprm/repfull. prm REPORTFILE/u02/ggs/dirrpt/REPFULL. rpt processid repfull usesubdi

Second, execute ps-ef | grep according to the rep process PID to obtain the 27603 generated LOCAL = YES process.

[Oracle @ hosta ~] $ Ps-ef f | grep 27603
Oracle 27910 27861 0 pts/7 S + \ _ grep 27603
Oracle 27603 20773 1? Ssl 0: 52 \_/ u02/ggs/replicat PARAMFILE/u02/ggs/dirprm/repfull. prm REPORTFILE/u02/ggs/dirrpt/REPFULL. rpt processid repfull usesubdi
Oracle 27607 27603 2? Ds \ _ oracleorcl (DESCRIPTION = (LOCAL = YES) (ADDRESS = (PROTOCOL = beq) ----> This is.
[Oracle @ hosta ~] $

Execute the following SQL statement in sqlplus:


SELECT SQL _text, SQL _id FROM v $ sqltext a WHERE a. hash_value = (SELECT SQL _hash_value FROM v $ session B
WHERE B. SID = (select s. sid from v $ session s, v $ process p where s. paddr = p. addr and p. spid = '000000') ---> replace 27607
Order by piece ASC;

Select plan_table_output from table (dbms_xplan.display_cursor ('6ufrk02y1h6u5 '); ---> replace it with the SQL _id OBTAINED IN THE PREVIOUS QUERY to view its execution plan.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.