- 最后登录
- 2015-3-26
- 在线时间
- 148 小时
- 威望
- 84
- 金钱
- 1061
- 注册时间
- 2011-11-26
- 阅读权限
- 50
- 帖子
- 128
- 精华
- 0
- 积分
- 84
- UID
- 96
|
1#
发表于 2013-8-1 13:04:35
|
查看: 15560 |
回复: 10
本帖最后由 ShineCQY 于 2013-8-1 13:06 编辑
环境:源库11.2.0.3 rac 导出表,目标库11.2.0.1单实例
Source:username source_user, default tablespace source_tbs
Target:username target_user, default tablesace target_tbs
由于目标库target_user用户的表空间不足,打算remap_tablespace= source_tbs:new_tbs
impdp Parfile:
DIRECTORY=JESSE_EXPDP
content=all
DUMPFILE=SOURCE_USERTAB20130729_%U.dmp
logfile=impsource_usertab20130801.log
exclude=table:"in('QUERY_201306')"
table_exists_action=replace
#cluster=n
PARALLEL=4
transform=segment_attributes:n
remap_schema=SOURCE_USER:TARGET_USER
remap_tablespace=(SOURCE_TBS:NEW_TBS)
错误现象:刚开是导入时出现如下错误
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 "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_FULL_01": "/******** AS SYSDBA" parfile=impsource_usertab20130801.par
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE:"TARGET_USER"."DW_SALES_TOP" failed to create with error:
ORA-14460: only one COMPRESS or NOCOMPRESS clause may be specified
Failing sql is:
CREATE TABLE "TARGET_USER"."DW_SALES_TOP" ("DATE_ID" NUMBER(8,0), "MUSIC_ID" NUMBER(22,0), "CREATE_TIME" DATE, "ORDER_CNT" NUMBER(22,0), "RANK_ID" NUMBER(3,0), "COP
YRIGHT_ID" VARCHAR2(20 BYTE)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE( BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "TBS
_CD
添加参数transform=segment_attributes:n解决。但是出现了以下问题:
ORA-39171: Job is experiencing a resumable wait.
ORA-01688: unable to extend table TARGET_USER.DW_CUST_TAG_RE07 partition SYS_P268909 by 1024 in tablespace TARGET_TBS –为什么这里是目标用户的默认表空间?
出现了表空间不足的问题。
疑问:为什么remap_schema=SOURCE_USER:TARGET_USER 参数没有生效?
为什么会把数据Import到目标用户的默认表空间?
|
|