1. 程式人生 > >Oracle 10g upgrade from 10.2.0.1 to 10.2.0.4

Oracle 10g upgrade from 10.2.0.1 to 10.2.0.4

   新安裝了一臺資料庫伺服器,版本是10.2.0.1的,因為現在最新的是10.2.0.4的。 版本低了,bug多。所以就對資料庫做了一個升級。

   伺服器是windows 2003的系統,都是可視話操作。 下一步的問題。 10.2.0.4patchset 裡面也有詳細的安裝說明。 之做個總結,是因為這次用了DBUA工具,以前做升級,都是用指令碼來的。 這次常個新鮮。基本步驟還是差不多。

升級步驟如下:

1. metalink上下載10.2.0.4 patchset, 編號是:p6810189

2. 關閉資料庫, 做個冷備份,防止安裝失敗。

3. 安裝patchset 軟體這裡要注意,ORACLE_HOME 

要和以前的一樣。 

4. 執行指令碼 或者用 DBUA 工具

5. 檢查確認升級是否成功。

下面是readme上面的說明:

Upgrading a Release 10.2 Database

After you install the patch set, you must perform the following steps on every database associated with the upgraded Oracle home:

Note:

If you do not run the catupgrd.sql script as described in this section and you start up a database for normal operation, then ORA-01092: ORACLE instance terminated. Disconnection forced errors will occur and the error ORA-39700: database must be opened with UPGRADE option will be in the alert log.

1.Log in with administrator privileges.

2.For Oracle RAC installations, start listener on each node of the cluster as follows:

C:/> ORACLE_BASE/ORACLE_HOME/bin/srvctl start listener -n node

3.If you are using Automatic Storage Management, start the Automatic Storage Management instance.

4. For single-instance installations, start the listener as follows:

C:/> lsnrctl start

5. For single-instance installations, use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:

C:/> sqlplus /NOLOG

SQL> CONNECT SYS AS SYSDBA

Enter password:SYS_password

Users of single-instance installations now proceed to step 7.

6. For Oracle RAC installations:

A. Use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:

C:/> sqlplus /NOLOG

SQL> CONNECT SYS AS SYSDBA

Enter password: SYS_password

SQL> STARTUP NOMOUNT

B. Set the CLUSTER_DATABASE initialization parameter to FALSE:

SQL> ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=spfile; 

C. Shut down the database:

SQL> SHUTDOWN

7. Enter the following SQL*Plus commands:

SQL> STARTUP UPGRADE

SQL> SPOOL patch.log

SQL> @ORACLE_BASE/ORACLE_HOME/rdbms/admin/catupgrd.sql

SQL> SPOOL OFF

8. Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.

This list provides the version and status of each SERVER component in the database.

9. If necessary, rerun the catupgrd.sql script after correcting any problems.

10. Restart the database:

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

11. Run the utlrp.sql script to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.

SQL> @ORACLE_BASE/ORACLE_HOME/rdbms/admin/utlrp.sql

Note:

When the 10.2.0.4 patch set is applied to an Oracle Database 10g Standard Edition database, there may be 54 invalid objects after the utlrp.sql script runs. These objects belong to the unsupported components and do not affect the database operation. 

Ignore any messages indicating that the database contains invalid recycle bin objects similar to the following:

BIN$4lzljWIt9gfgMFeM2hVSoA==$0

12. Run the following command to check the status of all the components after the upgrade:

SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;

In the output of the preceding command, the status of all the components should be VALID for a successful upgrade.

13. If you are using the Oracle Recovery Manager catalog, enter the following command:

C:/> rman catalog username/[email protected] 

RMAN> UPGRADE CATALOG; 

14. For Oracle RAC installations:

A. Set the CLUSTER_DATABASE initialization parameter to TRUE:

 SQL> ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=spfile; 

B. Restart the database:

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

C. Start any database services that you want to use:

C:/> ORACLE_BASE/ORACLE_HOME/bin/srvctl start service -d db_name -s service_name

15. To configure and secure Enterprise Manager follow these steps:

Ensure the database and Listener are operational.

In the case of a single instance, execute

emca -upgrade db

In the case of Oracle Real Application Clusters (RAC), execute

