I am taking oracle backup using RMAN and saving current scn number i am getting scn number from below command
select max(next_change#) from v$archived_log where archived = 'YES' group by thread#;
It gives outut as below
MAX(NEXT_CHANGE#)
-----------------
3911392
3903950
i found from oracle documentation is , If the log is archived twice, there will be two archived log records with the same THREAD#
, SEQUENCE#
, and FIRST_CHANGE#
, but with a different name.
Que 1)Which SCN should i refer while restore in SET Until SCN
commnd
Que 2)There is one more command for getting SCN as below
select current_scn from v$database;
its output is
CURRENT_SCN
-----------
3914145
Whats the difference between these two commands output SCN?
Que 3) I have a RAC setup which has two oracle machine, Does those two thread# has something to do with this?