expdp导出数据时报错ORA-01157和ORA-01110

由于导出的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/​​

尚美源码坑位教程提供精美的网站源码教程,小程序、公众号、H5、APP、游戏、直播、支付、区块链、商城、影音、小说等源码信息大全。
尚美源码教程库 » expdp导出数据时报错ORA-01157和ORA-01110
赞助VIP 享更多特权,立即登录下载海量资源
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