数据库版本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,所以现将原来的表空间删除,重新新建表空间,增加数据文件