You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloud-architecture/oracle-apps-erp/19c-upgrade-dbcli/files/best-practices-upgrading-to-19c-using-dbcli-in-oci.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Introduction
2
2
3
-
The best practices in this document provides recommendations for successfully migrating a 12c database running on a compute VM to a VM DB system (DBCS) in Oracle Cloud Infrastructure (OCI) while simultaneously upgrading the database to the 19c version using the dbcli utility. This document covers planning, preparation, provisioning, data migration, and the upgrade process. It offers insights into optimizing the migration and upgrade journey, ensuring compatibility, minimizing downtime and achieving a seamless transition to the new environment.
3
+
The best practices in this document provide recommendations for successfully migrating a 12c database running on a compute VM to a VM DB system (DBCS) in Oracle Cloud Infrastructure (OCI) while simultaneously upgrading the database to the 19c version using the dbcli utility. This document covers planning, preparation, provisioning, data migration, and the upgrade process. It offers insights into optimizing the migration and upgrade journey, ensuring compatibility, minimizing downtime, and achieving a seamless transition to the new environment.
4
4
5
5
Owner: Bhaskar Ivaturi
6
6
7
7
## Assessment and Planning:
8
8
9
9
To ensure a smooth migration from Oracle 12c to 19c, it is important to plan the migration timeline while considering any downtime limitations and potential impact on users or applications. The following alternative approaches can be considered based on the size of the source database:
10
10
11
-
For a source database of approximately 1-2 TB, an export/import method can be employed to migrate and upgrade the database to Oracle 19c. This approach eliminates the need for converting Non-CDB to CDB database and later upgrading the database using DBCLI. To execute this method, it is recommended to refer MOS note 2554156.1, which provides a step-by-step guide for migrating the database to 19c in OCI.
11
+
For a source database of approximately 1-2 TB, an export/import method can be employed to migrate and upgrade the database to Oracle 19c. This approach eliminates the need for converting Non-CDB to CDB database and later upgrades the database using DBCLI. To execute this method, it is recommended to refer MOS note 2554156.1, which provides a step-by-step guide for migrating the database to 19c in OCI.
12
12
13
-
However, if the source database is larger than 2 TB, a different migration approach of hybrid DR along with dbcli tool to upgrade database should be taken to minimize downtime.
13
+
However, if the source database is larger than 2 TB, a different migration approach of hybrid DR along with dbcli tool to upgrade the database should be taken to minimize downtime.
14
14
15
15
The following high-level steps outline this approach:
16
16
17
17
- Provision a target 12c VM DB system (DBCS) in OCI.
18
18
- Drop the pluggable database and shut down the CDB database.
19
-
- Configure a standby database for the source database on the newly provisioned 12c VM DB system, utilizing the same ORACLE_HOME binaries and ASM filesystem for the datafiles.
19
+
- Configure a standby database for the source database on the newly provisioned 12c VM DB system, utilizing the same ORACLE_HOME binaries and ASM filesystem for the data files.
20
20
- Install the 19c Oracle Binaries on the 12c VM DB system using dbcli.
21
21
- Start Managed Recovery Process (MRP) till cutover.
22
22
- During the cutover
@@ -26,15 +26,15 @@ The following high-level steps outline this approach:
26
26
- Execute the necessary post-PDB steps on the DB Node.
27
27
- Configure the application to connect with the 19c database using adcfgclone.pl located under $ADMIN_SCRIPTS_HOME.
28
28
29
-
The remaining part of the document outlines best practices for the above highlevel steps.
29
+
The remaining part of the document outlines best practices for the above high-level steps.
30
30
31
31
### Pre-upgrade Tasks:
32
-
By thoroughly reviewing the Oracle Database 19c documentation and release notes, verifying hardware and software requirements and evaluating the impact on existing applications, the organization can save approximately half a day in preparation time.
32
+
By thoroughly reviewing the Oracle Database 19c documentation and release notes, verifying hardware and software requirements, and evaluating the impact on existing applications, the organization can save approximately half a day in preparation time.
33
33
34
34
#### Planning and Testing:
35
35
- Develop a comprehensive upgrade plan with specific milestones and timelines.
36
36
- Create a test environment to simulate the upgrade process and validate its impact on applications.
37
-
- Perform thorough testing of all critical application process and functionality in the test environment.
37
+
- Perform thorough testing of all critical application processes and functionality in the test environment.
38
38
- Define rollback and backup procedures in case any issues arise during the upgrade.
39
39
40
40
@@ -51,12 +51,12 @@ By carefully reviewing and adhering to the information presented in these docume
51
51
52
52
53
53
###### Database:
54
-
1. Analyze the existing database and its components, such as tablespaces, data files and schemas.
54
+
1. Analyze the existing database and its components, such as tablespaces, data files, and schemas.
55
55
2. Resolve any outstanding database issues, such as inconsistencies or corruption.
56
56
3. Implement necessary performance tuning and optimizations before the upgrade.
57
57
4. Ensure that the database is adequately backed up and the backups are accessible during the upgrade process.
58
58
59
-
By analyzing the existing database, resolving outstanding issues and implementing performance tuning and optimizations beforehand, the organization can save significant downtime.
59
+
By analyzing the existing database, resolving outstanding issues, and implementing performance tuning and optimizations beforehand, the organization can save significant downtime.
60
60
61
61
### Provisioning
62
62
- Create a Database 12c VM DB system in OCI.
@@ -74,7 +74,7 @@ Connect to the database using SQL*Plus as the sysdba user:
74
74
75
75
### Data migration
76
76
77
-
Configure standby database for source EBS database on the OCI VM DB system. We are using the OCI VM DB system $ORACLE_HOME and ASM (+DATA, +RECO) locations for the physical standby database creation. Creating standby database will save the overall downtime which is required during the cutover by avoiding a database backup and restore, especially if the database size is greater than 2TB.
77
+
Configure standby database for source EBS database on the OCI VM DB system. We are using the OCI VM DB system $ORACLE_HOME and ASM (+DATA, +RECO) locations for the physical standby database creation. Creating a standby database will save the overall downtime which is required during the cutover by avoiding a database backup and restore, especially if the database size is greater than 2TB.
78
78
79
79
80
80
#### Set up a standby database for your source database
@@ -97,7 +97,7 @@ In the pfile, set the "DB_FILE_NAME_CONVERT" parameter to specify the conversion
97
97
DUPLICATE TARGET DATABASE TO <sourceDBname> BACKUP LOCATION <'backup location path'>;
98
98
- Start the managed recovery and make sure the archives are getting shipped and applied to the standby database.
99
99
100
-
During the cutover we will cancel the managed recovery and activate physical standby database.
100
+
During the cutover, we will cancel the managed recovery and activate the physical standby database.
101
101
102
102
######Example:
103
103
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
@@ -122,7 +122,7 @@ SQL patch errors can be ignored at this point.
122
122
Review warnings regarding mismatched database parameters and update any that are critical for your environment. For more information, refer to Document 396009.1, Database Initialization Parameters for Oracle E-Business Suite Release 12.
123
123
124
124
### Upgrade Process
125
-
Before we start the upgrade process ensure that you verify the precheck output file generated during the execution prior to initiating the upgrade process. This can be accomplished by performing a validation using both the hcheck.sql script and the dbcli upgrade-database command with the --precheck flag. Also, make sure that we always update the dbcli tool and use the latest version using cliadm update-dbcli command.
125
+
Before we start the upgrade process ensure that you verify the precheck output file generated during the execution prior to initiating the upgrade process. This can be accomplished by performing validation using both the hcheck.sql script and the dbcli upgrade-database command with the --precheck flag. Also, make sure that we always update the dbcli tool and use the latest version using cliadm update-dbcli command.
126
126
127
127
*The hcheck.sql file can be downloaded from the MOS Note 136697.1*
128
128
@@ -152,11 +152,11 @@ where -i is the 12c DB ID and -dh is the 19c DB home ID value. You can get these
152
152
153
153
### Post-upgrade Tasks
154
154
- Conduct thorough testing of the upgraded database to validate its functionality.
155
-
- Update any necessary configurations, parameters or settings in the upgraded database.
155
+
- Update any necessary configurations, parameters, or settings in the upgraded database.
156
156
- Revalidate the performance of critical application processes and tune the database if required.
157
157
- Communicate the successful completion of the upgrade to relevant stakeholders.
158
158
159
159
### Maintenance and Support
160
160
- Establish a plan for ongoing database maintenance and support activities.
161
-
- Schedule regular backups, patching and performance monitoring for the upgraded database.
161
+
- Schedule regular backups, patching, and performance monitoring for the upgraded database.
162
162
- Stay up to date with Oracle's support and patching releases for Oracle Database 19c.
0 commit comments