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/​​

提供全面的网站源码正版坑位,小程序、APP、H5、支付、游戏、区块链、商城、直播、影音、小说、公众号等源码学习交流。
精品源码资源网 » expdp导出数据时报错ORA-01157和ORA-01110
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