emca -upgrade db -cluster

DBUA 工具提供了一個視覺化的介面,它的作用等同於執行catupgrd.sql等指令碼,dbua工具能升級Oracle 的一些元件。元件升級之後,該工具會自動編譯無效的物件, 這個功能還是挺方便的。 省得自己手動的去執行編譯指令碼了。 

SQL>SELECT COMP_NAME,VERSION, STATUS FROM SYS.DBA_REGISTRY;

COMP_NAMEVERSIONSTATUS

Oracle Database Catalog Views10.2.0.4.0VALID

Oracle Database Packages and Types10.2.0.4.0VALID

Oracle Workspace Manager10.2.0.4.3VALID

JServer JAVA Virtual Machine      10.2.0.4.0VALID

Oracle XDK10.2.0.4.0VALID

Oracle Database Java Packages10.2.0.4.0VALID

Oracle Expression Filter10.2.0.4.0VALID

Oracle Data Mining                 10.2.0.4.0VALID

Oracle Text10.2.0.4.0VALID

Oracle XML Database10.2.0.4.0VALID

Oracle Rule Manager10.2.0.4.0VALID

Oracle interMedia10.2.0.4.0VALID

OLAP Analytic Workspace10.2.0.4.0VALID

Oracle OLAP API                   10.2.0.4.0VALID

OLAP Catalog                      10.2.0.4.0VALID

Spatial10.2.0.4.0VALID

Oracle Enterprise Manager10.2.0.4.0VALID

------------------------------------------------------------------------------
QQ: 492913789
Email: [email protected]
Blog: http://www.cndba.cn/dave
網上資源: http://tianlesoftware.download.csdn.net
相關視訊:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
DBA1 群:62697716(滿); DBA2 群:62697977(滿)
DBA3 群:63306533;     聊天 群:40132017

相關推薦

Oracle 10g upgrade from 10.2.0.1 to 10.2.0.4

   新安裝了一臺資料庫伺服器,版本是10.2.0.1的,因為現在最新的是10.2.0.4的。 版本低了,bug多。所以就對資料庫做了一個升級。    伺服器是windows 2003的系統,

圖形化升級單機oracle 11.2.0.1 到 11.2.0.4

1. 講補丁包上傳到 oracle server ,解壓、安裝 [[email protected] ~]#unzip p13390677_112040_Linux-x86-64_1of7.zip -d /tmp && unzip p1339

java算法面試題:遞歸算法題21個人10,第2個比第1個人大2歲,依次遞推,請用遞歸方式計算出第8個人多大?

