oracle多个实例内存分配,Oracle的实例占用内存调整

本文介绍了Oracle内存结构的主要组成部分,如SGA、PGA等,并详细阐述了如何通过调整Oracle内存参数来减少数据库内存占用。具体步骤包括创建初始化参数文件、修改内存参数(如sga_max_size、large_pool_size、shared_pool_size等)并重启数据库。
摘要由CSDN通过智能技术生成

oracle内存结构介绍:

Introduction to Oracle Memory Structures

Oracle uses memory to store information such as the following:

Program code

Information about a connected session, even if it is not currently active

Information needed during program execution (for example, the current state of a query from which rows are being fetched)

Information that is shared and communicated among Oracle processes (for example, locking information)

Cached data that is also permanently stored on peripheral memory (for example, data blocks and redo log entries)

The basic memory structures associated with Oracle include:

System Global Area (SGA), which is shared by all server and background processes.

Program Global Areas (PGA), which is private to each server and background process; there is one PGA for each process.

1.sqlplus “/ as sysdba"  2. 3.create pfile='d:/cj.ora' from spfile;  然后去你的oracle安装目录

找一个init数据库名。ora这样一个文件

把几个oracle内存参数改小点

一个2G的内存是如下配置的:

*.sga_max_size=712M

*.large_pool_size=8M

*.shared_pool_size=250M

*.sort_area_size=0.5M

*.db_cache_size=350M

然后shutdown数据库

1.shutdown immediate;  2. 3.create spfile from pfile='d:/cj2.ora';  4. 5.startup;  然后启动,就可以了。

以上就是调整oracle内存参数,减少数据库内存占用的方法介绍。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值