时间:2021-07-01 10:21:17 帮助过:32人阅读
欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 SQL CONNECT MVADMIN/MVADMIN@TESTMV已连接。 SQL BEGIN 2 DBMS_REPCAT.CREATE_MVIEW_REPGROUP(GNAME = 'REP_GROUP', MASTER = 'RAC1.US.ORACLE.COM', 3 PROPAGATION_MODE = 'ASYNCHRONOUS'); 4 END
欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入
SQL> CONNECT MVADMIN/MVADMIN@TESTMV已连接。
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MVIEW_REPGROUP(GNAME => 'REP_GROUP', MASTER => 'RAC1.US.ORACLE.COM',
3 PROPAGATION_MODE => 'ASYNCHRONOUS');
4 END;
5 /
PL/SQL 过程已成功完成。
SQL> BEGIN
2 DBMS_REFRESH.MAKE(NAME => 'YANGTK.REP_REFRESH', LIST => '', NEXT_DATE => SYSDATE,
3 INTERVAL => 'SYSDATE + 1/48', IMPLICIT_DESTROY => FALSE, ROLLBACK_SEG => '', PUSH_DEFERRED_RPC
=> FALSE,
4 REFRESH_AFTER_ERRORS => FALSE);
5 END;
6 /
PL/SQL 过程已成功完成。
SQL> CREATE MATERIALIZED VIEW
2 YANGTK.T REFRESH FAST WITH PRIMARY KEY
3 AS SELECT * FROM YANGTK.T@RAC1.US.ORACLE.COM;
实体化视图已创建。
SQL> CREATE MATERIALIZED VIEW
2 YANGTK.T1 REFRESH FAST WITH PRIMARY KEY
3 AS SELECT * FROM YANGTK.T1@RAC1.US.ORACLE.COM;
实体化视图已创建。
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MVIEW_REPOBJECT(GNAME => 'REP_GROUP', SNAME => 'YANGTK',
3 ONAME => 'T', TYPE => 'SNAPSHOT', MIN_COMMUNICATION => TRUE);
4 END;
5 /
PL/SQL 过程已成功完成。
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MVIEW_REPOBJECT(GNAME => 'REP_GROUP', SNAME => 'YANGTK',
3 ONAME => 'T1', TYPE => 'SNAPSHOT', MIN_COMMUNICATION => TRUE);
4 END;
5 /
PL/SQL 过程已成功完成。
SQL> BEGIN
2 DBMS_REPCAT.CREATE_MVIEW_REPOBJECT(GNAME => 'REP_GROUP', SNAME => 'YANGTK',
3 ONAME => 'IND_T1_FID', TYPE => 'INDEX', MIN_COMMUNICATION => TRUE);
4 END;
5 /
PL/SQL 过程已成功完成。
SQL> BEGIN
2 DBMS_REFRESH.ADD(NAME => 'YANGTK.REP_REFRESH',
3 LIST => 'YANGTK.T', LAX => TRUE);
4 END;
5 /
PL/SQL 过程已成功完成。
[1] [2] [3] [4] [5]