whenever I want to shutdown the database, I get an error saying datafile header is media corrupt:
SQL> shutdown immediate
ORA-01122: database file 13 failed verification check
ORA-01110: data file 13: '/oradata/obvs/entry_data02.dbf'
ORA-01210: data file header is media corrupt
I do not mind losing those files, just need to be able to shut down the database.
I tried reseaching online, but they all say in order for me to fix them I need to shutdown the database.
Best Answer
Since you do not mind losing these files, you can just simply drop the whole tablespace after making the datafile(s) in it offline as below.
Steps to reproduce:
One way to drop:
If you have more files in this tablespace, execute the above
offline drop
for all before dropping the tablespace. You will need to do some manual cleanup in the filesystem because the database is unable to delete such a file, as shown in the alert log:Cleanup:
Shutdown immediate works as expected: