SQLServer支援大記憶體方案

來源:互聯網
上載者:User

轉載自:http://user.qzone.qq.com/33524538?ptlang=2052

 

 

 

SQLServer支援大記憶體方案

 

一、啟動PAE支援;

方法:系統安裝目錄的根目錄下有個系統隱藏檔案:boot.int,加入/PAE參數

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /noexecute=optout /fastdetect /PAE

 

修改好後,儲存,重啟系統

二、啟用“鎖定記憶體中的頁”選項
  1. 在“開始”菜單上,單擊“運行”。在“開啟”框中,鍵入 gpedit.msc。

將開啟“組策略”對話方塊。

  1. 在“組策略”控制台上,展開“電腦配置”,再展開“Windows 設定”。
  2. 展開“安全設定”,再展開“本地策略”。
  3. 選擇“使用者權利指派”檔案夾。

詳細資料窗格中隨即顯示出策略。

  1. 在該窗格中,雙擊“鎖定記憶體中的頁”。
  2. 在“本地安全性原則設定”對話方塊中,單擊“添加”按鈕。
  3. 在“選擇使用者或組”對話方塊中,添加有權運行 sqlservr.exe 的帳戶。
三、配置SQLServer AWE

特別注意:如果SqlServer 打了sp4補丁後,由於該補丁內在bug,要啟用AWE,必須打個補丁:

:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=7C407047-3F1F-48B8-9E4C-DC32875E1961

 

sp_configure 'show advanced options', 1

RECONFIGURE

GO

 

sp_configure 'awe enabled', 1

RECONFIGURE

GO

 

執行後重啟SqlServer

 

四、配置min/max server memory

sp_configure 'min server memory', 1024

RECONFIGURE

GO

 

sp_configure 'max server memory', 6144

RECONFIGURE

GO

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.