设为首页 加入收藏

TOP

Oracle10G启动时SGA大小
2015-07-24 09:40:35 来源: 作者: 【 】 浏览:1
Tags:Oracle10G 启动 SGA 大小

Oracle 10g 库启动的SGA大小由sga_target与sga_max_size决定,分下面三种情况讨论

sga_target=sga_max_size

参数文件指定值

*.sga_target=599785472

启动

SQL> startup
ORACLE instance started.

Total System Global Area  599785472 bytes
Fixed Size          2022632 bytes
Variable Size         171967256 bytes
Database Buffers      423624704 bytes
Redo Buffers            2170880 bytes
Database mounted.
Database opened.

sga_target < sga_max_size
参数文件指定值

*.sga_max_size=800m
*.sga_target=700m

启动数据库

SQL> startup
ORACLE instance started.

Total System Global Area  838860800 bytes
Fixed Size          2024496 bytes
Variable Size         297798608 bytes
Database Buffers      536870912 bytes
Redo Buffers            2166784 bytes
Database mounted.
Database opened.
SQL> select 838860800/1024/1024 from dual;

838860800/1024/1024
-------------------
        800

SQL> show parameter sga_

NAME                   TYPE      VALUE
------------------- ----------- -----------------------
sga_max_size         big integer 800M
sga_target           big integer 700M

sga_target>sga_max_size

参数文件指定值

*.sga_max_size=600m
*.sga_target=700m

数据库实际启动的大小

SQL> startup
ORACLE instance started.

Total System Global Area  734003200 bytes
Fixed Size          2023656 bytes
Variable Size         192941848 bytes
Database Buffers      536870912 bytes
Redo Buffers            2166784 bytes
Database mounted.
Database opened.
SQL> select 734003200/1024/1024 from dual;

734003200/1024/1024
-------------------
        700

SQL> show parameter sga_   

NAME                     TYPE    VALUE
------------------------------------ ----------- ------------------------------
sga_max_size                 big integer 700M
sga_target               big integer 700M

实验结论
由以上三个实验可以看到,数据库启动时SGA的大小由SGA_TARGET和SGA_MAX_SIZE中的较大值决定

当SGA_TARGET <= SGA_MAX_SIZE时,以SGA_MAX_SIZE为准
当SGA_TARGET > SGA_MAX_SIZE时,将SGA_TARGET的值赋予SGA_MAX_SIZE,然后以SGA_MAX_SIZE为准

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle学习笔记(4)------------.. 下一篇Oracle基础(二):用户及权限管理

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·如何从内核协议栈到 (2025-12-27 03:19:09)
·什么是网络协议?有哪 (2025-12-27 03:19:06)
·TCP/ IP协议有哪些 (2025-12-27 03:19:03)
·怎样用 Python 写一 (2025-12-27 02:49:19)
·如何学习python数据 (2025-12-27 02:49:16)