show param..."/>
溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

oracle11g如何修改控制文件路徑

發(fā)布時(shí)間:2021-11-09 11:21:35 來(lái)源:億速云 閱讀:429 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫(kù)

這篇文章主要介紹oracle11g如何修改控制文件路徑,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

1.查看路徑

SQL> show parameter control;
NAME     TYPE
------------------------------------ ----------------------
VALUE
------------------------------
control_file_record_keep_time     integer
7
control_files     string
/home/app/oracle/oradata/orahq
/control01.ctl, /home/app/orac
le/fast_recovery_area/orahq/co
ntrol02.ctl
control_management_pack_access     string
DIAGNOSTIC+TUNING

2.修改參數(shù)文件

SQL> alter system set control_files='/alidata1/oradata/orahq/control01.ctl','/alidata1/oradata/orahq/control02.ctl' scope=spfile;
System altered.

3.重啟數(shù)據(jù)庫(kù)

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2.1379E+10 bytes
Fixed Size    2262656 bytes
Variable Size
 1677724032 bytes
Database Buffers
 1.9663E+10 bytes
Redo Buffers   36073472 bytes
Database mounted.
Database opened.

4.mv

[oracle@oraclerac1 ~]$ mv /home/app/oracle/oradata/orahq/control01.ctl /alidata1/oradata/orahq/control01.ctl
[oracle@oraclerac1 ~]$ mv /home/app/oracle/fast_recovery_area/orahq/control02.ctl /alidata1/oradata/orahq/control02.ctl

5.查看是否修改成功

SQL> show parameter control;
NAME     TYPE
------------------------------------ ----------------------
VALUE
------------------------------
control_file_record_keep_time     integer
7
control_files     string
/alidata1/oradata/orahq/contro
l01.ctl, /alidata1/oradata/ora
hq/control02.ctl
control_management_pack_access     string
DIAGNOSTIC+TUNING

以上是“oracle11g如何修改控制文件路徑”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI