您好,登錄后才能下訂單哦!
Oracle 18C 升級到19C
一:版本檢查
二:準(zhǔn)備19C 安裝包
三:創(chuàng)建目錄
四:安裝Oracle 軟件
五:升級前檢查
六:升級
七:驗證
八:問題
環(huán)境說明:
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)
二 : 準(zhǔn)備 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
三 :創(chuàng)建目錄
[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;
七:驗證
設(shè)置環(huán)境變量
[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
監(jiān)聽狀態(tài)
[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
八:問題
無
歡迎關(guān)注我的微信公眾號"IT小Chen",共同學(xué)習(xí),共同成長!??!