oracle导入数据bug之ORA-39171:作业出现可恢复的等待

数据库版本19c

ORA-39171:作业出现可恢复的等待

bug前

impdp gscloud1912/gscloud1912 schemas=gscloud1912 directory=dpdata1 dumpfile=gscloud_%U.dmp logfile=impdp.log

bug出现

ORA-39171:作业出现可恢复的等待

在这里插入图片描述

问题解决

没有考虑表空间大小
将表空间删除,并且通过增加表空间数据文件的方式扩大表空间

-- 删除表空间
drop tablespace TEST including contents and datafiles CASCADE CONSTRAINTS;
drop user GSCLOUD1912 cascade;
-- 删除用户

重新新建表空间

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test01.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test02.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test03.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test04.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test05.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test06.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test07.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test08.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test09.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test10.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test11.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test12.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test13.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test14.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test15.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test16.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test17.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test18.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

alter tablespace gscloud1912  
add datafile 'D:\gscloud1912\test19.dbf' size 50m 
autoextend on next 50m maxsize 32767m;

新建用户

CREATE USER gscloud1912 
IDENTIFIED BY gscloud1912
DEFAULT TABLESPACE gscloud1912
TEMPORARY TABLESPACE temp;

新赋权

GRANT CONNECT TO gscloud1912;  
GRANT RESOURCE TO gscloud1912;  
GRANT dba TO gscloud1912;

重新导入即可

impdp gscloud1912/gscloud1912 schemas=gscloud1912 directory=dpdata1 dumpfile=gscloud_%U.dmp logfile=impdp.log

原因

真的是建表空间的时候没有想到表空间一个数据文件大小只有32g,也没有想到我们的需要导入的表空间大小是520g,所以现将原来的表空间删除,重新新建表空间,增加数据文件

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

又是重名了

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值