Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

Name

CREATE CONTROLFILE

Synopsis

CREATE CONTROLFILE [REUSE] [SET] 
        DATABASE database_name
        {LOGFILE {[GROUP integer] filename}...}
        [RESETLOGS | NORESETLOGS]
        [DATAFILE filename]
        [MAXLOGFILES integer]
        [MAXLOGMEMBERS integer]
        [MAXLOGHISTORY integer]
        [MAXDATAFILES integer]
        [MAXINSTANCES integer]
        [ARCHIVELOG | NOARCHIVELOG]
        [CHARACTER SET character_set]

SQL*Plus command. Allows you to re-create the control file. You can create the control file by manually entering the values for the control file or by using the text file created with a previous BACKUP CONTROLFILE TO TRACE command.

For any parameters for which you don’t specify values with the CREATE CONTROLFILE statement, Oracle will use the default values for the parameters.

Keywords

REUSE

Causes the control file named in the CONTROL_FILE initialization parameter to become the new control file. If the control file named in the initialization file exists and the REUSE keyword is not used, an error will be returned.

SET

Indicates that the database_name is the new name for the database.

DATABASE database_name

Specifies the name of the database for the control file.

LOGFILE filename

Specifies the name of the log file to be used for the database. You must list all members of all redo log groups.

GROUP integer

Specifies the number of the log file group.

RESETLOGS | NORESETLOGS

Indicates whether the database should ignore any log files listed for the log file clause. These keywords are used to prevent log file conflicts in the event of an incomplete recovery. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page