不同操作系统的数据库导出导入
rt。我从window的oracle上做全库导出,然后导入到linux RHEL的oracle中,oracle的版本相同。导出时没有报错,在导入的时候发现了如下的错误信息。请教各位大侠了
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=IN_DUMP dumpfile=FULL.DMP full=y logfile=impdp_201212051515.log
Processing object type DATABASE_EXPORT/TABLESPACE
ORA-31684: Object type TABLESPACE:"SYSAUX" already exists
ORA-31684: Object type TABLESPACE:"UNDOTBS1" already exists
ORA-31684: Object type TABLESPACE:"TEMP" already exists
ORA-31684: Object type TABLESPACE:"USERS" already exists
ORA-39083: Object type TABLESPACE failed to create with error:
ORA-19502: write error on file "C:\ORADATA\XXXX_TEST_01.DBF", block number 49664 (block size=8192)
ORA-27072: File I/O error
Linux-x86_64 Error: 25: Inappropriate ioctl for device
Additional information: 4
Additional information: 49664
Additional information: 237568
Failing sql is:
CREATE TABLESPACE "XXXX_TEST" DATAFILE 'C:\ORADATA\XXXX_TEST_01.DBF' SIZE 1073741824 LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE DE
------解决方案--------------------1)impdp system/manager
@tns串
看一下:cat $ORACLE_HOME/network/admin/tnsnames.ora
2)少了schemas=
remap_schema=
把这两个参数不全了
3)要学会使用帮助 impdp help=y
------解决方案--------------------另外,跨平台,注意字符编码
------解决方案--------------------在linux上的oracle里面县创建好XXXX_TEST的tablespace之后再导。如果有其他windows的oracle里面自建的tablespace,也预先创建好再导。