ORA-39083:Object type TYPE failed to create with error:OID问题。

昨天使用impdp迁移数据库的时候遇到这个报错:

ORA-39083:Object type TYPE failed to create with error

发现type类型的都没有创建成功。

查询后发现主要原因为OID重复。

可以使用impdp中的transform=oid:n 解决该问题。

对应解释如下:

TRANSFORM
Metadata transform to apply to applicable objects.
Valid transform keywords: SEGMENT_ATTRIBUTES, STORAGE OID, and PCTSPACE.

OID - If the value is specified as n, 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.

transform默认是Y,如果改成N,那么导入的时候会把各个对象重新赋予新的OID。仅为数据库标识,修改不影响业务使用。

由于昨天使用的是impdp network_link不落盘做的迁移。只能重新导出一下对应的type类型,然后重新导入。

涉及语句如下:

expdp 'schema_name/"password"'@10.18.32.122:1521/zactstdb directory=DIR_BACKUP  dumpfile=ts170201_type_20190724.dmp logfile=ts170201_type_20190724.log  include=type,type_spec

impdp schema_name/password@10.18.192.122:1521/dcp  directory=D_OUTPUT  dumpfile=ts170201_type_20190724.dmp   table_exists_action=replace REMAP_SCHEMA=ts170201:ZASERVER REMAP_TABLESPACE=USER:TS_CL transform=oid:n

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值