Oracle 11.2.0.4升級到12.2.0.1

stonebox1122發表於2017-09-06

作業系統版本:

[oracle@D2-LZY245 ~]$ cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

 

資料庫版本:

SQL> select * from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

PL/SQL Release 11.2.0.4.0 - Production

CORE 11.2.0.4.0 Production

TNS for Linux: Version 11.2.0.4.0 - Production

NLSRTL Version 11.2.0.4.0 – Production

 

安裝12cR2:

[oracle@D2-LZY245 ~]$ ll linuxx64_12201_database.zip

-rw-r--r-- 1 oracle oinstall 3453696911 Sep 6 09:10 linuxx64_12201_database.zip

[oracle@D2-LZY245 ~]$ unzip linuxx64_12201_database.zip

[oracle@D2-LZY245 ~]$ export DISPLAY=192.168.17.100:0.0

[oracle@D2-LZY245 ~]$ cd database/

[oracle@D2-LZY245 database]$ ./runInstaller

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

執行指令碼:

[root@D2-LZY245 ~]# /u01/app/oracle/product/12.2.0/dbhome_1/root.sh

 

安裝完成後將11g資料庫資訊寫入/etc/oratab:

[oracle@D2-LZY245 admin]$ tail -1 /etc/oratab

jhsitgg1:/u01/app/oracle/product/11.2.0/dbhome_1:Y

 

在12cR2的主目錄下啟動dbua:

[oracle@D2-LZY245 database]$ cd /u01/app/oracle/product/12.2.0/dbhome_1/bin/

[oracle@D2-LZY245 bin]$ ./dbua

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

clipboard

驗證:

升級完成後/etc/oratab已被修改為12cR2的主目錄:

[oracle@D2-LZY245 bin]$ tail -1 /etc/oratab

orcl:/u01/app/oracle/product/12.2.0/dbhome_1:N

 

手動修改環境變數:

[oracle@D2-LZY245 ~]$ env | grep ORACLE

ORACLE_SID=orcl

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1

 

檢視資料庫版本已經升級:

SQL> select banner from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

PL/SQL Release 12.2.0.1.0 - Production

CORE 12.2.0.1.0 Production

TNS for Linux: Version 12.2.0.1.0 - Production

NLSRTL Version 12.2.0.1.0 - Production

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28536251/viewspace-2144589/,如需轉載,請註明出處,否則將追究法律責任。

相關文章