572.What is the proper procedure to recover a lost tempfile?
A. Restore the backup copy of the tempfile from the backup media.
B. Re-create the tempfile with the create tempfile command.
C. Copy an existing tempfile from another database.
D. Re-create the tempfile with the create tablespace command.
E. Re-create the tempfile with the alter tablespace command.
Answer: E
临时数据文件丢失,并不会影响到数据库的正常运行。
可以使用altertablespacetempaddtempfile'/u01/app/oracle/oradata/test0924/temp01.dbf'size10m
这样的语句来重新创建临时数据文件。
在我的11.2.0.3环境里,我删除/u01/app/oracle/oradata/test0924/temp01.dbf,之后重新启动数据库,数据库又自动恢复了temp01.dbf。
本文介绍了当数据库中丢失临时数据文件时的正确恢复步骤。可以通过使用ALTER TABLESPACE命令重新创建临时文件,而不会影响数据库的正常运行。此外,通过实际操作验证,在某些情况下,即使不进行人为干预,数据库也可能自动恢复丢失的临时文件。
5309

被折叠的 条评论
为什么被折叠?



