Quick check to see if the instance is standby or primary?
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select controlfile_type from V$database;
CONTROL
-------
STANDBY
Useful sql
select to_char(max(next_time),'dd Mon yyyy hh24:mi:ss') from v$archived_log where applied = 'YES';
TO_CHAR(MAX(NEXT_TIME),'DDMON
-----------------------------
05 Mar 2019 07:24:02
alter session set nls_date_format='dd Mon yyyy hh24:mi:ss';
select * from (
SELECT FIRST_TIME, NEXT_TIME, SEQUENCE# FROM V$ARCHIVED_LOG ORDER BY SEQUENCE# desc) where rownum < 6 order by SEQUENCE#;
FIRST_TIME NEXT_TIME SEQUENCE#
----------------------------- ----------------------------- ----------
05 Feb 2019 06:39:02 05 Feb 2019 06:54:02 213003
05 Feb 2019 06:54:02 05 Feb 2019 07:09:02 213004
05 Feb 2019 07:09:02 05 Feb 2019 07:24:02 213005
05 Feb 2019 07:24:02 05 Feb 2019 07:39:02 213006
05 Feb 2019 07:39:02 05 Feb 2019 07:54:02 213007
No comments:
Post a Comment