Skip to content

DBA_SUBSCRIBERS

功能描述

DBA_SUBSCRIBERS系统视图用于记载系统库和用户库下创建的订阅者。

字段说明

字段名类型说明
DB_IDINTEGER库ID
USER_IDINTEGER用户ID
SUBS_IDINTEGER订阅ID
SUBS_NAMECHAR(128)订阅名
RESERVED1CHAR(-1)保留字段
RESERVED2CHAR(128)保留字段

示例

查看订阅者绑定的用户信息

sql
SQL> EXEC DBMS_REPLICATION.CREATE_SUBSCRIBER('sub_info','SYSDBA');

SQL> SELECT * FROM dba_subscribers WHERE subs_name='SUB_INFO';

DB_ID | USER_ID | SUBS_ID | SUBS_NAME | RESERVED1 | RESERVED2 | 
------------------------------------------------------------------------------
1 | 1 | 1048613 | sub_info| <NULL>| <NULL>|

相关系统视图

  • dba_databases
  • dba_users
  • dba_streams
  • dba_modify_logs