|
| 1 | +# Introduction |
| 2 | + |
| 3 | +## About this Workshop |
| 4 | + |
| 5 | +In this lab, you will migrate a non-CDB database on Oracle Database 19c directly into a PDB on Oracle Database 23ai using a combination of transportable tablespaces, full transportable export/import, and RMAN backups. For this purpose, Oracle delivers the M5 script, which automates the steps and makes such migrations easier. You will use the M5 script for the migration. |
| 6 | + |
| 7 | +Typically, the procedure is used for cross-platform migrations from big-endian platforms, like AIX and SPARC/Solaris, to little-endian platforms, like the Exadata Database Machine. It requires that the source and target databases are on Oracle Database 19c (Release Update 18) or later and uses the [Data Pump Bundle Patch](https://support.oracle.com/epmos/faces/DocumentDisplay?id=2819284.1). |
| 8 | + |
| 9 | +For simplicity, this lab teaches you to migrate a database from Linux to Linux, but the script and procedures are identical to those of a cross-platform migration. |
| 10 | + |
| 11 | +Estimated Workshop Time: 1 hour 45 minutes |
| 12 | + |
| 13 | +### Objectives |
| 14 | + |
| 15 | +In this workshop, you will: |
| 16 | + |
| 17 | +* Migrate a non-CDB database directly into a PDB |
| 18 | +* Migrate from Oracle Database 19c to Oracle Database 23ai |
| 19 | +* Use the M5 script |
| 20 | +* Use RMAN incremental backups to minimize downtime |
| 21 | +* Use full transportable export/import |
| 22 | + |
| 23 | +## About the workshop contents |
| 24 | + |
| 25 | +This workshop comes with pre-installed Oracle homes and pre-created databases. |
| 26 | +You can switch between environments using the shortcuts shown in the last column of the diagram below. |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +This lab uses only the *FTEX* and *CDB23* databases. You will create a new PDB, *VIOLET*, in *CDB23*. |
| 31 | + |
| 32 | +The diagram shows the different phases of the migration. |
| 33 | + |
| 34 | + |
| 35 | +* *Configure* - You download and configure the M5 script and create a new empty target database. |
| 36 | +* *Level 0* - You start the initial level 0 backup and restore the data files in the target database. |
| 37 | +* *Level 1* - You do incremental backup and restore. You repeat this process as many times as needed. |
| 38 | +* *Outage* - The maintenance window begins. |
| 39 | +* *Final backup* - You set tablespaces read-only and perform the final incremental backup. In addition, you perform a Data Pump full transportable export. |
| 40 | +* *Final restore* - You restore the final incremental backup. |
| 41 | +* *Import* - You start a full transportable import. |
| 42 | + |
| 43 | +## Migration methods and processes |
| 44 | + |
| 45 | +### TTS |
| 46 | + |
| 47 | +Transportable tablespaces transports data that resides in user-defined tablespaces. Use the transportable tablespaces feature to move a set of tablespaces between databases. |
| 48 | + |
| 49 | +### FTEX |
| 50 | + |
| 51 | +Full transportable export/import combines the ease of use familiar to users of original Export/Import and Data Pump export/import, with the speed of migration possible with transportable tablespaces. |
| 52 | + |
| 53 | +### RMAN |
| 54 | + |
| 55 | +You can use RMAN to transport tablespaces across platforms with different endian formats. An incremental backup copies only those data blocks that have changed since a previous backup. You use incremental backups to minimize downtime while data files are copied to the new database. |
| 56 | + |
| 57 | +### M5 |
| 58 | + |
| 59 | +M5 is an Oracle script that combines different existing methods to migrate a database. The result is a simple, reliable, and fast migration solution with minimal downtime. |
| 60 | + |
| 61 | +M5 procedure supports: |
| 62 | +* Encrypted tablespaces |
| 63 | +* Use of multisection backups (for bigfile tablespaces) |
| 64 | +* Compressed backup sets (requires appropriate license) |
| 65 | +* Better parallelism than previous methods |
| 66 | + |
| 67 | +You may now *proceed to the next lab*. |
| 68 | + |
| 69 | +## Learn More |
| 70 | + |
| 71 | +* [Webinar, Cross Platform Migration – Transportable Tablespaces to the Extreme](https://dohdatabase.com/webinars/) |
| 72 | +* [M5 Cross Endian Platform Migration using Full Transportable Data Pump Export/Import and RMAN Incremental Backups (Doc ID 2999157.1)](https://support.oracle.com/epmos/faces/DocumentDisplay?id=2999157.1) |
| 73 | +* [Blog post series](https://dohdatabase.com/xtts/) |
| 74 | +* [YouTube channel](https://www.youtube.com/@upgradenow/) |
| 75 | + |
| 76 | +## Acknowledgments |
| 77 | +* **Author** - Daniel Overby Hansen |
| 78 | +* **Contributors** - Rodrigo Jorge, Mike Dietrich, Klaus Gronau, Alex Zaballa |
| 79 | +* **Last Updated By/Date** - Daniel Overby Hansen, July 2024 |
0 commit comments