易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

oracle根据外键名查关联的表

1、查找表的所有索引(包括索引名,类型,构成列):
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and t.table_name = i.table_name and t.table_name = 要查询的表
2、查找表的主键(包括名称,构成列):
select cu.* from user_cons_columns cu, user_constr ......

oracle 物化视图

物化视图是一种特殊的物理表,“物化”(Materialized)视图是相对普通视图而言的。普通视图是虚拟表,应用的局限性大,任何对视图的查询,Oracle都实际上转换为视图SQL语
句的查询。这样对整体查询性能的提高,并没有实质上的好处。
  Oracle最早在OLAP系统中引入了物化视图的概念。但后来很多大型OLTP系统中 ......

LINUX下Oracle库备份脚本

vi /opt/back.sh(oracle用户)
#!/bin/ksh
tim=`date +%Y%m%d`
unset USERNAME
#export DISPLAY=0.0.0.0:0.0
#export ORACLE_BASE=/home/oraprod3
#export ORACLE_HOME=/prod/oracle/prod3db/9.2.0
#export ORACLE_SID=PROD3_db
#export LD_LIBRARY_PATH=/prod/oracle/prod3db/9.2.0/lib
#export ORACLE_TERM=vt100 ......

Oracle 时间操作大全

在系统时间基础上延迟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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号