SQL> set lines 200 col name for a20 col timefor a40 select name, scn, time, database_incarnation#, guarantee_flashback_database,storage_size from v$restore_point;
Total System Global Area 3941736448 bytes Fixed Size 2259280 bytes Variable Size 905971376 bytes Database Buffers 3019898880 bytes Redo Buffers 13606912 bytes Database mounted. Database opened.
~]$ srvctl start instance -d cocostd -i coco2
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
SQL> select inst_id, name, database_role, open_mode from gv$database;
INST_ID NAME DATABASE_ROLE OPEN_MODE ---------- --------- ---------------- -------------------- 1 COCO PHYSICAL STANDBY READ ONLY WITH APPLY 2 COCO PHYSICAL STANDBY READ ONLY WITH APPLY
SQL> select a.thread, a.received, b.applied 2 from (select thread# thread, max(sequence#) received 3 from v$archived_log 4 group by thread#) a, 5 (select thread# thread, max(sequence#) applied from v$log_history 6 7 group by thread#) b 8 where a.thread = b.thread order by 1; 9
~]$ srvctl start instance -d cocostd -i coco1 -o mount
SQL> set lines 200 col name for a20 col timefor a40 select name, scn, time, database_incarnation#, guarantee_flashback_database,storage_size from v$restore_point;
NAME SCN TIME DATABASE_INCARNATION# GUA STORAGE_SIZE -------------------- ---------- ---------------------------------------- --------------------- --- ------------ ACTIVATE_DG 2523873 12-FEB-24 04.01.11.000000000 PM 2 YES 104857600
SQL> flashback database to restore point ACTIVATE_DG;
Total System Global Area 3941736448 bytes Fixed Size 2259280 bytes Variable Size 905971376 bytes Database Buffers 3019898880 bytes Redo Buffers 13606912 bytes
SQL> alter database mount standby database;
Database altered.
SQL> drop restore point ACTIVATE_DG;
Restore point dropped.
SQL> alter database open read only;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
~]$ srvctl start instance -d cocostd -i coco2
SQL> select inst_id, name, database_role, open_mode from gv$database;
INST_ID NAME DATABASE_ROLE OPEN_MODE ---------- --------- ---------------- -------------------- 2 COCO PHYSICAL STANDBY READ ONLY WITH APPLY 1 COCO PHYSICAL STANDBY READ ONLY WITH APPLY
SQL> alter system set log_archive_dest_state_2='enable' scope=both sid='*';
SQL> select a.thread, a.received, b.applied from (select thread# thread, max(sequence#) received from v$archived_log group by thread#) a, (select thread# thread, max(sequence#) applied from v$log_history group by thread#) b where a.thread = b.thread order by 1;