oracle导入时没有表空间,IMPDP导入没有某个表空间的处理方法__加上参数TRANSFORM就可以了...

TRANSFORM

导入和导出的时候,有些表空间不一样。比如导出的时候该对象是在A表空间,导入到另一个库没有表空间A就会报错。但是使用这个参数就会正常导入,该对象会存储在该用户下的默认表空间中。

常用TRANSFORM=segment_attributes:n

[oracle@db ~]$ impdp -help |grep TRANSFORM -A2

TRANSFORM

Metadata transform to apply to applicable objects.

Valid keywords are: OID, PCTSPACE, SEGMENT_ATTRIBUTES and STORAGE.

TRANSFORM = transform_name:value[:object_type]

transform_name

SEGMENT_ATTRIBUTES

- If the value is specified as y, then segment attributes (physical attributes, storage attributes, tablespaces, and logging) are included, with appropriate DDL. The default is y.

如果将值指定为y,则包含段属性(物理属性,存储属性,表空间和日志记录)以及适当的DDL。 默认值为y。

STORAGE

- If the value is specified as y, then the storage clauses are included, with appropriate DDL. The default is y. This parameter is ignored if SEGMENT_ATTRIBUTES=n.

如果将值指定为y,则包含存储子句,并使用适当的DDL。 默认值为y。 如果SEGMENT_ATTRIBUTES = n,则忽略此参数

OID

- If the value is specified as n, then the assignment of the exported OID during the creation of object tables and types is inhibited. Instead, a new OID is assigned. This can be useful for cloning schemas, but does not affect referenced objects. The default value is y.

如果将值指定为n,则禁止在创建对象表和类型期间分配导出的OID。 而是分配新的OID。 这对于克隆模式很有用,但不会影响引用的对象。 默认值为y。

PCTSPACE

- The value supplied for this transform must be a number greater than zero. It represents the percentage multiplier used to alter extent allocations and the size of data files.

为此转换提供的值必须是大于零的数字。 它表示用于更改范围分配和数据文件大小的百分比乘数。

value

The type of value specified depends on the transform used. Boolean values (y/n) are required for the SEGMENT_ATTRIBUTES, STORAGE, and OID transforms. Integer values are required for the PCTSPACE transform.

指定的值类型取决于使用的转换。 SEGMENT_ATTRIBUTES,STORAGE和OID转换需要布尔值(y / n)。 PCTSPACE转换需要整数值。

object_type

The object_type is optional. If supplied, it designates the object type to which the transform will be applied. If no object type is specified, then the transform applies to all valid object types. The valid object types are TABLE、INDEX、CLUSTER、TABLESPACE...

object_type是可选的。 如果提供,则指定将应用变换的对象类型。 如果未指定任何对象类型,则转换将应用于所有有效对象类型。 有效的对象类型是TABLE,INDEX,CLUSTER,TABLESPACE ......

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值