1 / 19

面向 Web 的 Oracle 应用

面向 Web 的 Oracle 应用. 第三章 创建 Oracle 数据库. 本章主要内容. Oracle 数据库实例体系结构 Oracle 逻辑存储结构和物理存储结构 实例的启动和关闭方式. 1 、 Oracle 数据库实例体系结构. LRU( 最近最少使用算法 ) and MRU( 最近最常使用算法 )

Télécharger la présentation

面向 Web 的 Oracle 应用

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 面向Web的Oracle应用 第三章 创建Oracle数据库

  2. 本章主要内容 • Oracle数据库实例体系结构 • Oracle逻辑存储结构和物理存储结构 • 实例的启动和关闭方式

  3. 1、Oracle数据库实例体系结构

  4. LRU(最近最少使用算法) and MRU(最近最常使用算法) • LRU(Least recently used)算法的基本概念:当内存的剩余的可用空间不够时,缓冲区尽可能的先保留使用者最常使用的数据,换句话说就是优先清除”较不常使用的数据”,并释放其空间.之所以”较不常使用的数据”要用引号是因为这里判断所谓的较不常使用的标准是人为的、不严格的. • MRU(Most recently used)算法的意义正好和LRU算法相反.

  5. 1)实例:存储结构与进程

  6. PGA • Session Area • Heap Area • Sort Area • Cursor Area

  7. 2、Oracle逻辑与物理结构

  8. 1)物理结构 • 控制文件 • 重做日志文件 • 数据文件

  9. 2)逻辑结构 • 1、Tablespace • SYSTEM: • Data Dictionary,PL/SQL Source Code • OnLine & OffLine Tablespace • Everlasting & Temporary Tablespace • ReadOnly & ReadWrite Tablespace • Other Tablespace

  10. 2、Segment • Data Segment • Index Segment • Rollback Segment • Temporary Segment

  11. 3、Extent: • Meta Unit of Oracle Distribution • 4、Block • Meta Unit of OS,Consist of: • Title • Table Directory • Row Directory • Row Data • Free Space

  12. 3、实例的启动和关闭方式 • 1、Start Instance • 1)Start Instance Interface • EM • SQL*Plus • RMAN • 2)Start instance • STARTUP • STARTUP NOMOUNT • STARTUP MOUNT • STARTUP RESTRICT • STARTUP FORCE • STARTUP OPEN RECOVER • STARTUP REMOTE

  13. 2、Close Instance • SHUTDOWN NORMAL • No new • Waiting all • SHUTDOWN IMMEDIATE • No new connection,transaction • Roll back all no-committed transaction • SHUTDOWN TRANSACTIONAL • Finish all active & no-committed transaction • SHUTDOWN ABORT • Stop SQL statements

  14. 3、Modify Instance • ALTER DATABASE MOUNT; • ALTER DATABASE OPEN; • ALTER DATABASE OPEN READ ONLY; • ALTER SYSTEM ENABLE|DISABLE RESTRICTED SEESION

  15. Thank You! 钱剑飞

More Related