Windows 32bit OS上物理内存限制以及ORACLE 10G 在32bit OS的SGA内存分配限制解决方法
来源:互联网 发布:中世纪2优化九国家简介 编辑:程序博客网 时间:2024/05/21 03:57
今天有个朋友问起32位数据库的SGA 限制的问题,
现在整理如下,仅供参考学习之用。。
重要提示,操作有风险,建议先测试再实施,
原来由于32位操作系统本身的问题,内存只能认到不到4GB,好在微软加了一个什么参数PAE,解决了这个内存限制 在微软网站上看到的各个版本内存的最大扩展情况如下: The following table specifies the limits on physical memory for Windows Vista. Version Limit in 32-bit Windows/Limit in 64-bit Windows -------------------------------------------------------------------------------- Version Limit in 32-bit Windows /Limit in 64-bit Windows Windows Server 2003, Enterprise Edition 32 GB/16 GB with 4GT/64GB -------------------------------------------------------------------------------- Physical Memory Limits: Windows XP -------------------------------------------------------------------------------- Version Limit in 32-bit Windows OS 是32bit 的,Oracle 数据库 也只能安装32bit 的,这样了就SGA也受到限制,最大不能超过1.7G 看着那大把的内存,但数据库用不上,怪可惜的。。通过下面的方法可以解开内存的限制/ 右击"我的电脑",选择"属性"-->高级选项卡,找到“启动与故障恢复”,单击“设置”,然后单击“编辑”, - 通过修改注册表,变成oracle可以使用的内存, Sqlplus "/ as sysdba" R - 修改ORACLE pfile sqlplus "/as sysdba" - 通过以上的方法就可以让内存大大超过1.7GB了 但通过以上的方法修改后,可能在某些平台上会出现BUG,建议到METALINK查看相关NOTE 参考Notes:
Physical Memory Limits: Windows Vista
Windows Vista Ultimate 4 GB/ 128 GB
Windows Vista Enterprise 4 GB/128 GB
Windows Vista Business 4 GB/128 GB
Windows Vista Home Premium 4 GB/16 GB
Windows Vista Home Basic 4 GB/ 8 GB
Windows Vista Starter 1 GB / Not applicable
Physical Memory Limits: Windows Home Server
Windows Home Server is available only in a 32-bit edition. The physical memory limit is 4 GB.
--------------------------------------------------------------------------------
Physical Memory Limits: Windows Server 2003
The following table specifies the limits on physical memory for Windows Server 2003. Limits over 4 GB for 32-bit Windows assume that PAE is enabled.
Windows Server 2003 with Service Pack 2 (SP2), Datacenter Edition 128 GB/2TB
Windows Server 2003 with Service Pack 2 (SP2), Enterprise Edition 64 GB/2 TB
Windows Storage Server 2003, Enterprise Edition 8 GB/ Not applicable
Windows Storage Server 2003 4 GB/ Not applicable
Windows Server 2003 R2 Datacenter Edition
Windows Server 2003 with Service Pack 1 (SP1), Datacenter Edition 128 GB /16 GB with 4GT/ 1 TB
Windows Server 2003 with Service Pack 1 (SP1), Enterprise Edition 64 GB/16 GB with 4GT/1TB
Windows Server 2003 R2 Standard Edition
Windows Server 2003, Standard Edition SP1
Windows Server 2003, Standard Edition SP2 4GB/32GB
Windows Server 2003, Datacenter Edition 128 GB/16 GB with 4GT/512GB
Windows Small Business Server 2003 4 GB
Not applicable
Windows Compute Cluster Server 2003 Not applicable
32 GB
The following table specifies the limits on physical memory for Windows XP.
Version Limit in 32-bit Windows Limit in 64-bit Windows
Windows XP 4 GB
128 GB
Windows XP Starter Edition 512 MB
Not applicable
Physical Memory Limits: Windows 2000
The following table specifies the limits on physical memory for Windows 2000.
Windows 2000 Professional 4 GB
Windows 2000 Server 4 GB
Windows 2000 Advanced Server 8 GB
Windows 2000 Datacenter Server 32 GB
--------------------------------------------------------------------------------
- 在操作系统配置AWE,修改boot.ini文件
加/PAE选项,修改后的文件如下:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)WINDOWS="Windows Server 2003, Enterprise" /noexecute=optout /fastdetect /pae
“开始”- “运行” -“regedit"
HKEY_LOCAL_MACHINESOFTWAREORACLEKEY_oracle_home1,
添加新的strings:AWE_WINDOW_MEMORY ,这个值是准备分配给数据库用的最大内存数(以BYTE为单位),例如你想分配3G,那这个值就是
3*1024*1024*1024
- 通过下面方法,修改参数让ORACLE DB能使用上刚分配出来的MEM
SQLPLUS>create pfile from spfile;
SQLPLUS>Shutdown immediate
SQLPLUS>exit
注释掉如下的参数:
sga_max_size
sga_target
DB_CACHE_SIZE
增加如下参数
修改或者添加以下参数
*.db_block_buffers=20000 #2G 为例
*.SHARED_POOL_SIZE=400000000 # 400M 为例
*.log_buffer=73000000 # 70M
*.use_indirect_data_buffers=true
sql>create spfile from pfile
sql>startup
Oracle Database and the Windows NT memory architecture, Technical Bulletin
Doc ID: 46001.1
Oracle Database Server and the Operating System Memory Limitations
Doc ID: 269495.1
- Windows 32bit OS上物理内存限制以及ORACLE 10G 在32bit OS的SGA内存分配限制解决方法
- 破解windows 7 32bit 4GB内存的限制
- xp 32bit os 只能使用3.2G内存 的变通解决方案
- 32bit OS访问64GB物理内存——PAE技术
- 32Windows 上Oracle突破1.7G内存限制(一)
- oracle在32位的Linux环境下SGA如何突破2GB内存限制的最终解决方案
- oracle在32位的Linux环境下SGA如何突破2GB内存限制的最终解决方案
- Windows Server 2003 32bit打开物理内存扩展
- OS & Oracle is 32-bit or 64-bit?
- 在32位windos server 2003上让进程突破2G内存的限制
- Xen 32G内存限制
- 32bit Windows7安装4G内存
- 32bit Ubuntu安装4G内存
- 关于oracle 10g的bit数 跟 os的bit数 跟 硬件的bit数之间的支持关系
- ubuntu910 desktop 32bit 支持4G内存的方法
- 在Windows Server 2003 32bit 中安装Oracle 11g 32bit
- 32bit oracle 扩展SGA原理
- 32bit oracle 扩展SGA原理
- asp.net跳转页面的三种方法比较
- 两个已排序链表的合并
- 求GridView的记录条数
- informix---IndexOutOfBoundException
- CheckBoxList详细用法
- Windows 32bit OS上物理内存限制以及ORACLE 10G 在32bit OS的SGA内存分配限制解决方法
- 剖析C++ 动态数组 vector
- ubuntu 开源社区和最快更新源
- 几个漂亮按钮样式
- 明星软件工程师的10种特质
- 弹出窗口总结
- asp.net 关闭网页代码
- volatile
- mysql优化方案