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

推荐订阅源

H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
L
LangChain Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & 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的启动文件里。