您好,登录后才能下订单哦!
操作系统版本:
[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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。