我有一个简单的物化视图(在oracle 11g上):
CREATE MATERIALIZED VIEW "MV_TEST"
TABLESPACE "DATA"
REFRESH FAST ON DEMAND
WITH PRIMARY KEY USING DEFAULT LOCAL ROLLBACK SEGMENT
USING ENFORCED CONSTRAINTS DISABLE QUERY REWRITE
AS
SELECT
1,2,3
FROM
TABLE_1@dblink;
我用它刷新它:
begin
DBMS_MVIEW.REFRESH(MV_TEST, 'FAST', '', TRUE, FALSE, 0,0,0,FALSE, FALSE);
end;
我怎么能看到这样的刷新操作历史?
1-dic-2015 10:34 fast
1-dic-2015 10:50 fast
1-dic-2015 10:55 fast
1-dic-2015 11:05 fast
1-dic-2015 11:30 fast
答案 0 :(得分:3)
你可以用这个:
SELECT * FROM ALL_MVIEW_REFRESH_TIMES;
或
SELECT * FROM ALL_MVIEW_REFRESH_TIMES where last_refresh between '29-OCT-10' AND '31-OCT-10';
或
SELECT * FROM ALL_MVIEW_REFRESH_TIMES where last_refresh > '28-OCT-10';