Oracle19c: Upgrade Path
--Long term support, extended support until 2025
--19c = 12.2.0.3
--19.3.0 On primer
Release Upgade Introduction and FAQ
RU ~ PSU
RUR: Season Patch Package: includes Security and rollback patching
Release Update Introduction and FAQ (Doc ID 2285040.1
Oracle Database 19c Proactive Patch Information Doc ID 2521164.1
•RU :季度补丁包 :包含 查询优化器修复 、 功能修复 、 安全修复 、 回退修复
•RUR :季度补丁包的修复
•包含 安全修复 、 回退修复
•在 RU 和 RUR 之间可以来回切换,但是新的 patch 必须是之前 patch 的超集(新的 patch 包含了之前 patch 的所有修复)
•查询优化器修复默认是禁止的,它的一些修复会改变执行计划,必须由客户有选择的启用,参阅 Automatic Fix Control Persistence (FCP) for Database Proactive Bundle Patch Doc ID 2147007.1
升级准备:环境确认,系统备份,升级确认
Clinet,JDBC/JDK compatible confirm。Installation, Certification
19.3.0,19.4.0, 19.5.0 (January 14, 2020), 19.6.0
Traditional Install: ./runInstaller
RPM Install:
#yum install y oracle database preinstall 19c
#yum y localinstall oracle database ee 19c 1.0 1.x86_64.rpm
Patches to apply before upgrading Oracle GI and DB to 19c or downgrading to previous release (Doc ID 2539751.1)
ORAchk 升级准备评估 Doc ID 1457357.1
ORAchk 针对Oracle 产品的健康检查 Doc ID 1268927.2
升级前准备: preupgrade.jar
备份数据库
rman "target / nocatalog"
RUN
{
ALLOCATE CHANNEL
chan_name TYPE DISK;
BACKUP DATABASE FORMAT '
some_backup_directory %U' TAG before_upgrade;
BACKUP CURRENT CONTROLFILE FORMAT '
controlfile location and name ’’;
}
创建有保证的还原点
SQL> CREATE RESTORE POINT before_upgrade GUARANTEE FLASHBACK DATABASE;
Parallel Upgrade Utility 并行升级
catctl.pl: 通过perl 启动,以并行模式对数据库进行升级
dbupgrade: 从12.2 开始提供的shell 命令,代替perl 调用catctl.pl
升级前自动化
并行升级
RMAN 集成
有保证的恢复点
活动和警报日志
AutoUpgrade 自动升级工具
MOS 下载最新版本:AutoUpgrade Tool ( Doc ID 2485457.1)
AutoUpgrade 四种处理模式 autoupgrade.jar
Analyze, fixups, deploy, upgrade
在原有硬件设备升级
$ java -jar autoupgrade.jar config config.cfg mode analyze
$ java -jar autoupgrade.jar config config.cfg mode deploy
迁移到新的硬件设备
$ java -jar autoupgrade.jar config config.cfg mode analyze
$ java -jar autoupgrade.jar config config.cfg mode fixups
$ java -jar autoupgrade.jar config config.cfg mode upgrade
升级模式:Non CDB to Non CDB
升级模式:Non CDB to CDB
•将Non CDB 升级到19c
•启动升级后的数据库,设置为read only 模式
startup mount
alter database open read only;
•生成PDB XML 文件
exec DBMS_PDB.DESCRIBE('PDB1.xml');
•关闭数据库
shutdown immediate;
•确认PDB XML 文件的兼容性
DBMS_PDB.CHECK_PLUG_COMPATIBILITY( pdb_descr_file => 'PDB1.xml',
pdb_name => 'PDB1');
select con_id , name, type, message, status
from PDB_PLUG_IN_VIOLATIONS
where status<>'RESOLVED'
order by name,time
•插入CDB
create pluggable database PDB1 using ('PDB1.xml') nocopy tempfile reuse;
•连接到PDBPDB,将其转换为PDB 类型,然后启动PDB
ALTER SESSION set container=PDB1;
@$ORACLE_HOME/
rdbms / noncdb_to_pdb.sql
Startup
数据迁移| Data Pump
数据迁移| Transportable Tablespaces
TTS | 跨平台迁移, 数据库迁移, 使用增量备份缩短停机窗口
数据迁移| 远程克隆PDB
数据迁移| 重定位PDB
数据迁移| GoldenGate
数据迁移| Transient Logical Standby
Upgrade checking
--upgrade logs
--invalid objects. utlrp.sql
--if all PDB open successfuly
--after 7-10 days, change compatible parameter. (downgrade, flashback)
--why need to change compatiable.
Testing tools of upgrade
--SQL Plan Management
--Database Replay
--SQL Performance Analyzer
--SQL Tuning Advisor
Rollback Strategy
19c升级实验
https://mikedietrichde.com/database-upgrade-hands-on-lab-oracle-18c-and-19c/hol-19c-main-index-page-oracle-database-19c-hands-on-lab/
--End of File--
Comments
Post a Comment