Oracle 查询视图刷新时间和手动刷新视图

查询视图刷新时间

SELECT  mview_table_owner, mview_name, last_refresh_date, fullrefreshtim, increfreshtim
FROM dba_mview_analysis
WHERE owner='USER';

手动刷新视图


BEGIN
DBMS_MVIEW.REFRESH (
list => 'ty_kfztd_view',
Method =>'COMPLETE',
refresh_after_errors => True);
end;

查询job执行情况

select t.owner,
       t.job_name,
       t.status,
       to_char(t.actual_start_date, 'yyyy-mm-dd hh24:mi:ss'),
       t.additional_info,
       t.error#
  from dba_scheduler_job_run_details t
  
  WHERE t.owner='USER'
  ORDER BY t.actual_start_date DESC

你可能感兴趣的:(oracle)