SRDC Rman CDBinfo
SRDC Rman CDBinfo
REM
spool &&SRDCSPOOLNAME..htm
set header off;
select '+----------------------------------------------------+' from dual
union all
select '| Diagnostic-Name: '||'&&SRDCNAME' from dual
union all
select '| Timestamp: '||to_char(systimestamp,'YYYY-MM-DD HH24:MI:SS TZH:TZM')
from dual
union all
select '| Machine: '||host_name from v$instance
union all
select '| Version: '||version from v$instance
union all
select '| DBName: '||name from v$database
union all
select '| Instance: '||instance_name from v$instance
union all
select '+----------------------------------------------------+' from dual
/
set header on;
set echo on
set linesize 200 trimspool on
col name form a60
col dbname form a15
col member form a80
col inst_id form 999
col resetlogs_time form a25
col created form a25
col db_unique_name form a15
col stat form 9999999999
col thr form 99999
col "Uptime" form a80
col file# form 999999
col checkpoint_change# form 999999999999999
col first_change# form 999999999999999
col change# form 999999999999999
set numwidth 30;
set pagesize 50000;
alter session set nls_date_format = 'DD-MON-RRRR HH24:MI:SS';
show user
show parameter control_file_record_keep;
show parameter db_recovery_file_dest;
select name, con_id, dbid, con_uid, guid from v$containers order by con_id;
select con_id, HXFIL File_num, FHSCN SCN, FHSTA status, FHDBN dbname, FHDBI DBID,
FHRBA_SEQ Sequence
from X$KCVFH
order by con_id, hxfil;
select 'IF THE FOLLOWING QUERIES FAIL, THE DATABASE IS NOT OPEN IN READ WRITE MODE'
from dual;
REM
REM ++++++++++ RMAN INFORMATION ++++++++++++
REM
select o.output
from v$rman_output o, v$rman_backup_job_details d
where O.session_recid=d.session_recid
and o.session_stamp=d.session_stamp
and d.end_time > sysdate-5;
REM
REM ++++++++++ CONTROLFILE RECORD INFORMATION ++++++++++++
REM
REM
REM ++++++++++ FLASHBACK DATABASE INFORMATION ++++++++++++
REM