分享
 
 
 

oracle 9206升级到10.2.0.2简要步骤

王朝oracle·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

云之彼端

1.安装Oracle 10g r2的软件

2.打oracle 10g最新的补丁,我打的是升级到10.2.0.2的补丁

3.运行Pre-Upgrade Information Tool.它用来分析升级到10g前你要做的一些操作,比如需要增加或减少的参数等.

启动要升级的DB,用SYSDBA运行10g的ORACLE_HOME/rdbms/admin下的utlu102i.sql,查看产生的日志.

SQL> SPOOL info.log

SQL> @utlu102i.sql

SQL> SPOOL OFF

下面是我的info.log.

SQL> @d:\utlu102i.sql;

Oracle Database 10.2 Upgrade Information Utility 01-17-2007 13:22:37

.

**********************************************************************

Database:

**********************************************************************

--> name: ZHANGYE

--> version: 9.2.0.6.0

--> compatible: 9.2.0.0.0

--> blocksize: 8192

.

**********************************************************************

Logfiles: [make adjustments in the current environment]

**********************************************************************

--> The existing log files are adequate. No changes are required.

.

**********************************************************************

Tablespaces: [make adjustments in the current environment]

**********************************************************************

--> SYSTEM tablespace is adequate for the upgrade.

.... minimum required size: 248 MB

--> TEMP tablespace is adequate for the upgrade.

.... minimum required size: 58 MB

.... AUTOEXTEND additional space required: 18 MB

.

**********************************************************************

Update Parameters: [Update Oracle Database 10.2 init.ora or spfile]

**********************************************************************

WARNING: --> "shared_pool_size" needs to be increased to at least 177861837

WARNING: --> "Java_pool_size" needs to be increased to at least 67108864

WARNING: --> "streams_pool_size" is not currently defined and needs a value of

at least 50331648

WARNING: --> "session_max_open_files" needs to be increased to at least 20

.

**********************************************************************

Renamed Parameters: [Update Oracle Database 10.2 init.ora or spfile]

**********************************************************************

-- No renamed parameters found. No changes are required.

.

**********************************************************************

Obsolete/Deprecated Parameters: [Update Oracle Database 10.2 init.ora or spfile]

**********************************************************************

--> "hash_join_enabled"

--> "log_archive_start"

.

**********************************************************************

Components: [The following database components will be upgraded or installed]

**********************************************************************

--> Oracle Catalog Views [upgrade] VALID

--> Oracle Packages and Types [upgrade] VALID

.

**********************************************************************

Miscellaneous Warnings

**********************************************************************

WARNING: --> Deprecated CONNECT role granted to some user/roles.

.... CONNECT role after upgrade has only CREATE SESSION privilege.

WARNING: --> Database contains stale optimizer statistics.

.... Refer to the 10g Upgrade Guide for instrUCtions to update

.... statistics prior to upgrading the database.

.... Component Schemas with stale statistics:

.... SYS

.

**********************************************************************

SYSAUX Tablespace:

[Create tablespace in the Oracle Database 10.2 environment]

**********************************************************************

--> New "SYSAUX" tablespace

.... minimum required size for database upgrade: 500 MB

.

PL/SQL 过程已成功完成。

SQL> spool off;

copy oracle 9i的pfile(D:\oracle\ora92\database\INITzhangye.ORA)到oracle 10g的pfile(D:\oracle10g\database\INITzhangye.ORA).

检查info.log,对oracle 10g的pfile修改.

--oracle 10g修改前的pfile

*.aq_tm_processes=1

*.background_dump_dest='D:\oracle\admin\zhangye\bdump'

*.compatible='9.2.0.0.0'

*.control_files='D:\oracle\oradata\zhangye\control01.ctl','D:\oracle\oradata\zhangye\control02.ctl',

'D:\oracle\oradata\zhangye\control03.ctl'

*.core_dump_dest='D:\oracle\admin\zhangye\cdump'

*.db_block_size=8192

*.db_cache_size=25165824

*.db_domain=''

*.db_file_multiblock_read_count=16

*.db_name='zhangye'

*.fast_start_mttr_target=300

*.hash_join_enabled=TRUE

