批量刷新远程物化视图的方法(备用)
生活随笔
收集整理的這篇文章主要介紹了
批量刷新远程物化视图的方法(备用)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、創建遠程數據庫連接
create database link MDMconnect to MDMidentified by mdmusing '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = 172.17.11.1)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SID= MDM)))';
?
二、創建兩個物化視圖:
CREATE MATERIALIZED VIEW DEPARTMENT TABLESPACE DAT_ICNF USING INDEX TABLESPACE IDX_ICNF REFRESH FORCE ON DEMAND AS SELECT * FROM MDM.DEPARTMENT@MDM WHERE TREELEVEL = 1 AND STATUS = '0';CREATE MATERIALIZED VIEW EMPLOYEE TABLESPACE DAT_ICNF USING INDEX TABLESPACE IDX_ICNF REFRESH FORCE ON DEMAND AS SELECT * FROM MDM.EMPLOYEE@MDM WHERE STATUS = '0';
三、創建刷新組
四、刪除刷新組
--execute dbms_refresh.destroy('MVTAG'); --commit;?
總結
以上是生活随笔為你收集整理的批量刷新远程物化视图的方法(备用)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: cmake编译Debug和Release
- 下一篇: Converter Tutorial