oracle的内存结构
数据库的内存结构:
Memory structures are allocated to the Oracle instance when the instance is started.
The two major memory structures are known as the System Global Area(Also called the shared
Global Area)and the Program Global Area(also called the Private Global Area or the Process
Global Area)
SGA:
The System Global Area(SGA) is a shared memory area.All users of the database share the
information maintained in this area.The SGA and the backgroud processes constitute an Oracle instance.Oracle allocates memory for the SGA when an Oracle instance is started and de-allocates it when the istance is shut down.The information stored in the SGA is divided into multiple memory structures that are allocated fixed space when the instance started.
DATABASE Buffer Cache:
The database buffer cache is the area of memory that caches the database area,holding blocks
from the data files that have been read recently.The DB buffer cache is shared among all the users connected to the database.
There are three type of buffers.
Dirty buffers:Dirty buffers are the buffer blocks that need to be written to the data files.
The data in these buffers has changed and has not yet been written ti the disk.
Free buffers :Free buffers do not contain any data or are free to be overwritten.When Oracle reads data from disk,free buffers are used to hold this area.
Pinned buffers :Pinned buffers are the ones that are currently being accessed or explicityly retained for futer use.(for example,the KEEP buffer)
Oracle maintains two lists to manage the buffer cache,The write list(dirty buffer list) has the buffers that are modified and need to be written to the disk(the dirty buffers).
The least recently used(LRU) list contains fr
相关文档:
关于SGA设置的一点总结
本总结不针对特例,仅对服务器只存在OS + ORACLE 为例,如果存在其他应用请酌情考虑
写这个也是因为近来这种重复性的问题发生的太多所导致的
首先不要迷信STS,SG,OCP,EXPERT 等给出的任何建议、内存百分比的说法
基本掌握的原则是, data buffer 通常可以尽可能的大,shared_pool_size 要适度 ......
在系统时间基础上延迟5秒
sysdate+(5/24/60/60)
在系统时间基础上延迟5分钟
sysdate+5/24/60
在系统时间基础上延迟5小时
sysdate+5/24
在系统时间基础上延迟5天
sysdate+5
在系统时间基础上延迟5月
add_months(sysdate,-5)
在系统时间基础上延迟5年
add_months ......
记录一下ORACLE 10gR2的软件下载地址,备用。
下载OTN上的这些软件,你需要一个OTN免费帐号,不过如果通过迅雷进行下载,就不用登陆OTN了:
Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database ......
每隔几秒钟listener日志中就出现一次该错误的记录,即使是在没有人使用的情况下也是如此,不过并没有发现客户端机器不能正常连接数据库的情况。
Oracle关于TNS-12502错误的解释:
Error: ORA-12502 / TNS-12502
Text: TNS:listener received no CONNECT_DATA from client
Cause: No CONNECT_DATA was ......
先看下面的例子:oracle中两个系统表.emp,dept.
example:
1:not exists(not in)
not exists:
这条语句返回select * from scott.dept d where e.deptno=d.deptno and d.deptno=10条件满足的结果集.也就是说,
返回的结果集中不存在d.deptno=10结果集的记录,即emp表中没有dept表中d.deptno=10的记录.
SQL& ......