Create the Control File | Database Journal

Create the Control File

Jun 18, 2004
1 minute read

>>Script Language and Platform: Oracle
This is brief information about control file.
Take the controlfile information from trace file and does changes accordingly.

Author: keepquite@yahoo.com

alter database create standby controlfile as ‘/path’;
alter database backup controlfile to trace;
create controlfile REUSE
set database orders_2
logfile group 1 (d:orawinorawingopalg.log1)
group 2 (d:orawinorawingopalg.log2)
RESETLOGS/NORESETLOGS
Datafile ‘c:windowsgopalgo.data1’ size 2m,
‘d:orawin95databasegopalgo.data2’ size 2m
maxlog files 50
maxlog member
maxlog history
max datafiles
max instances
Archivelog/No Archivelog
character set f7dec;
Note: you must have OSDBA role enabled. The database must not be mounted
by any instance.
INFORMATION IN CONTROL FILE IS 5 STEPS
————————————–
part1 = Contains information about db. Total no.of Datafiles,logfiles,and
threads are enabled and open (If you are not using parallel server, you
will have only 1 thread)
part2 = Redo log threads -> Privately or publicly enabled. Each log group
and the current log group that “LGWR” is writing
part3 = Each log member of each log group, size of each log file, its
fullpath, name, the log sequence number, low and high scn values and the
threads to whcih each logfile belongs.
part4 = Datafile information,suchas online/offline,
readable,writable,whether media recovery required, stop scn.
part5 = Log History information
LOG-HISTORY : The controlfile can be configured to contain loghistroy
records for every redo logfile that is used by the database.
Each record in this table gives information of one redologfile.
Each history record contains *)The thread no *)Log sequence no *)Low scn
& High scn



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.