一,环境
01,待升级的系统
升级仅支持10.2.0.2版本之后的系统,如果不是,请把10G升级至高版本!
本次实验环境10.2.0.3
02,挂载11G系统
03,升级须知
1) 做好备份
二,DBUA升级
升级步骤:
- 在数据库服务器上关闭10.2.0.3数据库监听与数据库
- 创建oracle 11.2.0.3数据库相关环境变量与目录
- 在数据库服务器上安装oracle11.2.0.3数据库软件
- 在orale11.2.0.3环境变量下执行DBUA升级
- 修改compatible属性
01,在数据库服务器上关闭10.2.0.3数据库监听与数据库
[oracle@dgwxpdb ~]$ lsnrctl stop #--SQL> alter system set compatible='10.2.0.3.0' scope=spfile; # #--System altered. # SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
02,创建oracle 11.2.0.3数据库相关环境变量与目录
[oracle@dgwxpdb ~]$ vim ~/.bash_profile [oracle@dgwxpdb ~]$ source ~/.bash_profile [oracle@dgwxpdb ~]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=ORCL; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH export PATH [oracle@dgwxpdb ~]$ mkdir $ORACLE_HOME -p [oracle@dgwxpdb ~]$ echo $ORACLE_HOME /u01/app/oracle/product/11.2.0/db_1 [oracle@dgwxpdb ~]$
03,在数据库服务器上安装oracle11.2.0.3数据库软件
进入到11G安装包上安装
11G的软件就到这里完成了
04,在orale11.2.0.3环境变量下执行DBUA升级
查看环境是不是正确
执行DBUA
这里是提示看不看升级可行性的报告,如果点NO,会生成上面的html文件,大家第一次升级最好看下,一般警告类的
也可以忽略
备份的话这个怎么说还是做下吧,安全最重要
这里如果大家数据库是归档模式,注意下 Fast Recovery Area Sise的大小,这个2048一定不够。具体多少,我没试过。最好升级前改成非归档模式,反正都停库了,也没事。0.0,
EM根据需要把,我这里不要了
时间好长!!!!!
70了
05,修改compatible属性
[oracle@dgwxpdb ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu Jun 13 17:19:03 2019 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> show parameter compatible; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ compatible string 10.2.0.3.0 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 SQL> show parameter compati NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ compatible string 10.2.0.3.0 plsql_v2_compatibility boolean FALSE SQL> alter system set compatible='10.2.0.4.0' scope=spfile; System altered. SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 2488635392 bytes Fixed Size 2255792 bytes Variable Size 671089744 bytes Database Buffers 1811939328 bytes Redo Buffers 3350528 bytes Database mounted. Database opened. SQL> show parameter compati NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ compatible string 10.2.0.4.0 plsql_v2_compatibility boolean FALSE SQL>