- 論壇徽章:
- 0
|
關(guān)于alter system set和alter system reset的語法請參考oracle sql reference
在rac數(shù)據(jù)庫中, 所有實例的初試化參數(shù)可以放在一個spfile中, 而rac數(shù)據(jù)庫的各個不同實例的部分參數(shù), 如instance_id等, 必須不同, oracle的解決辦法就是在每個參數(shù)前增加sid(因為每個instance的sid是不一樣的), 如orcl1.instnace_id=1就表示oracl1實例的instance_id初試化參數(shù)值為1, 而對于所有的實例取值一樣的參數(shù). 則使用'*' 作為sid添加到初試化參數(shù)前, 如 *.db_name=orcl就表示所有instnace的db_name初試化參數(shù)為orcl. 在單實例數(shù)據(jù)庫中, oracle也延用了這種作法. 不過默認情況下使用'*'作為sid加在初試化參數(shù)前. 運行create pfile from spfile, 則可以從生成的pfile中看到每個初試化參數(shù)前都有'*'.
alter system reset后必須跟sid=的設(shè)定, 這是oracle的語法規(guī)定的.
在Thomas Kyte的新書<<Expert Oracle Database Architecture: 9i and 10g Programming Techniques and Solutions>>和eygle的新書 <<Oracle數(shù)據(jù)庫DBA專題技術(shù)精>>中都有大段的關(guān)于spfile的內(nèi)容.
[ 本帖最后由 blue_stone 于 2006-9-22 23:06 編輯 ] |
|