show parameter db_files NAME TYPE VALUE ..."/>
您好,登錄后才能下訂單哦!
1、環(huán)境描述:
Oracle 10g RAC ,在線修改db_files參數(shù)
2、操作如下
SQL> show parameter db_files
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_files integer 200
SQL> alter system set db_files=1000 scope=spfile sid='*';
System altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 536870912 bytes
Fixed Size 1268508 bytes
Variable Size 150996196 bytes
Database Buffers 381681664 bytes
Redo Buffers 2924544 bytes
ORA-01105: mount is incompatible with mounts by other instances
ORA-01174: DB_FILES is 1000 buts needs to be 200 to be compatible
--報錯,提示數(shù)據(jù)庫Mount與另一個實例mount不一致,修改后的參數(shù)為1000與另一個節(jié)點的參數(shù)200不一致。
3、解決方法
關(guān)閉第二個節(jié)點的實例,這樣就是同時關(guān)閉了兩個節(jié)點的實例,或者說需要關(guān)閉所有節(jié)點的實例。必然影響業(yè)務(wù)了。有的參數(shù)可以在線更改,有的參數(shù)可以滾動修改,這些都不影響業(yè)務(wù)。但是db_files 這個參數(shù)必然影響業(yè)務(wù)了,只能找一個對業(yè)務(wù)影響最小的時間點重啟所有實例即可。
SQL> conn / as sysdba
Connected.
SQL> startup
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 536870912 bytes
Fixed Size 1268508 bytes
Variable Size 150996196 bytes
Database Buffers 381681664 bytes
Redo Buffers 2924544 bytes
Database mounted.
Database opened.
SQL>
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。