Oracle怎么增加控制文件副本-創(chuàng)新互聯(lián)

這篇文章主要介紹“Oracle怎么增加控制文件副本”,在日常操作中,相信很多人在Oracle怎么增加控制文件副本問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”O(jiān)racle怎么增加控制文件副本”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

創(chuàng)新互聯(lián)致力于成都網(wǎng)站制作、網(wǎng)站設(shè)計,成都網(wǎng)站設(shè)計,集團(tuán)網(wǎng)站建設(shè)等服務(wù)標(biāo)準(zhǔn)化,推過標(biāo)準(zhǔn)化降低中小企業(yè)的建站的成本,并持續(xù)提升建站的定制化服務(wù)水平進(jìn)行質(zhì)量交付,讓企業(yè)網(wǎng)站從市場競爭中脫穎而出。 選擇創(chuàng)新互聯(lián),就選擇了安全、穩(wěn)定、美觀的網(wǎng)站建設(shè)服務(wù)!

1.文檔目標(biāo)

新建的數(shù)據(jù)庫只有一個控制文件副本,希望增加控制文件副本到不同位置,防止控制文件發(fā)生損壞。

2.修改control_files參數(shù)

# 如果使用了OMF則可以在修改參數(shù)時只指定路徑,無需指定絕對路徑,是否使用OMF即是否設(shè)置了db_create_file_dest 參數(shù)。
SYS@honor1 > show parameter control_files;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_files                        string      +DATADG/honor/controlfile/current.260.984508003
control_management_pack_access       string      DIAGNOSTIC+TUNING
SYS@honor1 > alter system set control_files='+DATADG/honor/controlfile/current.260.984508003','+datadg' scope=spfile sid='*';
System altered.
Elapsed: 00:00:00.01
SYS@honor1 > shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
10:16:35 SYS@honor1 > exit

3.使用RMAN利用現(xiàn)有controlfile創(chuàng)建副本

(1)創(chuàng)建控制文件副本
[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參數(shù)
[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

到此,關(guān)于“Oracle怎么增加控制文件副本”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

本文題目:Oracle怎么增加控制文件副本-創(chuàng)新互聯(lián)
鏈接URL:http://bm7419.com/article36/dpdesg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、面包屑導(dǎo)航外貿(mào)網(wǎng)站建設(shè)、虛擬主機(jī)、電子商務(wù)、移動網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管