startup migrate、startup upgrade区别以及Oracle打补丁集文档

startup migrate

=> Used to upgrade a database till 9i.

See the step 11 from the 9.2 manual upgrade guide :

http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96530/upgrade.htm#1009472

=> Used to downgrade a database till 9i.

See the step 5 from the 9.2 downgrade guide :

http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96530/downgrad.htm#248958

=> Used to downgrade a database since 10g.

See the step 18 from the 10.2 downgrade guide :

http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14238/downgrade.htm#sthref415

startup upgrade

=> Used to upgrade a database since 10g.

See the step 7 from the 10.2 manual upgrade guide :

http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14238/upgrade.htm#CACGGHJC

startup migrate、startup upgrade 区别

you can downgrade db using startup migrate since 10g.

you can upgrade db using startup upgrade since 10g.

you can upgrade/downgrade db using startup migrate till 9i.

在9i,无论升级/降级 数据库都是startup migrate

10g后增加了upgrade参数,升级可直接用startup upgrade,降级仍是startup migrate.

--打完patch(OUI升级,中间需要用root执行一个脚本)后,重建数据字典视图脚本catpatch.sql

为了保证系统的的数据词典的完整性和有效性,最好的打patch后在migrate状态下运行catpatch.sql

sql> shutdown immediate

sql> startup migrate (10g为startup upgrade)

sql> @?/rdbms/admin/catpatch.sql (10g为@?/rdbms/admin/catupgrd.sql )

sql> shutdown immediate

sql> startup

为加快速度,可临时调大这2个参数:

show parameter shared_pool_size

show parameter large_pool_size

重建完数据字典视图后的提示

DOC>#######################################################################

DOC>#######################################################################

DOC>

DOC>   The above PL/SQL lists the SERVER components in the upgraded

DOC>   database, along with their current version and status.

DOC>

DOC>   Please review the status and version columns and look for

DOC>   any errors in the spool log file. If there are errors in the spool

DOC>   file, or any components are not VALID or not the current version,

DOC>   consult the Oracle Database Upgrade Guide for troubleshooting

DOC>   recommendations.

DOC>

DOC>   Next shutdown immediate, restart for normal operation, and then

DOC>   run utlrp.sql to recompile any invalid application objects.

DOC>

DOC>#######################################################################

DOC>#######################################################################

--执行完catpatch.sql,没有错误后,重启数据库,再编译无效对象,脚本utlrp.sql

$ sqlplus '/as sysdba' @?/rdbms/admin/utlrp.sql

utlrp.sql脚本可以在数据库运行的状态下执行以编译、数据库中的invalid对象.

oracle建议在对数据库进行迁移、升级、降级后都运行一遍utlrp.sql以编译无效对象。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值