Oracle: RMAN restore command for fscnv1

 From fsprod:

>rman target / catalog fsprod19/bkup_123@rmprod auxiliary sys/Z_GC3HLU7ZfguQxgw@fscnv1

RMAN> spool log to /usr/local/oracle/restorefscnv1Oct6th.txt;

RMAN> run {

startup clone nomount;

allocate auxiliary channel aux1 device type disk;

set until scn 127546791093;

DUPLICATE target database to fscnv1 

nofilenamecheck

db_file_name_convert = (

'fsprod','fscnv1'

);

}

spool log off;




It is preferred that you use 'set until . . . ' else rman will look for most recent archive logs if you don't use that clause,

and you can get these errors while restoring: RMAN-06053 and RMAN-06025





on FSPROD:

oracle-psfsdb602.tmw.com:fsprod:/usr/opt/app/oracle/admin/fsprod>rman target / catalog fsprod19/bkup_123@rmprod


Recovery Manager: Release 19.0.0.0.0 - Production on Tue Oct 6 09:40:03 2026

Version 19.32.0.0.0


Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.


connected to target database: FSPROD (DBID=2773054092)

connected to recovery catalog database


RMAN> list backup of controlfile completed before '07-OCT-2026';

list backup of controlfile completed before '07-OCT-2026';


List of Backup Sets

===================



BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2620119 Full    57.58M     DISK        00:00:01     06-OCT-26

        BP Key: 2620121   Status: AVAILABLE  Compressed: NO  Tag: TAG20261006T010707

        Piece Name: /usr/opt/app/dbdump/hot_backup/FSPROD/FSPROD_AutoCTL_c-2773054092-20261006-00.bak

  Control File Included: Ckp SCN: 127546316468   Ckp time: 06-OCT-26


BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2620160 Full    57.58M     DISK        00:00:01     06-OCT-26

        BP Key: 2620162   Status: AVAILABLE  Compressed: NO  Tag: TAG20261006T020005

        Piece Name: /usr/opt/app/dbdump/hot_backup/FSPROD/FSPROD_AutoCTL_c-2773054092-20261006-01.bak

  Control File Included: Ckp SCN: 127546339103   Ckp time: 06-OCT-26


BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2620187 Full    57.58M     DISK        00:00:01     06-OCT-26

        BP Key: 2620189   Status: AVAILABLE  Compressed: NO  Tag: TAG20261006T040007

        Piece Name: /usr/opt/app/dbdump/hot_backup/FSPROD/FSPROD_AutoCTL_c-2773054092-20261006-02.bak

  Control File Included: Ckp SCN: 127546446113   Ckp time: 06-OCT-26


BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2620222 Full    57.58M     DISK        00:00:01     06-OCT-26

        BP Key: 2620225   Status: AVAILABLE  Compressed: NO  Tag: TAG20261006T060021

        Piece Name: /usr/opt/app/dbdump/hot_backup/FSPROD/FSPROD_AutoCTL_c-2773054092-20261006-03.bak

  Control File Included: Ckp SCN: 127546791093   Ckp time: 06-OCT-26


BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2620273 Full    57.58M     DISK        00:00:01     06-OCT-26

        BP Key: 2620278   Status: AVAILABLE  Compressed: NO  Tag: TAG20261006T090052

        Piece Name: /usr/opt/app/dbdump/hot_backup/FSPROD/FSPROD_AutoCTL_c-2773054092-20261006-04.bak

  Control File Included: Ckp SCN: 127547497714   Ckp time: 06-OCT-26



RMAN>






db_file_name_convert = ('/usr/opt/app/oracle/admin/fsprod/data01', '/usr/opt/app/oracle/admin/fsdbug/data01'

'/usr/opt/app/oracle/admin/fsprod/ndx01', '/usr/opt/app/oracle/admin/fsdbug/ndx01'

'/usr/opt/app/oracle/admin/fsprod/flash01', '/usr/opt/app/oracle/admin/fsdbug/flash01'

'/usr/opt/app/oracle/admin/fsprod/redo01', '/usr/opt/app/oracle/admin/fsdbug/redo01'

'/usr/opt/app/oracle/admin/fsprod/system01', '/usr/opt/app/oracle/admin/fsdbug/system01'

'/usr/opt/app/oracle/admin/fsprod/temp01', '/usr/opt/app/oracle/admin/fsdbug/temp01'

'/usr/opt/app/oracle/admin/fsprod/undo01', '/usr/opt/app/oracle/admin/fsdbug/undo01'

'/usr/opt/app/oracle/admin/fsprod/arch', '/usr/opt/app/oracle/admin/fsdbug/arch');

}


Comments

Popular posts from this blog

Postgres: To list table owners

PeopleSoft: Clean Up PUM

Postgres: To check the locale / Character set settings