Recovery of Read-Only Files with a Re-Created Control File
2013-07-08 22:58
337 查看
文档地址:http://docs.oracle.com/cd/B19306_01/backup.102/b14191/recoscen.htm#BRADV227
Recovery of Read-Only Files with a Re-Created ControlFile
If a current or backup control file is unavailable for recovery,then you can execute a
"Create New Control File After Losing All Current and BackupControl Files". Read-only files should not be listed in the
After you create a new control file and attempt to mount andopen the database, the database performs a data dictionary checkagainst the files listed in the control file. For each file that isnot listed in the
where
After the database is open, rename the read-only files to theircorrect filenames by executing the
To prepare for a scenario in which you might have to re-createthe control file, run the following statement when the database ismounted or open to obtain the
This SQL statement produces a trace file that you can edit anduse as a script to re-create the control file. You can specifyeither the
All the restrictions related to read-only files in
from the
Recovery of Read-Only Files with a Re-Created ControlFile
If a current or backup control file is unavailable for recovery,then you can execute a
CREATE
CONTROLFILEstatement as described in
"Create New Control File After Losing All Current and BackupControl Files". Read-only files should not be listed in the
CREATE
CONTROLFILEstatement so thatrecovery can skip these files. No recovery is required forread-only datafiles unless you restored backups of these files froma time when the datafiles were read/write.
After you create a new control file and attempt to mount andopen the database, the database performs a data dictionary checkagainst the files listed in the control file. For each file that isnot listed in the
CREATE
CONTROLFILEstatement but is present in the data dictionary, an entry iscreated for them in the control file. These files are named as
MISSING
nnnnn,
where
nnnnnisa five digit number starting with
0.
After the database is open, rename the read-only files to theircorrect filenames by executing the
ALTER
DATABASE
RENAME
FILEstatement for all the files whose name is prefixed with
MISSING.
To prepare for a scenario in which you might have to re-createthe control file, run the following statement when the database ismounted or open to obtain the
CREATE
CONTROLFILEsyntax:
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
This SQL statement produces a trace file that you can edit anduse as a script to re-create the control file. You can specifyeither the
RESETLOGSor
NORESETLOGS(default) keywords to generate
CREATE
CONTROLFILE
...
RESETLOGSor
CREATE
CONTROLFILE
...
NORESETLOGSversions of the script.
All the restrictions related to read-only files in
CREATE
CONTROLFILEstatements also applyto offline normal tablespaces, except that you need to bring thetablespace online after the database is open. You should leave outtempfiles
from the
CREATE
CONTROLFILEstatement and add them after database open.
相关文章推荐
- The installer cannot read the mwinstall.dll file, This is probably due to a CD reader which can only read files with an eight.th
- Recovery of Read-Only or Slow Media with a Backup Control File
- Database 'xxx' cannot be upgraded because it is read-only or has read-only file Make the database or files writeable, and rerun recovery.
- 加载图片莫名变成黑色 ImageIO: CGImageReadCreateDataWithMappedFile 'open' failed '
- 图片操作异常 ImageIO: CGImageReadCreateDataWithMappedFile 'open' failed
- IOS 图片下载成功,展示却灰灰的问题。ImageIO: CGImageReadCreateDataWithMappedFile 'open' failed
- [BUG修复]<Error>: ImageIO: CGImageReadCreateDataWithMappedFile...error = 2 (No such file or directory)
- How Delete File with Readonly Permission?
- Error:<Error>: ImageIO: CGImageReadCreateDataWithMappedFile...error = 2 (No such file or directory)
- Android错误 transfer error: Read-only file system
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- 错误:chmod: changing permissions of ‘/etc/passwd': Read-only file system
- read excel files with python and xlrd
- adb push出现read-only file system
- Read-only file system
- Uploading Files Using the File Field Control (ASP.NET上传文件)(zz)
- 1209 - The MySQL server is running with the --read-only option so it cannot execute this statement
- Java Read CSV File In Java With OpenCSV library 以及中文件乱码解决, Mapping CSV with Java beans
- Need help with design ReadOnlyListBase (Insert, Update, Delete from ReadOnlyListBase)
- Android 6.0 adb remount后没有写权限,提示Read-only file system