Oracle 10g upgrade from 10.2.0.1 to 10.2.0.4

php中文网
发布: 2016-06-07 17:01:17
原创
1253人浏览过

新安装了一台数据库服务器,版本是10.2.0.1的,因为现在最新的是10.2.0.4的。 版本低了,bug多。所以就对数据库做了一个升级。服

新安装了一台数据库服务器,版本是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. 关闭数据库, 做个冷备份,防止安装失败。

Q.AI视频生成工具
Q.AI视频生成工具

支持一分钟生成专业级短视频,多种生成方式,AI视频脚本,在线云编辑,画面自由替换,热门配音媲美真人音色,更多强大功能尽在QAI

Q.AI视频生成工具 220
查看详情 Q.AI视频生成工具

3. 安装patchset 软件, 这里要注意,Oracle_HOME 要和以前的一样。

4. 执行脚本 或者用 DBUA 工具

5. 检查确认升级是否成功。

 

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.

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

C:\> lsnrctl start

C:\> sqlplus /NOLOG

SQL> CONNECT SYS AS SYSDBA

Enter password:SYS_password

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

C:\> sqlplus /NOLOG

SQL> CONNECT SYS AS SYSDBA

Enter password: SYS_password

SQL> STARTUP NOMOUNT

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

SQL> SHUTDOWN

SQL> STARTUP UPGRADE

SQL> SPOOL patch.log

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

SQL> SPOOL OFF

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

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

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

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

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.

C:\> rman catalog username/password@alias 

RMAN> UPGRADE CATALOG; 

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

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

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

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

 

linux

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号