Oracle scope/sid/deferred/reset 總結說明

來源:互聯網
上載者:User

關於instance 設定參數(scope sid) 

alter system set parameter 時候:

文法為 alter system set parameter=value  scope=(both(default),spfile,memory)<DEFERRED> sid=sid|*(default *) COMMENT<注釋>

【sid】:主要用在 rac 下 這樣可以個rac中任意節點的instance設定參數,預設是*是所有instance

【deferred】表示 修改是 適用於將來的 session,是延遲行為.(重新串連生效)

【reset】取消spfile中設定,有時需要恢複原來的參數預設設定但又忘記了原先的值可以用 reset 重設原先預設值

alter system reset

1.有幾個限制 必須 指定SID

2.順序要求 scope=spfile,sid=

3.scope不可以等於 both,memory當 指定SID 時不允許記憶體中修改

 

SQL> alter system  reset open_cursors scope=spfile sid='*';

系統已更改。

可以看到 要加sid關鍵字, 順序不能 錯 ,如果光指定sid 而沒寫scope=spfile 預設是 scope=both(包含在記憶體中修改)但指定SID 時候不允許在記憶體修改所以=both,=memory都不行報錯(ORA-32009: 無法重設執行個體 * 的記憶體值 (從執行個體 xhtest 中))

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.