Oracle 18C 升级到19C
一:版本检查
二:准备19C 安装包
三:创建目录
四:安装Oracle 软件
五:升级前检查
六:升级
七:验证
八:问题
环境说明:
OS:Red Hat Enterprise Linux Server release 7.5 (Maipo)
DB:Oracle 18.3.0.0.0 升级到 Oracle 19.3.0.0.0
一:版本检测
Oracle 19c - Complete Checklist for Manual Upgrades to Non-CDB Oracle Database 19c (Doc ID 2539778.1)
二 : 准备 1 9 C 安装包
--- LINUX.X64_1 93 000_db_home.zip
[root@cjcos package]# pwd
/package
[root@cjcos Oracle_1903_for_Linux]# ll -rth
total 2 . 9 G
-rw-r--r-- 1 oracle oinstall 2 . 9 G Jan 19 10:55 LINUX.X64_1 9 0000_db_home.zip
三 :创建目录
[root@cjcos yum.repos.d]# mkdir -p /u01/app/oracle 1 9
[root@cjcos yum.repos.d]# chown -R oracle:oinstall /u01/app/oracle 1 9
[root@cjcos yum.repos.d]# chmod -R 775 /u01/app
[root@cjcos yum.repos.d]# su - oracle
[oracle@cjcos ~]$ mkdir -p /u01/app/oracle 1 9 /product/1 9 .0.0/dbhome_1
[oracle@cjcos ~]$ cd /u01/app/oracle 1 9 /product/1 9 .0.0/dbhome_1
四:安装Oracle 软件
[oracle@cjcos dbhome_1]$ pwd
/u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1
[oracle@cjcos dbhome_1]$ unzip -q /package/LINUX.X64_1 9 0000_db_home.zip
[root@cjcos ~]# xhost +
access control disabled, clients can connect from any host
[oracle@cjcos dbhome_1]$ cd /package/database/
[oracle@cjcos database]$ ./runInstaller
[root@cjcos ~]# /u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1/root.sh
五:升级前检查
[oracle@cjcos ~]$ /u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1/rdbms/admin/preupgrade.jar
六:升级
[oracle@cjcos ~]$ cd /u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1/bin/
[oracle@cjcos bin]$ ./dbua
SQL> conn / as sysdba
SQL> EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
SQL> EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
SQL> alter session set container=cjcpdb01;
SQL> EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
SQL> EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
七:验证
设置环境变量
[oracle@cjcos ~]$ vi .bash_profile
export PATH
#export ORACLE_BASE=/u01/app/oracle
#export ORACLE_BASE=/u01/app/oracle12
# export ORACLE_BASE=/u01/app/oracle18
export ORACLE_BASE=/u01/app/oracle1 9
#export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
#export ORACLE_HOME=$ORACLE_BASE/product/12.0.0/dbhome_1
# export ORACLE_HOME=$ORACLE_BASE/product/18.0.0/dbhome_1
export ORACLE_HOME=$ORACLE_BASE/product/1 9 .0.0/dbhome_1
#export ORACLE_SID=cjcdb
export ORACLE_SID=cjcdb01
# export ORACLE_SID=cjcdb02
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oracle@cjcos ~]$ source .bash_profile
监听状态
[oracle@cjcos ~]$ lsnrctl status
[oracle@cjcos admin]$ pwd
/u01/app/oracle1 9 /product/1 9 .0.0/dbhome_1/network/admin
[oracle@cjcos admin]$ vim tnsnames.ora
八:问题
无
欢迎关注我的微信公众号"IT小Chen",共同学习,共同成长!!!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。