oracle 体系架构 (绝对原创) (一)

This I will intruduce Instance and Media recovery structure:
 
  After completing this lesson, you should be able to do the following:
 
  1: Describle the Oracle process, memory structures, and file rekating to recovery.
  2: Identify the importance of checkpoints, redo log files, and archived log files.
  3: Describe ways to tune instance recovery.
 

Step1:
  Memory:
  Type:
  1: Data buffer cache:
    Menory area used to store blocks read from data files.
    Data is read into the blocks by server process and written out by DBWn asynchronously.
   
  2: Log buffer:
     Memory containing before and after image copies of changed data to be written to redo logs.
    
  3: Large pool:
    An optional area in the SGA that provides large memroy allocations for backup and restore operations.
    I/O server processes, and session memory for the shared server and ORACLE XA.
   
  4: Shared pool:
     Stores parsed version of SQL statements, PL/SQL procedures, and data dictionary information.
    
  5: Jave pool:
     Used in server memory for all session-specific Jave Code and data within the java virtual mechine.
    
Step2 Backgroud Process:
 
  1: Database write (DBWn):
    writes dirty buffers from the data buffer cache to the data files, This activity is asynchronous.
   
    Notice:
    If you are using the linux OS , the packet: "aio" is nessary to asynchronous packet:
    rpm -qa | grep aio
    libaio-devel-0.3.105-2
    libaio-0.3.105-2
   
  2: Log write (LGWR)
    write data from redo log buffer to the redo log files.
   
  3: System Monotor (SMON):
     Perform automatic instance recovery, Recoverys sapce in temporary segments when
     they are no longer in use. Merges contiguous areas of free space depending on parameters that
     are set.
    
  4: Process Monitor (PMON):
     Cleans up connection/server process dedicate to an abnormally terminated user process.
     performs rollback and releas the resources held by failed process.
    
  5: Checkpoint (CKPT):
     synchronize the headers of the data files and control files with the current redo log and
     checkpoint number.
    
  6: Archiver (ARCn):
     A process that automatically copies redo logs that have been marked for archiving.
    
Step3:
   Database Files:
   An oracle database consists of the following physical files:
   1: datafiles:
     PHysical storage of data, At least one file is needed per database. This file stores system tablespace.
    
   2: Redo logs:
     Contain before and after image copies changed data, for revocery purpose, at least, two files are required.
    
   3: Control files:
     record the status of the database, physical structure, and RMAN meta data.
    
   4: Archive logs (optional):
     physical copies of the online redo log files, created when the database is set in  archivedlog mode.
     It is used in recovery.
    

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值