【操作】升級資料庫軟體到10.2.0.3
今天打算使用RMAN將生產資料庫資料恢復到災備資料庫,然後進行資料分析。(目的是恢復生產資料庫到某一個具體的時間點)
這只是目的,不過在操作過程中發現了一個之前沒有想到的問題(本不應該發生的),兩個Oracle資料庫的小版本不一致,生產資料庫是10.2.0.3,但是災備伺服器上的資料庫版本是10.2.0.1。於是,第一步要做的就是將這個災備資料庫的資料庫軟體升級到10.2.0.3。
藉此機會,記錄一下具體的升級操作步驟:
1.複製10.2.0.3的補丁包到伺服器上
如何獲得10.2.0.3的補丁包請參考《【介質】【安裝】Oracle 9i和10g安裝介質and補丁下載大全》http://space.itpub.net/519536/viewspace-612230
2.VNC登陸到伺服器,如果不知道如何配置VNC,請再參見《【實驗】【VNC】Linux環境VNC服務安裝、配置與使用》http://space.itpub.net/519536/viewspace-607549
3.以root使用者開啟terminal終端
開啟訪問控制
# xhost +
4.su到oracle使用者
為了使用英文介面進行如下設定
$ export LC_ALL=en
5.在補丁安裝目錄下執行如下命令進行Oracle軟體的升級
使用-ignoreSysPreReqs選項避免應為作業系統版本不相容導致啟動升級介面失敗
bomsdb1@testdb /hsw_media/Disk1$ ./runInstaller -ignoreSysPreReqs
6.OK,現在進入到了升級介面,一路點選“Next”就可以看到升級的進度條
7.等待一段時間後,提示需要在root使用者下執行一個指令碼,按照提示說的去做就OK了(注意選擇“y”同意覆蓋原有檔案)
[root@testdb ~]# cd /oracle/app/oracle/product/10.2.0/db_1/
[root@testdb db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
8.回到升級介面視窗,點選“OK”,再點選“Exit”,詢問是否真的退出,點選“Yes”完成Oracle軟體部分的升級
9.驗證升級成功,注意下面已經提示是10.2.0.3.0版本的資料庫了
ora10g@testdb /home/oracle$ sqlplus
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Aug 17 21:06:19 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name:
-- The End --
這只是目的,不過在操作過程中發現了一個之前沒有想到的問題(本不應該發生的),兩個Oracle資料庫的小版本不一致,生產資料庫是10.2.0.3,但是災備伺服器上的資料庫版本是10.2.0.1。於是,第一步要做的就是將這個災備資料庫的資料庫軟體升級到10.2.0.3。
藉此機會,記錄一下具體的升級操作步驟:
1.複製10.2.0.3的補丁包到伺服器上
如何獲得10.2.0.3的補丁包請參考《【介質】【安裝】Oracle 9i和10g安裝介質and補丁下載大全》http://space.itpub.net/519536/viewspace-612230
2.VNC登陸到伺服器,如果不知道如何配置VNC,請再參見《【實驗】【VNC】Linux環境VNC服務安裝、配置與使用》http://space.itpub.net/519536/viewspace-607549
3.以root使用者開啟terminal終端
開啟訪問控制
# xhost +
4.su到oracle使用者
為了使用英文介面進行如下設定
$ export LC_ALL=en
5.在補丁安裝目錄下執行如下命令進行Oracle軟體的升級
使用-ignoreSysPreReqs選項避免應為作業系統版本不相容導致啟動升級介面失敗
bomsdb1@testdb /hsw_media/Disk1$ ./runInstaller -ignoreSysPreReqs
6.OK,現在進入到了升級介面,一路點選“Next”就可以看到升級的進度條
7.等待一段時間後,提示需要在root使用者下執行一個指令碼,按照提示說的去做就OK了(注意選擇“y”同意覆蓋原有檔案)
[root@testdb ~]# cd /oracle/app/oracle/product/10.2.0/db_1/
[root@testdb db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
8.回到升級介面視窗,點選“OK”,再點選“Exit”,詢問是否真的退出,點選“Yes”完成Oracle軟體部分的升級
9.驗證升級成功,注意下面已經提示是10.2.0.3.0版本的資料庫了
ora10g@testdb /home/oracle$ sqlplus
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Aug 17 21:06:19 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name:
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-612530/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- oracle資料庫11.2.0.3升級到11.2.0.4Oracle資料庫
- 資料庫升級之-Dataguard滾動升級資料庫
- Android 資料庫綜述(一) 資料庫片的升級與資料的遷移操作Android資料庫
- 資料庫升級之-資料泵資料庫
- 資料庫升級之-XTTS資料庫TTS
- 資料庫升級和工具資料庫
- android資料庫如何進行版本升級?架構之資料庫框架升級Android資料庫架構框架
- MTK線刷升級操作指引資料
- 13 使用SQL Apply 升級資料庫SQLAPP資料庫
- iOS 資料庫升級資料遷移解決方案iOS資料庫
- 資料庫升級-物理重新整理資料字典資料庫
- 自定義開發資料庫升級程式資料庫
- 從10.2.0.1升級到10.2.0.5操作實驗(下)
- 故障分析 | MySQL 資料庫升級後,資料庫怎麼卡住了MySql資料庫
- 軟體升級配置清單
- phpStudy2018 升級資料庫 MySQL5.7PHP資料庫MySql
- 科藍軟體成為國內首批資料庫服務能力達到穩健級水平的國產資料庫廠商資料庫
- 【資料庫升級】Oracle指令碼升級12c CDB to 19c CDB資料庫Oracle指令碼
- Oracle資料庫升級或資料遷移的方法探討Oracle資料庫
- 【資料庫】mysql5.6升級至5.7(物理方式)資料庫MySql
- iOS CoreData (二) 版本升級和資料庫遷移iOS資料庫
- Android 中的升級資料庫最佳方法實踐Android資料庫
- 成為MySQL DBA 部落格系列-資料庫升級MySql資料庫
- 如何理解騰訊雲資料庫戰略升級?資料庫
- 技術分享 | tidb 2.1升級到4.0操作文件TiDB
- 資料庫操作資料庫
- 資料庫操作·資料庫
- 資料庫中介軟體詳解資料庫
- OpenSSH升級(從OpenSSH_7.4p1升級到OpenSSH_8.4p1) [操作指令碼]指令碼
- 不起介面,用response file的方式升級資料庫資料庫
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- 升級redhat 6.8 預設gdb 7.2到gdb 8.3.1操作指南Redhat
- 【Falsk 使用資料庫】---- 資料庫基本操作資料庫
- CentOS6.9下升級預設的OpenSSH操作記錄(升級到OpenSSH_7.6p1)CentOS
- MySQL 資料庫操作MySql資料庫
- mongodb資料庫操作MongoDB資料庫
- 資料庫基本操作資料庫