NOTE If you do not specify the log sequence number, SCN, or time expressions in the
recover database command, the command output ends with an error message, such as follows:
unable to find archived log
archived log thread=1 sequence=495
released channel: Cl
released channel: C2
released channel: C3
released channel: C4
RMAN-00571: =================================================
RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
RMAN-00571 :=================================================
RMAN-03002: failure of recover command at 08/19/2020 15:38:00
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 495 and starting SCN of 3304775
In the following example, the
recover database command specifies the sequence number to which the database is restored:
RMAN> run {
2>
3> ALLOCATE CHANNEL C1 TYPE SBT TRACE 5 PARMS 'SBT_LIBRARY=/home/oracle/opt/dpsapps/rmanagent/lib/libddobk.so,SBT_PARMS=(RMAN_AGENT_HOME=/home/oracle/opt/dpsapps/rmanagent/,STORAGE_UNIT=/PLC82-blrv136h019-2882b, BACKUP_HOST=10.125.214.227, ORACLE_HOME= /home/oracle/app/oracle/product/12.2.0/dbhome_1)';
4>
5> ALLOCATE CHANNEL C2 TYPE SBT TRACE 5 PARMS 'SBT_LIBRARY=/home/oracle/opt/dpsapps/rmanagent/lib/libddobk.so,SBT_PARMS=(RMAN_AGENT_HOME=/home/oracle/opt/dpsapps/rmanagent/,STORAGE_UNIT=/PLC82-blrv136h019-2882b, BACKUP_HOST=10.125.214.227, ORACLE_HOME= /home/oracle/app/oracle/product/12.2.0/dbhome_1)';
6>
7> ALLOCATE CHANNEL C3 TYPE SBT TRACE 5 PARMS 'SBT_LIBRARY=/home/oracle/opt/dpsapps/rmanagent/lib/libddobk.so,SBT_PARMS=(RMAN_AGENT_HOME=/home/oracle/opt/dpsapps/rmanagent/,STORAGE_UNIT=/PLC82-blrv136h019-2882b, BACKUP_HOST=10.125.214.227, ORACLE_HOME= /home/oracle/app/oracle/product/12.2.0/dbhome_1)';
8>
9> ALLOCATE CHANNEL C4 TYPE SBT TRACE 5 PARMS 'SBT_LIBRARY=/home/oracle/opt/dpsapps/rmanagent/lib/libddobk.so,SBT_PARMS=(RMAN_AGENT_HOME=/home/oracle/opt/dpsapps/rmanagent/,STORAGE_UNIT=/PLC82-blrv136h019-2882b, BACKUP_HOST=10.125.214.227, ORACLE_HOME= /home/oracle/app/oracle/product/12.2.0/dbhome_1)';
10>
11> recover database until sequence 495;
12>
13> }
allocated channel: C1
channel C1: SID=25 device type=SBT_TAPE
channel C1: PowerProtect DD Boost API
allocated channel: C2
channel C2: SID=40 device type=SBT_TAPE
channel C2: PowerProtect DD Boost API
allocated channel: C3
channel C3: SID=28 device type=SBT_TAPE
channel C3: PowerProtect DD Boost API
allocated channel: C4
channel C4: SID=29 device type=SBT_TAPE
channel C4: PowerProtect DD Boost API
Starting recover at 07-JAN-22
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 07-JAN-22
released channel: C1
released channel: C2
released channel: C3
released channel: C4
If the operation completes without errors, then your database point-in-time recovery has succeeded. You can open the database as mentioned in the next step. However, if the operation completes with errors, you may have chosen the wrong target SCN or sequence. In that case, investigate the issue and determine a new target SCN or sequence, then repeat the database point-in-time recovery process.