Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMAN Restore an oracle 12.1 to a different DB after upgrading it to oracle 19

HesipesiApr 28 2020 — edited Apr 30 2020

Hi,

I had an oracle 12.1 database which I took a level 0 backup and upgraded it to Oracle 19.

The database is registered in an oracle 19 RMAN Catalog.

Now I want to test my restore process and restore it with another name to work as the old oracle 12 database.

I've got couple of RMAN errors when I try different scenarios:

My database was a primary database and had one Standby database.

Here is the scripts i've executed was failed in different steps.

[oracle@test1 restore]$ . orause

ORCL          /oracle/oracle19

ORCL12        /oracle/12.1.0.2

ORACLE_SID = [oracle] ? ORCL

[oracle@test1 restore]$ rman

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Apr 28 15:20:07 2020

Version 19.6.0.0.0

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

RMAN> connect catalog user1/pass@rmancatalog19

connected to recovery catalog database

RMAN> connect target sys/pass1@ORCL

connected to target database: ORCL (DBID=3255963214)

RMAN> connect auxiliary sys/pass1@ORCL12

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-06429: AUXILIARY database is not compatible with this version of RMAN

RMAN-06618: RMAN client and database version mismatch; indicated database version is 12.1.0.2

RMAN>Recovery Manager complete.

[oracle@test1 ~]$ . orause

ORCL          /oracle/oracle19

ORCL12        /oracle/12.1.0.2

ORACLE_SID = [oracle] ? ORCL12

[oracle@test1 ~]$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Tue Apr 28 11:26:05 2020

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

connected to target database: ORCL12 (not mounted)

RMAN> connect catalog user1/pass@rmancatalog19

connected to recovery catalog database

recovery catalog schema release 19.06.00.00. is newer than RMAN release

RMAN> connect target sys/pass1@ORCL

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-06167: already connected

RMAN> connect auxiliary sys/pass1@ORCL12

connected to auxiliary database: ORCL12 (not mounted)

RMAN>run {

set command id to 'rman_restore_ORCL to ORCL12';

set until scn 21128449072;

allocate auxiliary channel 'dev_0' type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';

allocate auxiliary channel 'dev_1' type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';

allocate auxiliary channel 'dev_2' type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';

allocate auxiliary channel 'dev_3' type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';

DUPLICATE TARGET DATABASE TO ORCL12 NOFILENAMECHECK

DB_FILE_NAME_CONVERT=(

'/oracle/DB/oradata/DB','/oracle/ORCL12/oradata/ORCL12'

)

  LOGFILE

  GROUP 1 ('/oracle/ORCL12/redo01/ORCL12_redo01a.rdo','/oracle/ORCL12/redo02/ORCL12_redo01b.rdo') SIZE 500M,

  GROUP 2 ('/oracle/ORCL12/redo01/ORCL12_redo02a.rdo','/oracle/ORCL12/redo02/ORCL12_redo02b.rdo') SIZE 500M,

  GROUP 3 ('/oracle/ORCL12/redo01/ORCL12_redo03a.rdo','/oracle/ORCL12/redo02/ORCL12_redo03b.rdo') SIZE 500M;

}

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of allocate command at 04/28/2020 11:34:06

RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog

RMAN> list incarnation of database ORCL;

List of Database Incarnations

DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time

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

30093   30257   ORCL     3255963214       PARENT  21083959908 2020-01-21 19:54:09

30093   30094   ORCL     3255963214       PARENT  21084501894 2020-01-23 12:03:29

30093   89351   ORCL     3255963214       CURRENT 21128765183 2020-04-24 14:09:34

RMAN> exit

Now I'm wondering if such a RESTORE is even possible? ( I think it should be but i'm not sure?!)

It's strange that I have 3 instance of the same database in my rman catalog since it should be just 2 I think. one primary and one standby.

Do you think the latest problem is because of the incoorect number of the same database in my rman catalog?!?!

Or What do you think is the problem here and what do you generally suggest for such a scenario?!

Thanks a lot for all your comments!!

Regards

/Hesipesi

Comments

Xavier Ribas

Hi!

Have you tried creating a new profile directly from "Application properties"?

Captura de Pantalla 2019-11-18 a les 9.33.36.png

Captura de Pantalla 2019-11-18 a les 9.33.58.png

On the other hand, do you see any error/warning in the "Message log" window when you try to execute the deployment profile?

1 - 1

Post Details

Added on Apr 28 2020
9 comments
4,396 views