Oracle 11.2.0.3 , EBS R12.1.3 , 使用传输表空间将AIX下的Oracle DB迁移到Linux下 。 导入传输表空间dmp文件时候报错 :
ORA-39123: Data Pump transportable tablespace job aborted
ORA-01240: too many data files to add in one command
具体如下:
$ impdp system/xxxxxx parfile=import.par &
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** parfile=import.par
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39123: Data Pump transportable tablespace job aborted
ORA-01240: too many data files to add in one command
Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 17:25:16
google了一下 , 发现可能是 db_files 参数的问题, 因为这次传输表空间的数据库有 26 T, 数据文件有 4300多个,
查看了目标库的 db_files 参数还是默认的 200 , 问题应该出在这里 。
SQL> show parameter db_files
NAME TYPE VALUE
--------------------------
db_files integer 200
SQL> alter system set db_files=20000 scope=spfile;
重新启动数据库, 在执行导入没有报类似错误。
ORA-39123: Data Pump transportable tablespace job aborted
ORA-01240: too many data files to add in one command
具体如下:
$ impdp system/xxxxxx parfile=import.par &
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** parfile=import.par
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39123: Data Pump transportable tablespace job aborted
ORA-01240: too many data files to add in one command
Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 17:25:16
google了一下 , 发现可能是 db_files 参数的问题, 因为这次传输表空间的数据库有 26 T, 数据文件有 4300多个,
查看了目标库的 db_files 参数还是默认的 200 , 问题应该出在这里 。
SQL> show parameter db_files
NAME TYPE VALUE
--------------------------
db_files integer 200
SQL> alter system set db_files=20000 scope=spfile;
重新启动数据库, 在执行导入没有报类似错误。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-773203/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-773203/
文章详细介绍了如何解决在使用Oracle传输表空间进行数据库迁移时遇到的db_files参数设置不当导致的导入错误问题。通过调整db_files参数至合理数值,成功解决了导入过程中的ORA-39123和ORA-01240错误。

被折叠的 条评论
为什么被折叠?



