Control file contains:
Database name
The data file name and location
redo location and name
The current log sequence number
Checkpoint information
rman backup information
Create a new control file:
CREATE CONTROLFILE SET DATABASE prod LOGFILE GROUP 1 ('/u01/oracle/prod/redo01_01.log', '/u01/oracle/prod/redo01_02.log'), GROUP 2 ('/u01/oracle/prod/redo02_01.log', '/u01/oracle/prod/redo02_02.log'), GROUP 3 ('/u01/oracle/prod/redo03_01.log', '/u01/oracle/prod/redo03_02.log') RESETLOGS DATAFILE '/u01/oracle/prod/system01.dbf' SIZE 3M, '/u01/oracle/prod/rbs01.dbs' SIZE 5M, '/u01/oracle/prod/users01.dbs' SIZE 5M, '/u01/oracle/prod/temp01.dbs'SIZE 5M MAXLOGHISTORY 400 MAXLOGMEMBERS 3 MAXLOGFILES 50 MAXDATAFILES 200 MAXINSTANCES. 6 ARCHIVELOG;
backup control file :
ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/backup/control.bkp' ;
control data dictionary file related to the view
View | Description |
---|---|
|
Displays database information from the control file |
|
Lists the names of control files |
|
Displays information about control file record sections |
|
Displays the names of control files as specified in the |