首页 > 数据库 > Oracle > Oracle增加控制文件副本
新建的数据库只有一个控制文件副本,希望增加控制文件副本到不同位置,防止控制文件发生损坏。
(1)创建控制文件副本 [oracle@db-oracle-node1 ~]$ rman target / Recovery Manager: Release 11.2.0.4.0 - Production on Mon Dec 9 10:17:27 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> startup nomount; Oracle instance started Total System Global Area 521936896 bytes Fixed Size 2254824 bytes Variable Size 440403992 bytes Database Buffers 75497472 bytes Redo Buffers 3780608 bytes RMAN> restore controlfile from '+DATADG/honor/controlfile/current.260.984508003'; Starting restore at 09-DEC-19 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=34 instance=honor1 device type=DISK channel ORA_DISK_1: copied control file copy output file name=+DATADG/honor/controlfile/current.260.984508003 output file name=+DATADG/honor/controlfile/current.294.1026555549 Finished restore at 09-DEC-19 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 RMAN> alter database open; database opened RMAN> exit Recovery Manager complete. (2)查看control_files参数 [oracle@db-oracle-node1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 9 10:41:18 2019 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SYS@honor1 > show parameter control_files; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ control_files string +DATADG/honor/controlfile/curr ent.260.984508003, +DATADG/hon or/controlfile/current.294.102 6555549
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31439444/viewspace-2673357/ ,如需转载,请注明出处,否则将追究法律责任。