Problem:
ORA-01187: cannot read from file because it failed verification tests
ORA-01110: data file 201: '/u01/oradata/md/temp01.dbf'
Problem reproduction:
[SQL]
- Sys @ DENVER>Alter DatabaseBackup controlfileToTraceAs '/Tmp/t1. SQL';
- Alter DatabaseBackup controlfileToTraceAs '/Tmp/t1. SQL'
- *
- ERRORAtLine 1:
- ORA-01187: cannotRead FromFile because it failed verification tests
- ORA-01110: data file 201:'/U01/oradata/md/temp01.dbf'
Or
[SQL]
- Sys @ DENVER>SelectFile_name, statusFromDba_temp_files;
- SelectFile_name, statusFromDba_temp_files
- *
- ERRORAtLine 1:
- ORA-01187: cannotRead FromFile because it failed verification tests
- ORA-01110: data file 201:'/U01/oradata/md/temp01.dbf'
- Sys @ DENVER>SelectFile #, ts #,Name, StatusFromV $ tempfile;
- FILE # TS #NAMESTATUS
- -------------------------------------------------------------------
- 1 3/u01/oradata/md/temp01.dbf ONLINE
Solution:
1. Remove temporary table
2. Recreate the data file.
[SQL]
- Ys @ DENVER>Alter DatabaseTempfile'/U01/oradata/md/temp01.dbf' Drop;
- DatabaseAltered.
- Sys @ DENVER>SelectFile #, ts #,Name, StatusFromV $ tempfile;
- No RowsSelected
- Sys @ DENVER>AlterTablespaceTemp AddTempfile'/U01/oradata/md/temp01.dbf' Size512 m reuse;
- Tablespace altered.
- Sys @ DENVER>SelectFile_name, statusFromDba_temp_files;
- FILE_NAME STATUS
- -----------------------------------------------
- /U01/oradata/md/temp01.dbf ONLINE