*.instance_name='zhangye'

*.java_pool_size=0

*.job_queue_processes=10

*.large_pool_size=8388608

*.open_cursors=300

*.pga_aggregate_target=25165824

*.processes=150

*.query_rewrite_enabled='FALSE'

*.remote_login_passWordfile='EXCLUSIVE'

*.shared_pool_size=50331648

*.sort_area_size=524288

*.star_transformation_enabled='FALSE'

*.timed_statistics=TRUE

*.undo_management='AUTO'

*.undo_retention=10800

*.undo_tablespace='UNDOTBS1'

*.user_dump_dest='D:\oracle\admin\zhangye\udump'

*.log_archive_start=true

*.log_archive_format=%s.arc

*.log_archive_dest=D:\oracle\archive --oracle 10g修改后的pfile

*.aq_tm_processes=1

*.background_dump_dest='D:\oracle\admin\zhangye\bdump'

*.compatible='9.2.0.0.0'

*.control_files='D:\oracle\oradata\zhangye\control01.ctl','D:\oracle\oradata\zhangye\control02.ctl',

'D:\oracle\oradata\zhangye\control03.ctl'

*.core_dump_dest='D:\oracle\admin\zhangye\cdump'

*.db_block_size=8192

*.db_cache_size=25165824

*.db_domain=''

*.db_file_multiblock_read_count=16

*.db_name='zhangye'

*.fast_start_mttr_target=300

#*.hash_join_enabled=TRUE

*.instance_name='zhangye'

*.java_pool_size=67108864

*.job_queue_processes=10

*.large_pool_size=8388608

*.open_cursors=300

*.pga_aggregate_target=25165824

*.processes=150

*.query_rewrite_enabled='FALSE'

*.remote_login_passwordfile='EXCLUSIVE'

*.shared_pool_size=177861837

*.sort_area_size=524288

*.star_transformation_enabled='FALSE'

*.timed_statistics=TRUE

*.undo_management='AUTO'

*.undo_retention=10800

*.undo_tablespace='UNDOTBS1'

*.user_dump_dest='D:\oracle\admin\zhangye\udump'

#*.log_archive_start=true

#*.log_archive_format=%s.arc

#*.log_archive_dest=D:\oracle\archive

*.streams_pool_size=50331648

*.session_max_open_files=20

4.运行Oracle Net Configuration Assistant,生成10g的listener.ora

5.rman备份DB.

6.stop所有oracle 9i的服务.

删除oracle 9i的服务.

C:\> ORADIM -DELETE -SID ZHANGYE

新建oracle 10g的服务

C:\> ORADIM -NEW -SID ZHANGYE -MAXUSERS 10 -STARTMODE AUTO -PFILE D:\oracle10g\database\INITzhangye.ORA

7.UPGRADE选项启动DB.

SQL> STARTUP UPGRADE

8.创建SYSAUX表空间

CREATE TABLESPACE sysaux DATAFILE 'D:\oracle\oradata\zhangye\sysaux01.dbf'

SIZE 500M REUSE

EXTENT MANAGEMENT LOCAL

SEGMENT SPACE MANAGEMENT AUTO

ONLINE;

9.运行10g的ORACLE_HOME/rdbms/admin/catupgrd.sql,然后运行utlu102s.sql查看升级结果.

SQL> SPOOL upgrade.log

SQL> @catupgrd.sql

SQL> @utlu102s.sql

SQL> SPOOL OFF

检查upgrade.log,假如有错误,处理错误后再次运行catupgrd.sql.

10.重新启动DB,编译无效对象.

SQL> shutdown immediate

SQL> startup pfile=D:\oracle10g\database\INITzhangye.ORA

SQL> @D:\oracle10g\RDBMS\ADMIN\utlrp.sql

编译后没有无效对象

SQL> SELECT count(*) FROM dba_objects WHERE status='INVALID';

COUNT(*)

----------

0

升级完成.

具体请参考Oracle? Database Upgrade Guide 10g Release 2 (10.2) Part Number B14238-01

Trackback: http://tb.blog.csdn.net/TrackBack.ASPx?PostId=1485747

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有