Control File Multipl Axing
Control File Multipl Axing
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