ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:“OGGTEST“.“TEST1“

问题:ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OGGTEST"."TEST1" creation failed

1、检查是否有主键或者唯一键

SQL> desc test1
 Name                       Null?    Type
 ----------------------------------------- -------- ----------------------------
 ID                       NOT NULL NUMBER(38)
 NAME                                   VARCHAR2(20)
 

2、删除主键约束

SQL> ALTER TABLE TEST1 DROP PRIMARY KEY ;

Table altered.

或者(

SQL> alter table test1 modify id int;

Table altered.

3、确认是否更改完成

SQL> desc test1
 Name                       Null?    Type
 ----------------------------------------- -------- ----------------------------
 ID                                        NUMBER(38)
 NAME                                 VARCHAR2(10)
 

4、重新导入

[oracle@test backup]$ impdp  odc/odc schemas=oggtest directory=DUMP_FILE  dumpfile=test2_1.dmp logfile=test2_1.log   TABLE_EXISTS_ACTION = replace

Import: Release 11.2.0.4.0 - Production on Sun Jan 9 14:16:36 2022

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "ODC"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "ODC"."SYS_IMPORT_SCHEMA_01":  odc/******** schemas=oggtest directory=DUMP_FILE dumpfile=test2_1.dmp logfile=test2_1.log table_exists_action=replace 
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"OGGTEST" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "OGGTEST"."TEST"                            5.460 KB       5 rows
. . imported "OGGTEST"."TEST1"                           5.445 KB       3 rows
. . imported "OGGTEST"."TEST2"                           5.437 KB       2 rows
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "ODC"."SYS_IMPORT_SCHEMA_01" completed with 1 error(s) at Sun Jan 9 14:16:42 2022 elapsed 0 00:00:05
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值