Created
October 6, 2016 17:13
-
-
Save dotmaik1/cbfad999afb63fb39d45b97872c3ae01 to your computer and use it in GitHub Desktop.
Materialized view check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set verify off | |
| set trimspool on | |
| set lines 132 | |
| set pages 10000 | |
| set markup html on; | |
| set linesize 300 | |
| col INSTANCE_NAME format a10 | |
| col HOST_NAME format a30 | |
| col JOB format 9999999999 | |
| col SCHEMA_USER format a30 | |
| col LAST_DATE format 999999 | |
| col NEXT_DATE format 999999 | |
| col broken format a10 | |
| col INTERVAL format 999999 | |
| col what format a100 | |
| alter session set nls_date_format='dd/mm/yyyy hh24:mi:ss'; | |
| spool /home/oracle/scripts/prod1/MV_Check/mv.txt | |
| select INSTANCE_NAME INSTANCE,HOST_NAME,job,schema_user,last_date,next_date,broken,INTERVAL,what | |
| from dba_jobs,v$instance where last_date < sysdate - 1.3 or broken='Y' and job not in (505,340,217,237,339,360,21); | |
| exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment