6 Oracle深度学习笔记——内存架构之SGA 概述

本文深入探讨了Oracle数据库的系统全局区(SGA)内存架构,解析了SGA的组成部分及其在数据库操作中的作用,包括服务进程如何从SGA读取信息及多个进程如何写入SGA。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

6.Oracle深度学习笔记——内存架构之SGA 概述

        欢迎转载,转载请标明出处:http://blog.youkuaiyun.com/notbaron/article/details/50558157

 SGA和后台进程一起组成数据库实例。所有服务进程代表用户可以从SGA中读取信息。在数据库操作的时候,多个服务进程写到SGA中。

         PS:服务和后台进程的内存并没有分配在SGA中个,而是在另外独立的内存空间。

         每个数据块实例有自己的SGA。在实例启动的时候数据库自动分配SGA,在实例关闭的时候回收内存。

         启动时候如下:

idle> startup

ORACLE instance started.

 

Total SystemGlobal Area 1140850688 bytes

Fixed Size              2923584 bytes

Variable Size                419431360 bytes

Database Buffers      704643072 bytes

Redo Buffers                13852672 bytes

Database mounted.

Database opened.

启动实例,分配内存。

         SGA有很多内存组件,分配用于特定的目的。

         所有组件除了REDOLOG BUFFER,都是通过连续的内存单位叫做granules来分配的。

         Granule大小和平台、总的SGA大小相关。

         可以查看V$SGASTAT视图来查看相关信息,如下:

sys@PDB1> select * from v$sgastat;

 

POOL             NAME                            BYTES    CON_ID

------------ ------------------------------------ ----------

              fixed_sga                             2923584         0

              buffer_cache          721420288         0

              log_buffer                13852672         0

              shared_io_pool                 50331648         0

shared pool modification hash table c     163840         3

shared pool KQR S SO                            1800         3

shared pool monitoring column usage e            4160         3

shared pool qmpspdbonfy:0                        65280         3

shared pool KGLDA                              253512         3

shared pool kglsim object batch       81144         3

shared pool PDBHP                            4464176         3

shared pool KOKTD                                7344         3

shared pool kwqicaqe2kc1                 17616         3

shared pool PRTDS                               12144         3

shared pool parameter table block           31832         3

shared pool KGLH0                             5049432         3

shared pool KGLNA                                 136         3

shared pool call                            15320         3

shared pool free memory                54148480         0

shared pool KCB tablespace encryption             1440         3

shared pool SQLP                        333544         3

shared pool kkcnRstatIni                      680         3

shared pool kwqmncgr: allocate buffer              4112         3

shared pool PLDIA                               435568         3

shared pool pdb event stats                      1056000         3

shared pool PDB Heap Descriptor               136         3

shared pool KKBTD                               14528         3

shared pool KQR L PO                         2126464         3

shared pool PRTMV                               2432         3

shared pool SQLA                       6110336         3

shared pool parameter handle                    4168         3

shared pool KQR M PO                         97888         3

shared pool SQLK                         16192         3

shared pool KKSSP                                 42256         3

shared pool KKTIN                                 9552         3

shared pool kwssnmapAlloc                         6800         3

shared pool KGLS                       3003880         3

shared pool kglsim heap                     59520         3

shared pool ksu:ksunf_freelist          4032         3

shared pool KGLHD                              816600         3

shared pool KQR M SO                         32304         3

shared pool KQR X PO                         180192         3

shared pool object queue header free      33280         3

shared pool KQR X SO                         1349792         3

large pool  free memory                 32301056         0

java pool   free memory                 16777216         0

 

46 rows selected.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

           

给我老师的人工智能教程打call!http://blog.youkuaiyun.com/jiangjunshow
这里写图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值