Upgrade Pluggable Database to Oracle Database 23ai
Here’s a simplified way to upgrade your Oracle Database in OCI to Oracle Database 23c AI using a refreshable clone PDB and AutoUpgrade.
Benefits of This Approach:
- Reduced Downtime: It minimizes downtime compared to an in-place upgrade.
- New Base Database System: You’ll get a new system with an updated OS and Oracle Grid Infrastructure version.
You can use this approach for a Base Database Service, Exadata Database Service, Exadata Cloud@Customer, or any Oracle Database option.
My Environment
- PDB to Upgrade:
SALES
Source:
- Version: 19.23.0
- Name: DBS19
Target:
- Version: 23.4.0
- Name: DBS23
Steps to Upgrade:
1. Prepare AutoUpgrade
- Download the latest version of AutoUpgrade from My Oracle Support.
- Copy it to both source and target systems, optionally placing it in
$ORACLE_HOME/rdbms/admin
. - Create an AutoUpgrade config file (
sales.cfg
), and save it on both servers: - global.autoupg_log_dir=/u01/app/oracle/cfgtoollogs/autoupgrade
- global.keystore=/u01/app/oracle/cfgtoollogs/keystore
- upg1.source_home=/u01/app/oracle/product/19.0.0.0/dbhome_1
- upg1.target_home=/u01/app/oracle/product/23.0.0.0/dbhome_1
- upg1.sid=CDB19
- upg1.pdbs=SALES
- upg1.target_cdb=CDB23
- upg1.source_dblink.SALES=CLONEPDB 600
- upg1.target_pdb_copy_option.SALES=file_name_convert=none
- upg1.target_version=23
- upg1.start_time=12/05/2024 02:00:00
- Important Settings:
global.keystore
allows AutoUpgrade to handle your encrypted PDB.source_home
andtarget_home
point to the Oracle Home for the respective databases.source_dblink.SALES
configures a database link with a 10-minute (600s) refresh interval.target_version
specifies the version since the systems are remote.start_time
defines when downtime starts, initiating the final PDB refresh and upgrade.
- Create a user for the database link:--
- CREATE USER dblinkuser IDENTIFIED BY password;
- GRANT create session, create pluggable database, select_catalog_role TO dblinkuser;
- GRANT read ON sys.enc$ TO dblinkuser;
Comments
Post a Comment