温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2021-11-11 09:30:02 来源:亿速云 阅读:122 作者:小新 栏目:关系型数据库

这篇文章主要介绍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如何导入没有某个表空间”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI