Oracle 建立物化视图步骤
建立物化视图步骤: 步骤1、建立物化视图日志 SQL> create materialized view LOG on service_t with primary key; 步骤2、建立物化视图 SQL> create materialized view oscar refresh fast on commit with primary key disable query rewrite as select poid_id0 from service_t; Materialized view created. 步骤3、删除物化视图 删除物化视图日志: DROP MATERIALIZED VIEW LOG ON DAVE; 删除物化视图 : DROP MATERIALIZED VIEW MV_DAVE; 步骤4、查询物化视图状态 SQL> SELECT MVIEW_NAME, LAST_REFRESH_DATE, STALENESS FROM USER_MVIEWS; SQL> SELECT NAME, LAST_REFRESH FROM USER_MVIEW_REFRESH_TIMES; 参考博文: http://blog.csdn.net/tianlesoftware/article/details/4713553 来源: oschina 链接: https://my