This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
oracle_goldengate [2018/11/13 10:00] ss_wiki_admin [Process Info] |
oracle_goldengate [2021/04/23 07:57] (current) ss_wiki_admin [Process Memory Usage] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| < | < | ||
| ./ggsci | ./ggsci | ||
| + | dblogin USERIDALIAS ggadmin | ||
| SEND EXTRACT ext_mr CACHEMGR CACHESTATS | SEND EXTRACT ext_mr CACHEMGR CACHESTATS | ||
| SEND REPLICAT rep_file CACHEMGR CACHESTATS | SEND REPLICAT rep_file CACHEMGR CACHESTATS | ||
| Line 27: | Line 28: | ||
| send extract dp_mr resettcpstats | send extract dp_mr resettcpstats | ||
| </ | </ | ||
| + | |||
| + | ==== Stats from within DB ==== | ||
| + | <code sql> | ||
| + | /* Extract side */ | ||
| + | SELECT capture_name, | ||
| + | |||
| + | /* Replicat side */ | ||
| + | SELECT r.apply_name, | ||
| + | </ | ||
| + | |||
| + | ==== Heartbeat Table ==== | ||
| + | Show heartbeat for all extracts and replicats | ||
| + | <code sql> | ||
| + | select * from ggadmin.gg_heartbeat; | ||
| + | </ | ||
| + | Show lag history | ||
| + | <code sql> | ||
| + | set pagesize 200 linesize 200 | ||
| + | col heartbeat_received_ts format a30 | ||
| + | col incoming_path format a24 | ||
| + | col incoming_lag format 999,999.999 | ||
| + | ALTER SESSION SET NLS_DATE_FORMAT=' | ||
| + | SELECT heartbeat_received_ts, | ||
| + | </ | ||
| + | |||
| + | ==== Tuning STREAMS pool ==== | ||
| + | Set the STREAMS_POOL_SIZE initialization parameter for the database to the following value: | ||
| + | **(MAX_SGA_SIZE * # of integrated Extracts) + 25% head room** | ||
| + | |||
| + | <code sql> | ||
| + | select current_size from v$sga_dynamic_components where component = ' | ||
| + | |||
| + | /* Streams pool advice */ | ||
| + | COLUMN STREAMS_POOL_SIZE_FOR_ESTIMATE | ||
| + | FORMAT 999999999999 | ||
| + | COLUMN STREAMS_POOL_SIZE_FACTOR HEADING ' | ||
| + | COLUMN ESTD_SPILL_COUNT HEADING ' | ||
| + | COLUMN ESTD_SPILL_TIME HEADING ' | ||
| + | COLUMN ESTD_UNSPILL_COUNT HEADING ' | ||
| + | COLUMN ESTD_UNSPILL_TIME HEADING ' | ||
| + | |||
| + | SELECT STREAMS_POOL_SIZE_FOR_ESTIMATE, | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | FROM V$STREAMS_POOL_ADVICE; | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Monitor Dependency Waits ==== | ||
| + | If there are many wait dependencies when using integrated Replicat, try reducing the value of BATCHTRANSOPS. | ||
| + | <code sql> | ||
| + | select APPLY_NAME, STATE, ACTIVE_SERVER_COUNT, | ||
| + | </ | ||
| + | |||
| + | |||
| ==== Process Memory Usage ==== | ==== Process Memory Usage ==== | ||
| Line 130: | Line 189: | ||
| # Individual extract Process Usage # | # Individual extract Process Usage # | ||
| ##################################### | ##################################### | ||
| - | 41.7109 MB DP_CLI | + | 41.7109 MB DP_C |
| - | 31.9805 MB DP_FMS | + | 31.9805 MB DP_F |
| - | 29.9297 MB DP_MR | + | 29.9297 MB DP_M |
| - | 37.3672 MB DP_MR_O | + | 37.3672 MB DP_M_O |
| - | 37.8438 MB DP_SDE | + | 37.8438 MB DP_S |
| - | 29.1562 MB DP_SERV | + | 29.1562 MB DP_SV |
| - | 1516.69 MB EXT_CLI | + | 1516.69 MB EXT_C |
| - | 74.8516 MB EXT_FMS | + | 74.8516 MB EXT_F |
| - | 556.352 MB EXT_MR | + | 556.352 MB EXT_M |
| - | 246.926 MB EXT_MR_O | + | 246.926 MB EXT_M_O |
| - | 68.7773 MB EXT_SDE | + | 68.7773 MB EXT_S |
| - | 91.5234 MB EXT_SERV | + | 91.5234 MB EXT_SV |
| ##################################### | ##################################### | ||
| Line 152: | Line 211: | ||
| </ | </ | ||
| + | ==== Apply Server Details ==== | ||
| + | <code sql> | ||
| + | select APPLY_NAME, APPLY#, SERVER_ID, STATE, TOTAL_MESSAGES_APPLIED from V$GG_APPLY_SERVER ORDER BY APPLY_NAME, SERVER_ID; | ||
| + | </ | ||
| + | ==== Apply Coordinator Detail ==== | ||
| + | <code sql> | ||
| + | SELECT APPLY_NAME, STATE, TOTAL_APPLIED, | ||
| + | </ | ||
| + | ==== Queue Status ==== | ||
| + | <code sql> | ||
| + | SELECT DST_QUEUE_SCHEMA, | ||
| + | </ | ||
| + | |||
| + | ==== Apply Latency ==== | ||
| + | <code sql> | ||
| + | SELECT r.apply_name, | ||
| + | </ | ||
| + | |||
| + | ==== Trace Monitoring ==== | ||
| + | under OGG installation home directory, create an xml file named gglog-< | ||
| + | gglog-< | ||
| + | <code xml> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <layout class=" | ||
| + | </ | ||
| + | <logger name=" | ||
| + | <level value=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||