如何使SQL Server 數(shù)據(jù)庫SQL Server 數(shù)據(jù)庫
讓SQL Server 數(shù)據(jù)庫也能使SQL Server 數(shù)據(jù)庫的實際操作方案,今天一朋友咨詢我有關(guān) Windows Server 2003 32bit 相關(guān)的企業(yè)版最大支持的的實際物理內(nèi)存容量,主要是因為正在運(yùn)營的一臺數(shù)據(jù)庫服務(wù)器內(nèi)存使用達(dá)到 2G。
服務(wù)器效率非常低打算擴(kuò)展內(nèi)存,為 sql server 提供更多的內(nèi)存。經(jīng)過確認(rèn),服務(wù)器是 HP G3 系列支持 PAE,即物理地址擴(kuò)展,服務(wù)器應(yīng)該最大支持 32GB,而 Windows Server 2003 32bit 企業(yè)版最大支持 32GB,為了能夠在系統(tǒng)上有效的使用內(nèi)存需要開啟 /PAE 參數(shù),而要使 sql server 使用 2GB 以上的內(nèi)存還需要啟用 AWE 內(nèi)存。為此需要在 SQL Server 查詢分析器中執(zhí)行如下腳本:
- sp_configure ‘show advanced options’,1
- reconfigure
- go
- sp_configure ‘awe enabled’,1
- reconfigure
- go
- sp_configure ‘max server memory’,6144
- reconfigure
- go
注意:如果在 boot.ini 文件中使用 /3GB 開關(guān),sql server 最多可以使用 3GB 的內(nèi)存。
現(xiàn)在回過頭來再了解一下 Windows Server 2003 各版本最大支持的內(nèi)存容量,以及其他硬件支持信息,便于以后參考。
- Windows Server 2003 R2 Standard Edition
最多 4 個處理器,最大 4GB 內(nèi)存
- Windows Server 2003 R2 Enterprise Edition
最多 8 個處理器,x86 架構(gòu)最大 64GB 內(nèi)存,x64 架構(gòu)最大 2TB 內(nèi)存
- Windows Server 2003 R2 Datacenter Edition
x86 架構(gòu)最多 32 路多處理器,最大 128GB 內(nèi)存;x64 架構(gòu)最多 64 路多處理器,最大 2TB 內(nèi)存
- Windows Server 2003 Web Edition
最大 2GB 內(nèi)存
- Windows Server 2003 Standard Edition
最多 4 個處理器,最大 4GB 內(nèi)存
- Windows Server 2003 Enterprise Edition
最多 8 個處理器,x86 架構(gòu)最大 32GB 內(nèi)存,x64 架構(gòu)最大 64GB 內(nèi)存
- Windows Server 2003 Datacenter Edition
最多 64 路多處理器,x86 架構(gòu)最大 128GB 內(nèi)存,x64 架構(gòu)最大 2TB 內(nèi)存
本篇文章來源于:開發(fā)學(xué)院 http://edu.codepub.com 原文鏈接:http://edu.codepub.com/2009/0429/3550.php