您好,登錄后才能下訂單哦!
操作系統版本:
[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
執行腳本:
[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
驗證:
升級完成后/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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。