ITPub博客

首页 > 数据库 > Oracle > Windows 2003 + Oracle 92 SGA调整

Windows 2003 + Oracle 92 SGA调整

原创 Oracle 作者:wmlm 时间:2009-01-21 15:23:17 0 删除 编辑

原来做过2次,都没有记录,这次做个记录。

测试用服务器情况
8CPU + 8G MEM
Windows server 2003 R2 EnterpriseEdition sp2

1 boot.ini文件,没有动,操作系统已加/PAE
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Windows Server 2003, Enterprise" /noexecute=optout /fastdetect /redirect /PAE

[@more@]

2 添加注册表,允许4G
HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE -> HOME0 加字串值
AWE_WINDOW_MEMORY = 4294967296

3 停数据库,备出pfile 修改pfile,注释db_cache_size , 添加以下三行内容 ,
# *.db_cache_size=25165824
use_indirect_data_buffers=true
_db_block_lru_latches=128 # 这个参数据大小为=CPU数*2*8
db_block_buffers=393216 # 将DB CACHE设为3G = 8192*393216

4 第一次失败
SQL> startup
ORA-27102: out of memory
OSD-00034: Message 34 not found; product=RDBMS; facility=SOSD

O/S-Error: (OS 8) ?洢??????Ξ??????ü??

原因是开始将AWE_WINDOW_MEMORY设成了1G

5 第二次失败
SQL> startup
ORA-27100: shared memory realm already exists
原因是上次的失败 尝试以下均失败

del spfile
start pfile=...
startup force pfile=...

重启服务OK
C:>net stop oracleservicemillet
OracleServiceMILLET 服务正在停止...
OracleServiceMILLET 服务已成功停止。


C:>net start oracleservicemillet
OracleServiceMILLET 服务正在启动 .......
OracleServiceMILLET 服务已经启动成功。

6 验证内存的分配
C:>sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期三 1月 21 15:01:39 20

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> show sga

Total System Global Area 3391691396 bytes
Fixed Size 453252 bytes
Variable Size 167772160 bytes
Database Buffers 3221225472 bytes
Redo Buffers 2240512 bytes
SQL>
SQL>

古人云: 年好过,月难熬. 重视生命中的每一天,重视工作时间的每一分钟!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/271063/viewspace-1016366/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-08

  • 博文量
    398
  • 访问量
    3716803