Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
16 views

Control File Multipl Axing

The document describes two methods for adding additional control files to an Oracle database: 1) Shut down the database, copy the control file to new locations, update the CONTROL_FILES parameter in the initialization parameter file, and restart the database. 2) For databases using a server parameter file (SPFILE), alter the SPFILE while the database is open to add the new control file location, shut down the database, copy the control file, and restart the database.

Uploaded by

shaan_ocp
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Control File Multipl Axing

The document describes two methods for adding additional control files to an Oracle database: 1) Shut down the database, copy the control file to new locations, update the CONTROL_FILES parameter in the initialization parameter file, and restart the database. 2) For databases using a server parameter file (SPFILE), alter the SPFILE while the database is open to add the new control file location, shut down the database, copy the control file, and restart the database.

Uploaded by

shaan_ocp
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Adding additional control file:

Shut down the database. SQL> SHUTDOWN NORMAL Copy the control file to more locations by using an operating system command: $ cp /u02/oradata/ord/control01.ctl /u05/oradata/ord/ control04.ctl Change the initialization parameter file to include the new control file name(s) in the parameter CONTROL_FILES changing this: CONTROL_FILES='/u02/oradata/ord/control01.ctl', \ '/u03/oradata/ord/control02.ctl', \ '/u04/oradata/ord/control03.ctl' to this: CONTROL_FILES='/u02/oradata/ord/control01.ctl', \ '/u03/oradata/ord/control02.ctl', \ '/u04/oradata/ord/control03.ctl', \ '/u05/oradata/ord/control04.ctl' Start up the instance. SQL> STARTUP

The above steps are to be followed to add, rename, or delete control files. shut down the database use the operating system copy command (copy, rename, or delete the file) modify the init.ora parameter file and start up the database. Multiplexing Control Files Using an SPFILE Multiplexing using a binary SPFILE is similar to multiplexing using init.ora. The major difference is in how the CONTROL_FILES parameter is changed. Follow these steps:

Alter the SPFILE while the database is still open: SQL> ALTER SYSTEM SET CONTROL_FILES = /ora01/oradata/MYDB/ctrlMYDB01.ctl, /ora02/oradata/MYDB/ctrlMYDB02.ctl, /ora03/oradata/MYDB/ctrlMYDB03.ctl, /ora04/oradata/MYDB/ctrlMYDB04.ctl SCOPE=SPFILE; This parameter change takes effect only after the next instance restart by using the SCOPE=SPFILE qualifier. The contents of the binary SPFILE are changed immediately, but the old specification of CONTROL_FILES is used until the instance is restarted. Shut down the database: SQL> SHUTDOWN NORMAL Copy an existing control file to the new location: $ cp /ora01/oradata/MYDB/ctrlMYDB01. ctl/ora04/oradata/MYDB/ctrlMYDB04.ctl Start the instance: SQL> STARTUP

You might also like