Recover A Lost Datafile With No Backup (Doc ID 1060605.6)
Recover A Lost Datafile With No Backup (Doc ID 1060605.6)
***Checked for relevance on 16-Apr-2014***
Problem Description:
====================
You have inadvertantly lost a datafile at the OS level and there are no current
backups.
You are in archivelog mode.
You have ALL Archivelogs available since the datafile was created initially (creation date).
Problem Explanation:
====================
Since there are no backups, the database cannot be opened without this file
unless dropped and the tablespace dropped. If this is an important file and
tablespace, this is not a valid option.
Problem References:
===================
Oracle 7 Backup and Recovery Workshop Student Guide, Failure Scenario 14
Search Words:
=============
ORA-1110, lost datafile, file not found.
Solution Description:
=====================
This files have to be recreated and recovered. Do the following:
1) Go to svrmgrl and connect internal.
2) SVRMGR>shutdown immediate. (If this hangs, issue shutdown abort)
3) SVRMGR>startup mount
4) SVRMGR> select * from v$recover_file;
SAMPLE:
FILE# ONLINE ERROR CHANGE# TIME
---------- ------- ------------------ ---------- --------------------
11 OFFLINE FILE NOT FOUND 0 01/01/88 00:00:00
(Noting the file number that was reported in the error)
5) SVRMGR> select * from v$datafile where FILE#=11;
SAMPLE:
FILE# STATUS ENABLED CHECKPOINT BYTES CREATE_BYT NAME
---------- ------- ---------- ---------- ---------- ---------- --------
11 RECOVER READ WRITE 4.9392E+12 0 10240 /tmp/sample.dbf
(Note the status is RECOVER and the CREATE_BYTE size)
(Note the NAME)
6) Recreate the datafile.
SVRMGR> alter database create datafile '/tmp/sample.dbf'
as '/tmp/sample.dbf' size 10240 reuse.
(Note that the file "created" and the file created "as" are
the same file. The "size" needs to be the same size as it
was when it was created.)
7) Check to see that it was successful.
SVRMGR> select * from v$datafile where FILE#=11;
8) Bring the file online.
SVRMGR> alter database datafile '/tmp/sample.dbf' online;
9) Recover the datafile.
SVRMGR> Recover database;
Note: During recovery, all archived redo logs written to since the original
datafile was created must be applied to the new, empty version of the
lost datafile."
10) Enjoy!!
SVRMGR> alter database open;
Solution Explanation:
=====================
Recreating the file and recovering it rewrites it to the OS and brings it up to
date.
Solution References:
====================
Oracle 7 Backup and Recovery Workshop Student Guide, Failure Scenario 14
ReferencesNOTE:29430.1 - How to Recover a Database Having Added a Datafile Since Last Backup |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1160651/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Recover a Database Having Added a Datafile Since Last Backup (Doc ID 29430.1)DatabaseAST
- Case two -- Recover a datafile in primary site from the backup taken in standby site without using c
- 冷備手工完全恢復(recover database,recover tablespace,recover datafile)Database
- Case One -- Recover a datafile in primary site from the backup taken in standby site using catalog d
- Recover database after disk loss (Doc ID 230829.1)Database
- Backup and Recovery Scenarios (Doc ID 94114.1)iOS
- RMAN Backup Shell Script Example (Doc ID 137181.1)
- 採用job定時執行recover datafile
- backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)RESTASTStruct
- RMAN10g: backup copy of database (Doc ID 266980.1)Database
- recover database using backup controlfileDatabase
- recover database using backup controlfile與 recover database 的區別Database
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- recover database using backup controlfile理解Database
- recover database using backup control fileDatabase
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- Backup And Recovery User's Guide-使用RECOVER命令的自動恢復GUIIDE
- recover database until cancel using backup controlfileDatabase
- Recover database using backup controlfile until cancelDatabase
- Rman Backup Failed With Error Rman-00600 [8201] (Doc ID 412786.1)AIError
- Oracle ocp 1Z0 053 Q402(RECOVER DATAFILE)Oracle
- Oracle OCP 1Z0 053 Q154(Recover Datafile)Oracle
- RMAN-06100: no channel to restore a backup or copy of datafileREST
- RMAN-06023 no backup or copy of datafile 1 found to restoreREST
- WARNING: datafile #1 was not in online backup mode 出現的原因
- recover database using backup controlfile利用archivelog files.DatabaseHive
- Oracle OCP 1Z0-053 Q577(Rman Recover lost control files)Oracle
- The incident LOST_EVENTS occured on the masterIDEAST
- Oracle OCP 1Z0 053 Q505(RMAN DATAFILE BACKUP COPIES)Oracle
- Backup And Recovery User's Guide-介質恢復問題解決-執行RECOVER…TEST語句GUIIDE
- Backup And Recovery User's Guide-使用RECOVER命令的AUTOMATIC選項進行自動恢復GUIIDE
- 修改vip (Doc ID 276434.1)
- 應對 "RMAN-06023: no backup or copy of datafile 1 found to restore"錯誤REST
- HANGFG User Guide (Doc ID 362094.1)GUIIDE
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- rman copy asm datafile(rename asm datafile)ASM
- How to Restore a Lost Voting Disk in 10g [ID 279793.1]REST
- 在alter tablespace_datafile begin backup_offline_oracle block之fileq和ckptq變化OracleBloC