2024年1月31日发(作者:)
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:2003oracleproduct10.2.0db_1binemctl stop dbconsole
3、执行:D:>F:2003oracleproduct10.2.0db_1binisqlplusctl 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、报错:正在被使用……
9、排查错误
第一种情况:
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 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 and click on Search
c) Go through the list and close the listed applications
第二种情况:" 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: is in use. Cause 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. Open the following link in your Internet browser:
/hi-in/sysinternals/bb896642(en-us).aspx#top
2. Download and install the FileMon for Windows tool.
3. Run the program.
4. In the Filemon pop-up window, "Filemon Filter", in the "Include" Section, add the value ""Click
Apply and click Ok .
5. Monitor the Filemon window for the process.
6. Search for the file under the column "Path".
7. 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).
8. Try applying the 10.2.0.X patch again to see if the install goes well.
10、杀死,以终止其对的占用
11、排除错误后,“重试”继续安装……
12、安装结束
13、结束确认
14、恢复服务进程
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_
SQL> @?
SQL> SPOOL OFF
2、进行数据库字典信息升级(Upgrading a Release 10.2 Database)
启动监听器:
lsnrctl start
sqlplus /NOLOG
SQL> CONNECT / AS SYSDBA
SQL> STARTUP UPGRADE
SQL> SPOOL
SQL> @{ORACLE_BASE}{ORACLE_HOME}
SQL> SPOOL OFF
这一过程持续很长时间,大约需要15-30分钟不等!!!!!!
结束后,检查 文件,如果有问题(什么问题,具体我也不知道!),重新运行。
3、重启动数据库
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
4、运行脚本重新编译无效PL/SQL包
SQL> @ORACLE_BASEORACLE_
5、运行命令检查所有组件是否升级成功
SQL> SELECT COMP_NAME, VERSION, STATUS FROM _REGISTRY;
如果,所有输出为 VALID,表示升级成功。
6、对catalog进行升级
前提是,如果使用Oracle Recovery Manager catalog,则如下:
D:> rman catalog {username}/{password}@{alias}
RMAN> UPGRADE CATALOG;


发布评论