Oracle中采用expdp 导出的表空间 删除表空间后采用impdp导入报错 oracle11g 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 谁能给分析一下这公司怎么个情况,百度啦google没找到解决方案 ORA-00959: 表空间 'CWBASE10' 不存在说的很清楚了啊 我刚开始学习这个oracle数据库 是不是 必须创建一个cwbase10的表空间 才能将原先导出的数据导入 我以为导出的表空间就能直接导入数据中 一般导入导出主要是表或者SCHEMA,表空间确实没有尝试过。以下是上次自己做实验的记录,LZ可以参考:使用导入导出工具复制schemaa. 使用导出工具导出某个用户的schema:expdp system/<password> DIRECTORY=datamove DUMPFILE=schema_exp.dmp SCHEMAS=hrb. 创建新的表空间,新用户创建新的表空间:create tablespace test datafile '/u01/app/oracle/oradata/orcl11g/test01.dbf' size 100M autoextend on next 10M;创建用户:create user hr1 identified by hr1 default tablespace test temporary tablespace TEMP;c. 导入到另外一个用户,同一个表空间中(程序会自动将数据导入新用户hr1,但是仍旧是原来的表空间example)impdp system/<system> directory=datamove dumpfile=schema_exp.dmp schemas=hr remap_schema=hr:hr1d. 导入到另外一个用户,另外一个表空间中impdp system/<system> directory=datamove dumpfile=schema_exp.dmp schemas=hr remap_schema=hr:hr1 remap_tablespace=example:teste. 检查:select * from user_segments; remap_tablespace ,这个参数 LZ 研究一下。 逻辑备份的作用范围包括表、索引、视图、序列.......等对象其中expdp/impdp比exp/imp多了用户及其权限,即,用expdp/impdp来导数据的时候,可以不需要先建好用户但是,两者都需要建好对应的表空间。其实很好理解,如果自动创建表空间,那么对应的物理文件要怎么创建?如果要导入到别的表空间中,在impdp中指定remap_tablespace interval 在pl/sql中的一些符号的问题, 请问:关于SQL执行顺序? 求一条SQL 语句 由于感染病毒ORACLE无法监听,系统报错如下: Oracle sql性能优化定理 使用ado编程,遇到几个棘手的问题,向大虾们请教,急急急 抢分呀,字串截取的问题! sql能不能实现这样的连接 请各位高手帮忙 open_cursors数量 跨平台,ORACLE导入导出报错
说的很清楚了啊
使用导入导出工具复制schemaa. 使用导出工具导出某个用户的schema:expdp system/<password> DIRECTORY=datamove DUMPFILE=schema_exp.dmp SCHEMAS=hrb. 创建新的表空间,新用户创建新的表空间:create tablespace test datafile '/u01/app/oracle/oradata/orcl11g/test01.dbf' size 100M autoextend on next 10M;创建用户:create user hr1
identified by hr1
default tablespace test
temporary tablespace TEMP;c. 导入到另外一个用户,同一个表空间中(程序会自动将数据导入新用户hr1,但是仍旧是原来的表空间example)impdp system/<system> directory=datamove dumpfile=schema_exp.dmp schemas=hr remap_schema=hr:hr1d. 导入到另外一个用户,另外一个表空间中impdp system/<system> directory=datamove dumpfile=schema_exp.dmp schemas=hr remap_schema=hr:hr1 remap_tablespace=example:teste. 检查:select * from user_segments;
其中expdp/impdp比exp/imp多了用户及其权限,即,用expdp/impdp来导数据的时候,可以不需要先建好用户
但是,两者都需要建好对应的表空间。其实很好理解,如果自动创建表空间,那么对应的物理文件要怎么创建?
如果要导入到别的表空间中,在impdp中指定remap_tablespace