文档详情

吉林大学大型数据库设计与实现dba-06.ppt

发布:2025-06-12约2.65千字共12页下载文档
文本预览下载声明

MaintainingtheControlFile

ObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:ExplaintheusesofthecontrolfileListthecontentsofthecontrolfileMultiplexandmanagethecontrolfileManagethecontrolfilewithOracleManagedFilesObtaincontrolfileinformation

ControlFileThecontrolfileisabinaryfilethatdefinesthecurrentstateofthephysicaldatabase.LossofthecontrolfilerequiresrecoveryIsreadatMOUNTstageIsrequiredtooperateIslinkedtoasingledatabaseShouldbemultiplexedMaintainsintegrityofdatabaseSizedinitiallybyCREATEDATABASEControlfilesDatabase

ControlFileContentsAcontrolfilecontainsthefollowingentries:DatabasenameandidentifierTimestampofdatabasecreationTablespacenamesNamesandlocationsofdatafilesandredologfilesCurrentredologfilesequencenumberCheckpointinformationBeginandendofundosegmentsRedologarchiveinformationBackupinformation

MultiplexingtheControlFile

UsingSPFILEAltertheSPFILEShutdownnormal:CreateadditionalcontrolfilesStartthedatabase:SQLALTERSYSTEMSETcontrolfiles=$HOME/ORADATA/u01/ctrl01.ctl,$HOME/ORADATA/u02/ctrl02.ctlSCOPE=SPFILE;$cp$HOME/ORADATA/u01/ctrl01.ctl $HOME/ORADATA/u02/ctrl02.ctlSQLstartupSQLstartup

MultiplexingtheControlFile

Usinginit.oraShutdownthedatabaseinanormalstate:Copytheexistingcontrolfiletoanewnameandlocation:Addthenewcontrolfilenametoinit.ora:Startthedatabase:SQLshutdownnormalCONTROL_FILES=(/DISK1/control01.ctl,/DISK3/control02.ctl)$cpcontrol01.ctl.../DISK3/control02.ctlSQLstartup

ManagingControlFileswithOMFControlfilesareOMFcreatediftheCONTROL_FILESparameterisnotspecified.OMFcontrolfilesarelocatedatDB_CREATE_ONLINE_LOG_DEST_N.ControlfilenamesareuniquelygeneratedanddisplayedinthealertSID.logfilewhenthefilesarecreated.

ObtainingContro

显示全部
相似文档