oracle9i全备份——导入oracle11g,blocksize 不一致处理方式

全备份出错的问题——db_block_size不一致
1:oracle 9i 全备份
2:全备份导入oracle 11g
结果导入错误多多
3:查看出错日志
[root@primary peng]# cat mis110216.log|more

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V09.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SYSTEM's objects into SYSTEM
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with ORACLE error 2236:
"CREATE TEMPORARY TABLESPACE "TEMP3" BLOCKSIZE 16384 TEMPFILE EXTENT MANAGEM"
"ENT LOCAL UNIFORM SIZE 1048576"
IMP-00003: ORACLE error 2236 encountered
ORA-02236: invalid file name
IMP-00017: following statement failed with ORACLE error 3221:
"CREATE TEMPORARY TABLESPACE "TEMP101" BLOCKSIZE 16384 TEMPFILE '/oracle/or"
"adata/mis/TEMP101.dbf' SIZE 1073741824 , '/oracle/oradata/mis/temp101_"
"02.dbf' SIZE 4096M , '/oracle/oradata/mis/temp101_3.dbf' SIZE 4096M "
" EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576"


。。。。。。。
4:
第一次导入 system 都不能导入
要重建数据库,发现oracle11g db_block_size=8192,而且不能修改。
用dbca另外创建实例也不行,8192是固定的,只是可以选择字符集。

但是找到一个修改的方法
alter system set db_16k_cache_size=16384 (也就是16M)
然后重启数据库


5:能够导入system ,但是上面的tem3,temp101错误
也是块的问题
根据一些参考资料,由于临时表空间和段都要和数据库初始建库一样的blocksize
这个没有办法修改
所以,只能先手工创建两个临时表空间temp3,temp101,其中temp3是不是用的。

6:在导入成功了。

7:导入命令:
先导入结构对象,不导入数据,这样会快很多
imp system/system@mis file=/peng/mis110216.dmp log=/peng/mis110216.log buffer=6400000

feedback=10000 full=y rows=n ignore=y

在导入数据
imp system/system@mis file=/peng/mis110216.dmp log=/peng/mis110216.log buffer=6400000

feedback=10000 full=y ignore=y

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22934571/viewspace-1046115/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22934571/viewspace-1046115/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值