首先下載Oracle 11.2.0.3 Patchset
創(chuàng)新互聯(lián)專注于鼓樓網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供鼓樓營銷型網(wǎng)站建設(shè),鼓樓網(wǎng)站制作、鼓樓網(wǎng)頁設(shè)計(jì)、鼓樓網(wǎng)站官網(wǎng)定制、微信平臺(tái)小程序開發(fā)服務(wù),打造鼓樓網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供鼓樓網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。http://yunpan.cn/cHgQuIuxUTThS
訪問密碼 043f
將Patchset上傳至服務(wù)器
[oracle@localhost ~]$ ls p10404530_112030_Linux-x86-64_1of7.zip p10404530_112030_Linux-x86-64_2of7.zip解壓安裝包
[oracle@localhost ~]$ unzip p10404530_112030_Linux-x86-64_1of7.zip [oracle@localhost ~]$ unzip p10404530_112030_Linux-x86-64_2of7.zip進(jìn)入安裝目錄
[oracle@localhost ~]$ cd database/ [oracle@localhost database]$ ls doc install readme.html response rpm runInstaller sshsetup stage welcome.html一、安裝11.2.0.3 只安裝軟件軟件
運(yùn)行runInstaller
[oracle@localhost database]$ export ORACLE_HOME="/u01/app/oracle/product/11.2.0.3/db_1" [oracle@localhost database]$ ./runInstaller選擇只安裝軟件選項(xiàng)
選擇新的ORACLE_HOME
二、安裝完畢11.2.0.3后,需要運(yùn)行腳本執(zhí)行升級(jí)前的預(yù)檢查。
[root@localhost ~]# su - oracle [oracle@localhost ~]$ export | grep ORACLE_HOME declare -x ORACLE_HOME="/u01/app/oracle/product/11.2.0.1/db_1"注意,使用舊版本登錄數(shù)據(jù)庫
SQL> SPOOL upgrade_info.log SQL> @/u01/app/oracle/product/11.2.0.3/db_1/rdbms/admin/utlu112i.sql SQL> SPOOL OFF日志如下
Oracle Database 11.2 Pre-Upgrade Information Tool 09-17-2015 22:13:08 Script Version: 11.2.0.3.0 Build: 001 . ********************************************************************** Database: ********************************************************************** --> name: ORCL --> version: 11.2.0.1.0 --> compatible: 11.2.0.0.0 --> blocksize: 8192 --> platform: Linux x86 64-bit --> timezone file: V11 . ********************************************************************** Tablespaces: [make adjustments in the current environment] ********************************************************************** --> SYSTEM tablespace is adequate for the upgrade. .... minimum required size: 681 MB --> SYSAUX tablespace is adequate for the upgrade. .... minimum required size: 468 MB --> UNDOTBS1 tablespace is adequate for the upgrade. .... minimum required size: 400 MB --> TEMP tablespace is adequate for the upgrade. .... minimum required size: 60 MB . ********************************************************************** Flashback: OFF ********************************************************************** ********************************************************************** Update Parameters: [Update Oracle Database 11.2 init.ora or spfile] Note: Pre-upgrade tool was run on a lower version 64-bit database. ********************************************************************** --> If Target Oracle is 32-Bit, refer here for Update Parameters: -- No update parameter changes are required. . --> If Target Oracle is 64-Bit, refer here for Update Parameters: -- No update parameter changes are required. . ********************************************************************** Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile] ********************************************************************** -- No renamed parameters found. No changes are required. . ********************************************************************** Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile] ********************************************************************** -- No obsolete parameters found. No changes are required . ********************************************************************** Components: [The following database components will be upgraded or installed] ********************************************************************** --> Oracle Catalog Views [upgrade] VALID --> Oracle Packages and Types [upgrade] VALID --> JServer JAVA Virtual Machine [upgrade] VALID --> Oracle XDK for Java [upgrade] VALID --> Oracle Workspace Manager [upgrade] VALID --> OLAP Analytic Workspace [upgrade] VALID --> OLAP Catalog [upgrade] VALID --> EM Repository [upgrade] VALID --> Oracle Text [upgrade] VALID --> Oracle XML Database [upgrade] VALID --> Oracle Java Packages [upgrade] VALID --> Oracle interMedia [upgrade] VALID --> Spatial [upgrade] VALID --> Expression Filter [upgrade] VALID --> Rule Manager [upgrade] VALID --> Oracle Application Express [upgrade] VALID ... APEX will only be upgraded if the version of APEX in ... the target Oracle home is higher than the current one. --> Oracle OLAP API [upgrade] VALID . ********************************************************************** Miscellaneous Warnings ********************************************************************** WARNING: --> Database is using a timezone file older than version 14. .... After the release migration, it is recommended that DBMS_DST package .... be used to upgrade the 11.2.0.1.0 database timezone version .... to the latest version which comes with the new release. WARNING: --> Your recycle bin is turned on and currently contains no objects. .... Because it is REQUIRED that the recycle bin be empty prior to upgrading .... and your recycle bin is turned on, you may need to execute the command: PURGE DBA_RECYCLEBIN .... prior to executing your upgrade to confirm the recycle bin is empty. WARNING: --> Database contains schemas with objects dependent on DBMS_LDAP package. .... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs. .... USER APEX_030200 has dependent objects. . ********************************************************************** Recommendations ********************************************************************** Oracle recommends gathering dictionary statistics prior to upgrading the database. To gather dictionary statistics execute the following command while connected as SYSDBA: EXECUTE dbms_stats.gather_dictionary_stats; ********************************************************************** Oracle recommends reviewing any defined events prior to upgrading. To view existing non-default events execute the following commands while connected AS SYSDBA: Events: SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2 WHERE UPPER(name) ='EVENT' AND isdefault='FALSE' Trace Events: SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2 WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE' Changes will need to be made in the init.ora or spfile. **********************************************************************按照日志要求,執(zhí)行數(shù)據(jù)庫字典統(tǒng)計(jì)
EXECUTE dbms_stats.gather_dictionary_stats;SQL> SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2 WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'; no rows selectedSQL> SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2 WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'; no rows selected三、配置新版的LISTENER
[oracle@localhost bin]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/db_1 [oracle@localhost bin]$ export TNS_ADMIN="/u01/app/oracle/product/11.2.0.3/db_1/network/admin" [oracle@localhost ~]$ cd /u01/app/oracle/product/11.2.0.3/db_1/bin/ [oracle@localhost bin]$ ./netmgr [oracle@localhost bin]$ cd /u01/app/oracle/product/11.2.0.3/db_1/network/admin [oracle@localhost admin]$ cat listener.ora # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0.3/db_1/network/admin/listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/db_1) (SID_NAME = orcl) ) ) LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.199.240)(PORT = 1521)) ) ADR_BASE_LISTENER = /u01/app/oracle關(guān)閉舊listener
[oracle@localhost ~]$ lsnrctl stop LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-SEP-2015 22:54:22 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.199.240)(PORT=1521))) The command completed successfully啟動(dòng)新listener
[oracle@localhost admin]$ cd /u01/app/oracle/product/11.2.0.3/db_1/bin/ [oracle@localhost bin]$ ./lsnrctl start LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 17-SEP-2015 22:52:47 Copyright (c) 1991, 2011, Oracle. All rights reserved. Starting /u01/app/oracle/product/11.2.0.3/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.3.0 - Production System parameter file is /u01/app/oracle/product/11.2.0.3/db_1/network/admin/listener.ora Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.199.240)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.199.240)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production Start Date 17-SEP-2015 22:52:47 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0.3/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.199.240)(PORT=1521))) Services Summary... Service "orcl" has 1 instance(s). Instance "orcl", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully四、執(zhí)行dbua
[oracle@localhost bin]$ pwd /u01/app/oracle/product/11.2.0.3/db_1/bin [oracle@localhost bin]$ ./dbua點(diǎn)擊Next
點(diǎn)擊Next
點(diǎn)擊Yes
你可以選擇進(jìn)行Timezone更新,也可以選擇備份數(shù)據(jù)庫。點(diǎn)擊Next
點(diǎn)擊Next
點(diǎn)擊Next
點(diǎn)擊Finish
點(diǎn)擊OK
檢查升級(jí)結(jié)果,如果沒有錯(cuò)誤,升級(jí)完成。
修改ORACLE_HOME環(huán)境變量,指向新的Oracle home
[oracle@localhost ~]$ vi .bash_profile export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3/db_1修改/etc/oratab
[oracle@localhost ~]$ vi /etc/oratab orcl:/u01/app/oracle/product/11.2.0.3/db_1:N另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。