惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
A
About on SuperTechFans
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
G
Google Developers Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
Cloudbric
Cloudbric
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog
H
Heimdal Security Blog
PCI Perspectives
PCI Perspectives
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
Latest news
Latest news
I
Intezer
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
月光博客
月光博客
T
Threatpost
博客园 - 【当耐特】
S
Schneier on Security
P
Privacy International News Feed
G
GRAHAM CLULEY
T
Tenable Blog
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
博客园 - Franky
Engineering at Meta
Engineering at Meta
美团技术团队
S
Secure Thoughts
T
Troy Hunt's Blog
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Martin Fowler
Martin Fowler
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - o岸上的鱼o

随笔 - 191, 文章 - 0, 评论 - 97, 阅读 - 104万 用SQL查询方式显示GROUP BY中的TOP解决方法[转] ArrayList的使用方法【转载】 ORACLE与SQL SERVER的区别 什么是.do文件? Dell HP服务器命名规则 【转】OS6.1.2完美越狱 ORACLE EXP/IMP 说明 . 【转】oracle导入导出命令详解 . plsql函数大全 常用会计科目通俗解释 SAP IDES、DEV、QAS、PRD都是什么含义/SAP实施方法分几步【转】 什么叫SAP-IDES EAM概述(什么是EAM?) 什么是EAM?定义、原理、核心 . 常见时间管理工具 迭代与增量的共性与区别 oracle pl/sql 中创建同义词 oracle pl/sql 基础 Excel 作复合饼图和双轴柱形图
oracle中的SGA和PGA
o岸上的鱼o · 2013-01-18 · via 博客园 - o岸上的鱼o

一、SGA(system global area )

SGA可以认为是instance中的全局共享区,Instance是由SGA和processes(进程)组成。

官方文档中的解释:
     A system global area (SGA)(系统全局区) is a group of shared memory structures that contain
data and control information for one Oracle database instance(实例). If multiple users areconcurrently connected to the same instance, then the data in the instance's SGA is sharedamong the users. Consequently(因此), the SGA is sometimes called the shared global area(共享全局区).

     An SGA and Oracle processes constitute(构成) an Oracle instance. Oracle automaticallyallocates(分配) memory for an SGA when you start an instance, and the operating systemreclaims(收回) the memory when you shut down the instance. Each instance has its own SGA.

     The SGA is read/write. All users connected to a multiple-process database instance can readinformation contained within the instance's SGA, and several processes write to the SGA during execution of Oracle.

查看SGA:

    SQL>show parameter sga
    SQL>show sga
    SQL>select * From v$sga;

二、PGA(Process Global Area 或Private Global Area )

      PGA可以认为是为连接上数据库的用户开的一个私有内存区。PGA包含一个服务进程的数据和控制信息,在一个服务进程启动时创建

     1 查看PGA
        show parameter pga;

        

2 修改PGA
         alter system set pga_aggregate_target=90M scope=both;


      
 

其中:
    pga_aggregate_target是一个动态参数,可以在运行时修改,因此这里的scope设置为both,新的内存大小马上生效,并且还将修改保存在Oracle的启动文件里。