一,環境
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>