Oracle11.2.0.4升级到12.2.0.1

操作系统版本:

发展壮大离不开广大客户长期以来的信赖与支持,我们将始终秉承“诚信为本、服务至上”的服务理念,坚持“二合一”的优良服务模式,真诚服务每家企业,认真做好每个细节,不断完善自我,成就企业,实现共赢。行业涉及成都塑料袋等,在重庆网站建设公司成都全网营销、WAP手机网站、VI设计、软件开发等项目上具有丰富的设计经验。

[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

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

执行脚本:

[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

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

Oracle 11.2.0.4升级到12.2.0.1

验证:

升级完成后/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


本文名称:Oracle11.2.0.4升级到12.2.0.1
地址分享:http://azwzsj.com/article/pepcdi.html