IMPDP如何导入没有某个表空间

58次阅读
没有评论

共计 1985 个字符,预计需要花费 5 分钟才能阅读完成。

这篇文章主要介绍 IMPDP 如何导入没有某个表空间,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

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 ……

以上是“IMPDP 如何导入没有某个表空间”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注丸趣 TV 行业资讯频道!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计1985字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)