windows 如何安装oracle 补丁包,Windows Server 2003 上安装 Oracle10g(10.2.0.1)并升级 至补丁(10.2.0.4) 图解...

Windows Server 2003 上安装 Oracle10g(10.2.0.1)并升级 至补丁(10.2.0.4) 图解

第一部分:安装 Oracle 10.2.0.1

1、选择安装方法

2、选择安装类型

3、指定安装目录

4、检查先决条件

5、选择配置选项

6、选择数据库配置

7、指定数据库配置选项

8、选择数据库管理选项

9、指定数据库数据存储目录

10、指定备份和恢复选项

11、概要(检查安装配置,是否需要重新设定)

12、安装(等待安装进度…)

13、安装完成,启动 DBCA 创建数据库也完成了

14、数据库内置用户口令管理

15、安装结束提示信息(记住)

16、结束确认

17、打开浏览器登录 EM(Enterprise Manager 10g)

第二部分:安装补丁 Oracle Patch 10.2.0.4

一、Oracle 10.2.0.4 Patch 安装 for Windows 32bit 环境要求

硬件要求: Intel Pentium or AMD 32 bit 处理器

系统要求: Windows Server 2003 Windows Server 2003 R2 Windows 2000 (Service Pack 2 or later) Windows XP Professional Windows Vista with Service Pack 1 or later

数据库版本要求: Oracle Database 10g (10.2.0.1) or later

二、升级安装前的准备工作

1、关闭数据库

SQL> CONNECT SYS AS SYSDBA

Enter password: {sys_password}

已连接。

SQL> SHUTDOWN

2、停止所有服务

1、关闭所有可能访问数据库的工具软件和服务进程,例如:Oracle Enterprise Manager Database Control or iSQL*Plus、PL/SQL 等等。

2、执行:

D:\>F:\2003\oracle\product\10.2.0\db_1\bin\emctl stop dbconsole

3、执行:

D:\>F:\2003\oracle\product\10.2.0\db_1\bin\isqlplusctl stop

4、执行:

D:\> lsnrctl stop

5、关闭:

D:\> sqlplus /NOLOG

SQL> CONNECT SYS AS SYSDBA

Enter password: {sys_password}

已连接。

SQL> SHUTDOWN

6、 “控制面板” “管理工具”? ? “服务” 中关闭服务: Oracle Database service "OracleServiceSID" ("SID" is the system identifier of the database)。其实,最好是关闭所有 oracle 有关的服务进程。

三、备份

备份内容包括: Oracle Inventory Oracle 10g home Oracle 10g Database

四、安装升级补丁

1、停止 Oracle 服务进程,并设置为手动启动

2、运行补丁安装程序,进入欢迎界面

3、指定安装目录(注意:覆盖已装数据库)

4、检查先决条件

5、OCM(即:Oracle Configuration Manager 注册)

6、概要(确认安装设置)

7、进行安装(等待进度……)

8、报错:msvcr71.dll 正在被使用……

9、排查错误

第一种情况:

MSVCR71.DLL is in use during Oracle patch installation. If you are trying to upgrade the Oracle Client and an error message is displayed telling you that msvcr71.dll is in use, try the following: 1) Verify that all Oracle services are stopped. 2) Stop the Distributed Transaction Coordinator – In most cases this will solve the issue. 3) Run Process Explorer a) In the Find menu, click on “Find Handle or DLL” (CTRL F) b) Type msvcr71.dll and click on Search c) Go through the list and close the listed applications

第二种情况:

"Msvcr71.Dll In Use" Error During Upgrade of OWB [ID 602568.1] In this Document-------------------------------------------------Applies to: Oracle Warehouse Builder - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]Information in this document applies to any platform. Symptoms While applying an OWB 10.2.0.x patch for Oracle Warehouse Builder, the following error occurs: msvcr71.dll is in use. Cause msvcr71.dll is a module containing standard C library functions such as printf, memcpy etc. It is a part of the Microsoft C Runtime Library. It might be possible that there are some other process(related to Oracle or not) that are using this file when this file is needed by the OWB Patch for installation.

Solution To identify which process is actually using the file, please do the following: 1. 2. 3. 4. 5. 6. 7. 8. Open the following link in your Internet browser: http://technet.microsoft.com/hi-in/sysinternals/bb896642(en-us).aspx#top Download and install the FileMon for Windows tool. Run the Filemon.exe program. In the Filemon pop-up window, "Filemon Filter", in the "Include" Section, add the value "msvcr71.dll"Click Apply and click Ok . Monitor the Filemon window for the msvcr71.dll process. Search for the msvcr71.dll file under the column "Path". Verify all the processes that are actually using this file and terminate those processes (stop Oracle and Non-Oracle Processes also that are using this file). Try applying the 10.2.0.X patch again to see if the install goes well.

10、杀死 msdtc.exe,以终止其对 msvcr71.dll 的占用

11、排除错误后, “重试”继续安装……

12、安装结束

13、结束确认

14、恢复 msdtc.exe 服务进程

15、恢复 Oralce 服务进程

五、运行补丁升级脚本

如果只安装了升级包,没有进行数据库字典信息升级,启动数据库将报 ORA-01092 ORACLE 例程终止。强 行断开连接。 (这和 Oracle9i 有点不同,对 Oracle9i 做了升级后,不升级数据库字典信息,仍然可以启动数 据库使用,但对 exp/imp,RMAN 之类的工具不能使用) 。

1、运行数据库预升级检查( Pre-Upgrade Information Tool)

SQL> Conn / as sysdba

SQL> STARTUP UPGRADE

SQL> SPOOL upgrade_info.log

SQL> @?\rdbms\admin\utlu102i.sql

SQL> SPOOL OFF

2、进行数据库字典信息升级(Upgrading a Release 10.2 Database)

启动监听器:

lsnrctl start sqlplus /NOLOG

SQL> CONNECT / AS SYSDBA

SQL> STARTUP UPGRADE SQL> SPOOL patch.log

SQL> @{ORACLE_BASE}\{ORACLE_HOME}\rdbms\admin\catupgrd.sql SQL> SPOOL OFF

这一过程持续很长时间,大约需要 15-30 分钟不等!!!!!! 结束后,检查 patch.log 文件,如果有问题(什么问题,具体我也不知道!,重新运行 catupgrd.sql。 )

3、重启动数据库

SQL> SHUTDOWN IMMEDIATE SQL> STARTUP

4、运行 utlrp.sql 脚本重新编译无效 PL/SQL 包

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

5、运行命令检查所有组件是否升级成功

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

如果,所有输出为 VALID,表示升级成功。

6、对 catalog 进行升级 前提是,如果使用 Oracle Recovery Manager catalog,则如下:

D:\> rman catalog {username}/{password}@{alias} RMAN> UPGRADE CATALOG;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值