Create Controlfile

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

CREATE CONTROLFILE [REUSE] [SET] DATABASE database

LOGFILE [GROUP int] filespec


[RESETLOGS | NORESETLOGS]
DATAFILE filespec options [CHARACTER SET charset]

Options:
MAXDATAFILES int
MAXLOGFILES int
MAXLOGMEMBERS int
MAXLOGHISTORY int
MAXINSTANCES int
ARCHIVELOG | NOARCHIVELOG
FORCE LOGGING

Several LOGFILE and/or DATAFILEs can be specified at once if separated with commas.

Do not include in the DATAFILE clause any datafiles in temporary or read-only


tablespaces. You can add these to the database later.

Use this command to re-create a control file only if:

All copies of your existing control files have been lost through media failure.
You want to change the name of the database.
You want to change the maximum number of redo log file groups, redo log file
members, archived redo log files, datafiles, or instances that can concurrently
have the database mounted and open.

You might also like