else oid 算法題 body println 算法 ring swift java算法 package com.swift; public class Digui_Return { public static void main(String[] arg

zabbix Get value from agent failed: cannot connect to [[10.2.72.132]:10050]: [113] No route to host

http CP 取數 -- OS all alt host zabb 描述:item主動模式可以獲取數據,被動模式不可以。zabbix server無法訪問agent服務器的10050端口 解決:開啟端口即可: redhat 7.x版本 firewall-cmd -

Porting a Driver from UMDF 1 to UMDF 2

This topic describes how to port a User-Mode Driver Framework (UMDF) 1 driver to UMDF 2. You can start with a UMDF 1 driver that uses Sources/Dirs fil

Amabri 2.6.1.5 +HDP-2.6.4.0部署文件

最近兩天公司要求部署Ambari叢集,我在網上找了一些資料,但是踩了許許多多的坑,我決定整理一下寫一篇部落格,與大家共享,如果有問題大家可以一起討論 環境:Amabri 2.6.1.5 +HDP-2.6.4.0、騰訊雲主機、Centos7.4   1、滿足最低系統要求 1.

Raid 0 1 5 10的原理、特點、效能區別

1.1 RAID介紹 RAID是磁碟冗餘陣列(redundant array of independent disks)簡稱磁碟陣列。 RAID是一種把多塊獨立的物理磁碟按不同的raid級別組合起形成一個磁碟組,在邏輯上看是一塊大的磁碟,可以提供比單個物理磁碟更大的儲存容

Atitit order algo 排序演算法 演算法之道 目錄 1.1. 生活中常用的排序是插入排序和選擇排序 2 2. 0.1 演算法分類 2 3. .2 演算法複雜度 3 4. 十大經典排序演算法(動圖

Atitit order algo 排序演算法 演算法之道   目錄 1.1. 生活中常用的排序是插入排序和選擇排序 2 2. 0.1 演算法分類 2 3. .2 演算法複雜度 3 4. 十大經典排序演算法(動圖演示) 2 4 4.1. 0、演算法概述 2 4

oracle 10g 學習之客戶端安裝和配置(2

概述 Oracle 資料庫是一種網路上的資料庫, 它在網路上支援多使用者, 支援伺服器/客戶機等部署(或配置) 伺服器與客戶機是軟體概念, 它們與計算機硬體不存在一一對應的關係. 即: 同一臺計算機既可以充當伺服器又可以充當客戶機, 或者, 一臺計算機只充當伺服器或只充當充當客戶機. Oracle 資料庫

成功解決You are using pip version 10.0.1, however version 18.0 is available. You should consider upgradi

解決問題: You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrad

Ubuntu16.04搭建React Native環境執行Android報錯build-tools/23.0.1/aapt": error=2, 沒有那個檔案或目錄

前言 最近在Ubuntu(V16.04,64位)上折騰了一下React Native,在搭建完環境之後,執行run-android,發現報錯: java.io.IOException: Cannot run program "/home/xxxx/and

Update the Android 1.1 to Android 2.0

Recently I saw Google has released the android 2.0 version,so I want to be with the new technology,so I tried to download the new version,

Mac 升級pip 9.0.110.0.1遇坑記錄

首先你要pip安裝某一個工具的時候遇到下面類似的錯誤 Traceback (most recent call last): File "/Users/finaris/PycharmProjects/test/test/test.py", line 14

環境篇:Kylin3.0.1整合CDH6.2.0

# 環境篇:Kylin3.0.1整合CDH6.2.0 ![](https://img2020.cnblogs.com/blog/1235870/202005/1235870-20200509195838572-60673219.png) > Kylin是什麼? > Apache Kylin™是一個開源的

成功解決You are using pip version 9.0.1, however version 9.0.3 is available. You should consider upgra

available blog nts pytho 命令 完美 ever iss term 解決問題 You are using pip version 9.0.3, however version 10.0.1 is available.You should conside

127.0.0.1、localhost、0.0.0.0的區別

  在開發web應用的測試環境中,如果希望同一個區域網的同事通過內網IP訪問自己的應用,則需要把web服務監聽的ip地址改為0.0.0.0。為什麼用127.0.0.1不行,而用0.0.0.0就可以呢?   flask文件有提到 app.run(host='0.0.0.0')   會讓作業系統監

Failed to process JAR [jar:file:/D:/develop/apache-maven-3.5.4-bin/qiluo_repository/com/qiluo/dingzhi-pojo/0.0.1-SNAPSHOT/dingzhi-pojo-0.0.1-SNAPSHOT.

Failed to process JAR [jar:file:/D:/develop/apache-maven-3.5.4-bin/qiluo_repository/com/qiluo/dingzhi-pojo/0.0.1-SNAPSHOT/dingzhi-pojo-0.0.1-SNAPSHOT.jar!/

2. 3F-1排和2排出現網路環路現象

故障問題: 3F-1排部分PC能ping通百度,但ping公司內網不通,過段時間它自己又好了,部分PC物理連線沒問題,但就是上不了網。 (能ping通閘道器,就是上不了網) 故障判斷: 小米路由器設定為無線中繼模式,dhcp開啟了,導致網路出現環路 解決步驟

Centos6.8 安裝spark-2.3.1 以及 scala-2.12.2

一、Spark概述    Spark 是一個用來實現快速而通用的叢集計算的平臺。     在速度方面,Spark 擴充套件了廣泛使用的 MapReduce 計算模型,而且高效地支援更多計算模式,包括互動式查詢和流處理。 在處理大

Get value from agent failed:cannot connet to [[10.12.36.17]:10050]:[111] Connection refused.解決方法

Connection refused兩種可能性: 第一種:埠不通 解決方法: 如agent端的ip為10.20.30.40,server端的ip為10.10.10.40 登陸agent端,執