现在的位置: 首页 > 综合 > 正文

关于Change Data Capture(六)查询CDC信息

2013年01月30日 ⁄ 综合 ⁄ 共 831字 ⁄ 字号 评论关闭

查询CDC信息

select apply_name, status from dba_apply;
select capture_name, state, total_messages_captured from v$streams_capture;
select group#, thread#, sequence#, archived, status from v$standby_log;

select app.apply_name, q.name, app.status, qt.queue_table
  from dba_apply app, dba_queues q, dba_queue_tables qt
where app.apply_user = 'SYS'
   and q.owner = 'SYS'
   and qt.owner = 'SYS'
   and q.name = app.queue_name
   and qt.queue_table = q.queue_table
   ;
select change_table_name,
       change_set_name,
       source_schema_name,
       source_table_name
  from change_tables
where change_table_schema = 'CDCPUB'
order by change_table_name;

select streams_name,
       streams_type,
       table_owner,
       table_name,
       rule_type,
       source_database
  from dba_streams_table_rules
where rule_owner = 'SYS'
order by table_name, rule_type, streams_type;

select apply_name, status from dba_apply where apply_user = 'SYS';

抱歉!评论已关闭.