Skip to content

Commit 71822ad

Browse files
dohdatabasedbarj
andauthored
Instructions for new lab: Next-Level Platform Migration with Cross-Platform Transportable Tablespaces (#560)
* Initial changes * Acknowledgements * Lab 10 - first edition * Start lab 11 plus lab 10 fixes * Lab 11, final changes * Lab 11 minor text changes * Lab 11 - restart source post-migration * Lab 12 * Small stuff * Lab 12 * Missing ``` * Lab 13 * Labs 3-5 update * Update autoupgrade.md * Labs 3-9 * Lab 15 downgrade * Lab 14 glitches * Changed release dates * Lab 14 - part 1 * Changing contributors * Trim spaces * Page changes * Update awr-compare.md * Update spa.md * Lab 14 * Update encrypted-db-upg-conv.md * Minor corrections * Lab 02 errors * Changes * Error fixing * Get rid of EXPORT and use env script * Lab 7 * More fixes * Missing exit in lab 14 * Image pptx * Fixing underscores * underscores * Small * Lab 8 finalize * Lab 9 * Lab 00 * Dummy change * Test change * Squashed commit of the following: commit 1d6978d Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 12:07:30 2024 -0300 Update migrate-using-ftex.md commit b71c67d Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 11:48:31 2024 -0300 Update upg-cdb-flashback.md commit 12a96a5 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 11:27:52 2024 -0300 Fix some details commit 637d577 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:32:57 2024 -0300 Update spm.md commit a1e191a Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:32:45 2024 -0300 Update spm.md commit 3e3cb76 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:16:14 2024 -0300 Update spm.md commit 8493933 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:54:26 2024 -0300 Update awr-compare.md commit 11c13cd Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:54:23 2024 -0300 Update explore-multitenant.md commit a891039 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:31:52 2024 -0300 Update awr-snapshot.md commit 6e3e57a Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:31:49 2024 -0300 Update explore-multitenant.md commit b4ee666 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:00:26 2024 -0300 Update explore-multitenant.md commit 8828c2b Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:00:23 2024 -0300 Update initialize-environment.md commit 3d94b33 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 08:53:52 2024 -0300 Update initialize-environment.md commit 5047abb Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 08:53:46 2024 -0300 Update introduction.md * Update explore-multitenant.md * Update upg-cdb-flashback.md * More stuff * f * Update initialize-environment.md * Delete ~$images.pptx * Squashed commit of the following: commit 87452a1 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Thu Jun 6 12:13:44 2024 -0300 Update migrate-using-ftex.md commit 2f89859 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Thu Jun 6 09:44:06 2024 -0300 Update upg-cdb-flashback.md commit e3da2b9 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Wed Jun 5 14:37:07 2024 -0300 Update explore-multitenant.md commit cfaa942 Merge: c1b40df f5ca582 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Wed Jun 5 11:40:22 2024 -0300 Merge branch 'main' into hammerdb-changes-doc commit c1b40df Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 16:07:15 2024 -0300 Fix typos commit 1d6978d Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 12:07:30 2024 -0300 Update migrate-using-ftex.md commit b71c67d Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 11:48:31 2024 -0300 Update upg-cdb-flashback.md commit 12a96a5 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 11:27:52 2024 -0300 Fix some details commit 637d577 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:32:57 2024 -0300 Update spm.md commit a1e191a Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:32:45 2024 -0300 Update spm.md commit 3e3cb76 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 10:16:14 2024 -0300 Update spm.md commit 8493933 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:54:26 2024 -0300 Update awr-compare.md commit 11c13cd Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:54:23 2024 -0300 Update explore-multitenant.md commit a891039 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:31:52 2024 -0300 Update awr-snapshot.md commit 6e3e57a Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:31:49 2024 -0300 Update explore-multitenant.md commit b4ee666 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:00:26 2024 -0300 Update explore-multitenant.md commit 8828c2b Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 09:00:23 2024 -0300 Update initialize-environment.md commit 3d94b33 Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 08:53:52 2024 -0300 Update initialize-environment.md commit 5047abb Author: Rodrigo Jorge <rodrigoaraujorge@hotmail.com> Date: Mon Jun 3 08:53:46 2024 -0300 Update introduction.md * Changes from Klaus + Alex * Klaus changes * Image error * Delete ~$images.pptx * New workshops * Mikes changes * Small change * Fix issue with UPGR starting too fast and failing to register at listener * A few more changes * First run * Lab 2 * Lab 3 * Start lab 5 * Next push * Next lab * Labs 4-6 * Lab 8 complete * Final labs - first draft * Test changes * Next round * Lab 10 * More stuff * More stuff * Update post-migration-tasks.md * Grammarly changes * Final test / Daniel * Timing * Typo * Updating contributors * Grammerly changes * Changes from Alex * Updating manifest files --------- Co-authored-by: Rodrigo Jorge <rodrigoaraujorge@hotmail.com>
1 parent 1de2206 commit 71822ad

File tree

24 files changed

+4791
-0
lines changed

24 files changed

+4791
-0
lines changed
Loading
Loading
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
![Overview of the Oracle Homes and databases in the lab](./images/introduction-overview.png " ")
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+
![Overview of the phases in an M5 migration](./images/m5-overview.png " ")
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
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Prepare Setup Daniel Was Here
2+
3+
## Introduction
4+
5+
In this lab, you will download the Oracle Resource Manager (ORM) stack zip file needed to setup the resource needed to run this workshop. This workshop requires a compute instance and a Virtual Cloud Network (VCN).
6+
7+
Estimated Time: 15 minutes
8+
9+
### Objectives
10+
11+
- Download ORM stack
12+
- Configure an existing Virtual Cloud Network (VCN)
13+
14+
### Prerequisites
15+
16+
This lab assumes you have:
17+
18+
- An Oracle Cloud account
19+
20+
## Task 1: Download Oracle Resource Manager (ORM) stack zip file
21+
22+
1. Click on the link below to download the Resource Manager zip file you need to build your environment: [xtts.zip](https://c4u04.objectstorage.us-ashburn-1.oci.customer-oci.com/p/EcTjWk2IuZPZeNnD_fYMcgUhdNDIDA6rt9gaFj_WZMiL7VvxPBNMY60837hu5hga/n/c4u04/b/livelabsfiles/o/data-management-library-files/upgrade-and-patching/xtts.zip)
23+
24+
2. Save in your downloads folder.
25+
26+
We strongly recommend using this stack to create a self-contained/dedicated VCN with your instance(s). Skip to *Step 3* to follow our recommendations. If you would rather use an exiting VCN then proceed to the next step as indicated below to update your existing VCN with the required Egress rules.
27+
28+
## Task 2: Adding security rules to an existing VCN
29+
30+
This workshop requires a certain number of ports to be available, a requirement that can be met by using the default ORM stack execution that creates a dedicated VCN. In order to use an existing VCN the following ports should be added to Egress rules
31+
32+
| Port | Description |
33+
| :--- | :---------------------- |
34+
| 22 | SSH |
35+
| 6080 | Remote Desktop noVNC () |
36+
37+
1. Go to *Networking >> Virtual Cloud Networks*
38+
39+
2. Choose your network
40+
41+
3. Under Resources, select Security Lists
42+
43+
4. Click on Default Security Lists under the Create Security List button
44+
45+
5. Click Add Ingress Rule button
46+
47+
6. Enter the following:
48+
- Source CIDR: 0.0.0.0/0
49+
- Destination Port Range: *Refer to above table*
50+
51+
7. Click the Add Ingress Rules button
52+
53+
## Task 3: Setup compute
54+
55+
Using the details from the two steps above, proceed to the lab *Environment Setup* to setup your workshop environment using Oracle Resource Manager (ORM) and one of the following options:
56+
- Create Stack: *Compute + Networking*
57+
- Create Stack: *Compute only* with an existing VCN where security lists have been updated as per *Step 2* above
58+
59+
You may now *proceed to the next lab*.
60+
61+
## Acknowledgments
62+
* **Author** - Daniel Overby Hansen
63+
* **Contributors** - Klaus Gronau, Rodrigo Jorge, Mike Dietrich
64+
* **Last Updated By/Date** - Daniel Overby Hansen, July 2024
Loading
Loading
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Initialize Environment
2+
3+
## Introduction
4+
5+
In this lab, you will review and start-up all components required to run this workshop successfully.
6+
7+
Estimated Time: 5 Minutes.
8+
9+
### Objectives
10+
11+
In this lab, you will:
12+
13+
* Familiarize yourself with the workshop environment
14+
* Initialize the workshop environment
15+
16+
## Task 1: Familiarize yourself with the workshop environment
17+
18+
1. The easiest way to complete the lab is to copy/paste the lab instructions directly into a terminal. Be sure to execute all commands in a code block. After pasting, you must hit *RETURN*.
19+
20+
2. Before copy/pasting, take notice of the commands that you execute; it is important to understand what the commands will do.
21+
22+
3. You can use any terminal to run the lab. The lab sets the environment when appropriate.
23+
24+
4. In the upper-left corner, click *Activities*.
25+
26+
![Click Activities to start a terminal](./images/initialize-environment-click-activities.png " ")
27+
28+
5. Then click on the *terminal* icon.
29+
30+
![Click the terminal icon to start a new terminal](./images/initialize-environment-click-terminal.jpeg)
31+
32+
6. When the terminal opens, it says *Database ENV is not set*. You can disregard that message. All labs start by setting the appropriate environment.
33+
34+
7. In the terminal, you can zoom in to make the text larger. Press *CTRL* and *+* or select *Zoom In*.
35+
36+
![Zoom in to make the text larger in the terminal](./images/initialize-environment-zoom-in.png)
37+
38+
8. If you need another terminal, either start a brand new one or open a new tab in the existing terminal.
39+
40+
![Open a new tab in the existing terminal](images/initialize-environment-new-tab.png)
41+
42+
## Task 2: Initialize the workshop environment
43+
44+
1. Open a terminal or use an existing one. When you start the lab, the following components should be started.
45+
46+
- Database Listener
47+
- LISTENER
48+
- Database Server Instances
49+
- FTEX
50+
- CDB23
51+
52+
2. Ensure the listener is started.
53+
54+
```
55+
<copy>
56+
ps -ef | grep LISTENER | grep -v grep
57+
</copy>
58+
```
59+
60+
<details>
61+
<summary>*click to see the output*</summary>
62+
``` text
63+
$ ps -ef | grep LISTENER | grep -v grep
64+
oracle 11158 1 0 04:57 ? 00:00:00 /u01/app/oracle/product/23/bin/tnslsnr LISTENER -inherit
65+
```
66+
</details>
67+
68+
3. Ensure that the databases (*FTEX* and *CDB23*) are started.
69+
70+
```
71+
<copy>
72+
ps -ef | grep ora_ | grep pmon | grep -v grep
73+
</copy>
74+
```
75+
76+
* You might see other databases started as well. It doesn't matter.
77+
78+
<details>
79+
<summary>*click to see the output*</summary>
80+
``` text
81+
$ ps -ef | grep ora_ | grep pmon | grep -v grep
82+
oracle 3851 1 0 20:19 ? 00:00:00 ora_pmon_UPGR
83+
oracle 5110 1 0 20:19 ? 00:00:00 ora_pmon_FTEX
84+
oracle 5345 1 0 20:19 ? 00:00:00 ora_pmon_CDB23
85+
```
86+
</details>
87+
88+
You may now *proceed to the next lab*.
89+
90+
## Acknowledgments
91+
92+
* **Author** - Daniel Overby Hansen
93+
* **Contributors** - Rodrigo Jorge, Mike Dietrich, Klaus Gronau, Alex Zaballa
94+
* **Last Updated By/Date** - Daniel Overby Hansen, July 2024

0 commit comments

Comments
 (0)