Complete the following steps to create a new control file.
1. Make a list of all datafiles and online redo log files of the database.
If you follow recommendations for control file backups as discussed in "Backing Up Control Files" , you will already have a list of datafiles and online redo log files that reflect the current structure of the database. However, if you have no such list, executing the following statements will produce one.
SELECT MEMBER FROM V$LOGFILE;
SELECT NAME FROM V$DATAFILE;
SELECT VALUE FROM V$PARAMETER WHERE NAME = 'CONTROL_FILES';
If you have no such lists and your control file has been damaged so that the database cannot be opened, try to locate all of the datafiles and online redo log files that constitute the database. Any files not specified in Step 5 are not recoverable once a new control file has been created. Moreover, if you omit any of the files that make up the SYSTEM tablespace, you might not be able to recover the database.
2. Shut down the database.
If the database is open, shut down the database normally if possible. Use the IMMEDIATE or ABORT options only as a last resort.
3. Back up all datafiles and online redo log files of the database.
4. Start up a new instance, but do not mount or open the database:
STARTUP NOMOUNT
5. Create a new control file for the database using the CREATE CONTROLFILE statement.
When creating a new control file, select the RESETLOGS option if you have lost any online redo log groups in addition to control files. In this case, you will need to recover from the loss of the redo logs (Step 8). You must also specify the RESETLOGS option if you have renamed the database. Otherwise, select the NORESETLOGS option.
6. Store a backup of the new control file on an offline storage device. See "Backing Up Control Files" for instructions for creating a backup.
7. Edit the CONTROL_FILES initialization parameter for the database to indicate all of the control files now part of your database as created in Step 5 (not including the backup control file). If you are renaming the database, edit the DB_NAME parameter to specify the new name.
8. Recover the database if necessary. If you are not recovering the database, skip to Step 9.
If you are creating the control file as part of recovery, recover the database. If the new control file was created using the NORESETLOGS option (Step 5), you can recover the database with complete, closed database recovery.
If the new control file was created using the RESETLOGS option, you must specify USING BACKUP CONTROL FILE. If you have lost online or archived redo logs or datafiles, use the procedures for recovering those files.
9. Open the database using one of the following methods:
* If you did not perform recovery, or you performed complete, closed database recovery in Step 8, open the database normally.
ALTER DATABASE OPEN;
* If you specified RESETLOGS when creating the control file, use the ALTER DATABASE statement, indicating RESETLOGS.
ALTER DATABASE OPEN RESETLOGS;
The database is now open and available for use.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(48)
-
▼
September
(48)
- How an Oracle Instance Is Started
- Overview of Instance and Database Startup
- How Initialization Parameter Values Are Changed
- Initialization Parameter Files and Server Paramete...
- The Instance and the Database
- Database and Instance Startup and Shutdown
- Managing PFILE and SPFILE
- The Oracle SPFILE
- Oracle Startup and Parameter File
- Oracle's PFILE
- Removing a Password File
- Replacing a Password File
- Expanding the number of password file users if the...
- Viewing Password File Members
- Granting and Revoking SYSDBA and SYSOPER Privilege...
- Creating a Password File and Adding New Users to It
- Setting REMOTE_LOGIN_ PASSWORDFILE
- Setting REMOTE_LOGIN_ PASSWORDFILE
- Using ORAPWD
- Oracle Password File
- Dropping Control Files
- Control File V$ Views
- Recovering a Control File
- Recovering a Control File
- Backing Up Control Files
- Troubleshooting After Creating Control Files
- Steps for Creating New Control Files
- CREATE CONTROLFILE Statement
- When to Create New Control Files
- Creating Additional Copies of Control Files
- Creating Control Files
- Size of Control Files
- Multiplexed control files
- Control Files Init.ora parameter
- Oracle Control file
- Datafile Backups
- Oracle Datafile backup - part1
- v$datafile_header view
- v$datafile view
- Renaming and Relocating Datafiles for Multiple Tab...
- Relocating and Renaming Datafiles in a Single Tabl...
- Renaming and Relocating Datafiles for a Single Tab...
- Determine the Number of Datafiles
- Oracle datafiles
- Oracle Startup - Third Stage - Open Database
- Oracle Startup - Second Stage
- Oracle Startup - First Stage
- Oracle Startup
-
▼
September
(48)
No comments:
Post a Comment