操作系统版本:
[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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28536251/viewspace-2144589/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28536251/viewspace-2144589/