oracle-10.2.0.1升级10.2.0.4报错解决办法_第1页
oracle-10.2.0.1升级10.2.0.4报错解决办法_第2页
oracle-10.2.0.1升级10.2.0.4报错解决办法_第3页
oracle-10.2.0.1升级10.2.0.4报错解决办法_第4页
oracle-10.2.0.1升级10.2.0.4报错解决办法_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

oracle 10.2.0.1 升级到 10.2.0.4 Oracle 10g R2 安装配置 Oracle 10.2.0.4 Patch Set for Windows 32BIT 升级步骤 升级测试环境: 服务器:P4 3.0 1G RAM 操作系统:Windows 2003 Server EE SP2 32BIT 数据库:Oracle 10.2.0.1 升级补丁包:Oracle 10.2.0.4(Oracle 10g R2 Patch Set3) 数据库存储:NTFS 文件系统 一、Oracle 10.2.0.4 Patch Set for Windows 32BIT 系统环境要求 ? 硬件要求: Intel Pentium or AMD 32 bit 处理器 ? 操作系统要求: o Windows Server 2003 o Windows Server 2003 R2 o Windows 2000 (Service Pack 2 or later) o Windows XP Professional o 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 注意:如果 shutdown 的时候,长时间没有反应,可能是因为部分服务没有关闭。请先关闭服务。如在升 级中遇到 96%处的错误时可能于下列服务有关。关闭下列服务。 SQLemctl stop dbconsole 2 停止所有服务 1. 关闭所有可能访问数据库的工具, 例如 Oracle Enterprise Manager Database Control or iSQL*Plus: 2. C:E:oracleprod t10.2.0db_1binemctl stop dbconsole 3. C:E:oracleprod t10.2.0db_1binisqlplusctl stop 4. C: lsnrctl stop 5. C: sqlplus /NOLOG 6. SQL CONNECT SYS AS SYSDBA 7. Enter password:SYS_Password 8. SQL SHUTDOWN 使用控制面板中的服务关闭 Oracle Database service OracleServiceSID SID is the system identifier of the database. 三、备份系统 备份内容包括: Oracle Inventory, Oracle 10g home 和 Oracle 10g Database. 四、安装升级包软件 1. 以具有操作系统管理员权限的用户登陆系统. 2. 解压升级包,运行 setup.exe,画面如下: 3. 在欢迎画面单击“下一步”. 注意:选择 home1 4. 在指定主目录详细信息画面,选择你想升级的 Oracle home,或者选择 “路径”, 然后单击“下一步” 。 5. “下一步”. 6. 不启用 Oracle Configuration Manager, 单击“下一步” 。 7. 单击“ 安装”. 8. 进行安装,安装完成后如下画面: 9. 在安装结束画面, 单击“ 退出”, 然后确认退出 Oracle Universal Installer,至此,ORACLE 升级包软件 安装结束 五、运行脚本升级数据库(注意:这步很重要,不可以忽视) 如果只安装了升级包,没有进行数据库字典信息升级,启动数据库将报 ORA-01092 ORACLE 例程终止。 强行断开连接。(这和 Oracle9i 有点不同,对 Oracle9i 做了升级后,不升级数据库字典信息,仍然可以 启动数据库使用,但对 exp/imp,RMAN 之类的工具不能使用)。 1 运行数据库预升级检查( Pre-Upgrade Information Tool) Conn / as sysdba STARTUP UPGRADE SPOOL upgrade_info.log ?/rdbms/admin/utl?i.sql(?代表 oracle 的盘符路径) SPOOL OFF 2 进行数据库字典信息升级(Upgrading a Release 10.2 Database) 启动监听器:lsnrctl start sqlplus /NOLOG SQL CONNECT / AS SYSDBA STARTUP UPGRADE SQL SPOOL patch.log (打印日志,方便如果发生错误的时候,查找问题) SQL ORACLE_BASEORACLE_HOMErdbmsadmincatupgrd.sql SQL SPOOL OFF(关闭日志) 检查 patch.log 文件,如果有问题,重新运行 catupgrd.sql。 3 重启动数据库: SQL SHUTDOWN IMMEDIATE SQL STARTUP 4 运行 utlrp.sql 脚本重新编译无效 PL/SQL 包 SQL ORACLE_BASEORACLE_HOMErdbmsadminutlrp.sql 5 运行命令检查所有组件是否升级成功: SQL SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY; 所有输出为 VALID 表示升级成功. 6 如果使用 Oracle Recovery Manager catalog, 需要对 catalog 进行升级,如下: ? C: rman catalog username/passwordalias ? RMAN UPGRADE CATALOG; 六、检查基本的数据库工具可用性 对数据库中的用户进行 EXP 和 IMP 操作,对数据库用 RMAN 进行备份和恢复操作。确认备份恢复没问 题。 * 新安装了一台数据库服务器,版本是 10.2.0.1 的,因为现在最新的是 10.2.0.4 的。 版本低 了,bug 多。所以就对数据库做了一个升级。 服务器是 windows 2003 的系统,都是可视话操作。 下一步的问题。 10.2.0.4 的 patchset 里面也有详细的安装说明。 之做个总结,是因为这次用了 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_BASEORACLE_HOMEbinsrvctl 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_BASEORACLE_HOMErdbmsadmincatupgrd.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_BASEORACLE_HOMErdbmsadminutlrp.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/passwordalias 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_BASEORACLE_HOMEbinsrvctl 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 的一些组件。组件升级之后,该工具会自动编译无效的对象, 这个功能 还是挺方便的。 省得自己手动的去执行编译脚本了。 SQLSELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY; COMP_NAME VERSION STATUS Oracle Database Catalog Views 10.2.0.4.0 VALID Oracle Database Packages and Types 10.2.0.4.0 VALID Oracle Workspace Manager 10.2.0.4.3 VALID JServer JAVA Virtual Machine 10.2.0.4.0 VALID Oracle XDK 10.2.0.4.0 VALID Oracle Database Java Packages 10.2.0.4.0 VALID Oracle Expression Filter 10.2.0.4.0 VALID Oracle Data Mining 10.2.0.4.0 VALID Oracle Text 10.2.0.4.0 VALID Oracle XML Database 10.2.0.4.0 VALID Oracle Rule Manager 10.2.0.4.0 VALID Oracle interMedia 10.2.0.4.0 VALID OLAP Analytic Workspace 10.2.0.4.0 VALID Oracle OLAP API 10.2.0.4.0 VALID OLAP Catalog 10.2.0.4.0 VALID Spatial 10.2.0.4.0 VALID Oracle Enterprise Manager 10.2.0.4.0 VALID * 这两天做数据库的升级,从 10.2.0.1 升级到 10.2.0.4,升级安装很顺利,但安装完成后再 用常用用户连接数据库,出现如下提示错误: ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务。

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论