由于导出的oracle数据库是临时通过备份恢复出来的,临时表空间的文件没有被恢复,所以报此错误。

执行alter tablespace temp add tempfile '/path/temp.dbf' size 200m autoextend on;在默认表空间temp增加文件后,expdp但是仍然报错临时空间文件问题。

执行select file_name from dba_temp_files查询临时表空间有哪些文件,也报OAR-01157。

最后通过select file#,name,status from v$tempfile;查询临时表空间文件及状态

alter database tempfile file# drop 删除不存在的临时表空间文件

再执行expdp却又报出ORA-25153临时表空间为空的错误,那就说明还有其它临时表空间,而temp不是其默认临时表空间

执行select * from dba_tablespaces where contents='TEMPORARY';确认以上问题

于量再执行alter tablespace pdbtemp add tempfile '/path/pdbtemp.dbf' size 200m autoextend on;在pdbtemp临时表空间添加文件。最后才顺利完成数据导出任务。

参考:​​https://www.cnblogs.com/jionjionyou/p/5603493.html​

​http://blog.itpub.net/90618/viewspace-1983190/​

生产环境导数的全流程参考

​https://www.cnblogs.com/hmwh/p/8675375.html​