Oracle 10g Stream用户级复制配置(2)

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces where TABLESPACE_NAME like '%STREAM%';
 
TABLESPACE_NAME                STATUS
 ------------------------------ ---------
 STREAMTBS                      ONLINE

在目标库验证操作如下:
 SQL> select username from dba_users where username like '%STREAM%';

USERNAME
 ------------------------------
 STREAMADMIN

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces where TABLESPACE_NAME like '%STREAM%';
 
TABLESPACE_NAME                STATUS
 ------------------------------ ---------
 STREAMTBS                      ONLINE

5.源库和目标库创建互连的数据库连接
 在源库验证操作如下:
 SQL> conn streamadmin/oracle@primary
 Connected.
 SQL> col owner for a15;
 SQL> col db_link for a15;
 SQL> col username for a15;
 SQL> col host for a15;
 SQL> select owner,db_link,username,host from dba_db_links;

OWNER          DB_LINK        USERNAME        HOST
 --------------- --------------- --------------- ---------------
 STREAMADMIN    ORCL.NET        STREAMADMIN    standby

SQL> select * from dual@orcl.net;

D
 -
 X
 在目标库验证操作如下:
 SQL> conn streamadmin/oracle@standby;
 Connected.
 SQL> col owner for a15;
 SQL> col db_link for a15;
 SQL> col username for a15;
 SQL> col host for a15;
 SQL> select owner,db_link,username,host from dba_db_links;

OWNER          DB_LINK        USERNAME        HOST
 --------------- --------------- --------------- ---------------
 STREAMADMIN    MYORCL.NET      STREAMADMIN    primary

SQL> select * from dual@myorcl.net;

D
 -
 X

6.查看源库和目标库是否处于归档模式
 SQL> conn / as sysdba
 Connected.
 SQL> archive log list;
 Database log mode              Archive Mode
 Automatic archival            Enabled
 Archive destination            /u01/app/my_arch
 Oldest online log sequence    6
 Next log sequence to archive  8
 Current log sequence          8

更多详情见请继续阅读下一页的精彩内容

Oracle Streams技术介绍&搭建

单实例到单实例Oracle Stream搭建

Oracle 10gR2 Streams删除所有配置

Oracle 单表流复制 Stream

Oracle简单Stream一个用户单向复制配置

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/7911d72cc4887203b01646b98d0a3682.html