版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Oracle Architectural Components,Objectives,After completing this lesson, you should be able to do the following: Outline the Oracle architecture and its main components List the structures involved in connecting a user to an Oracle instance,Overview of Primary Components,Instance,SGA,Redo LogBuffer,
2、Shared Pool,Data DictionaryCache,Library Cache,DBWR,SMON,PMON,CKPT,LGWR,Others,Userprocess,Serverprocess,PGA,Control files,Data files,Database,DatabaseBuffer Cache,Redo Log files,Java Pool,Large Pool,Parameter file,Archived Log files,Oracle Server,An Oracle server: Is a database management system th
3、at provides an open, comprehensive, integrated approach to information management Consists of an Oracle instance and an Oracle database,Oracle Instance,An Oracle instance: Is a means to access an Oracle database Always opens one and only one database Consists of memory and background process structu
4、res,Background process structures,Memory structures,Instance,SGA,Redo LogBuffer,Shared Pool,Data DictionaryCache,Library Cache,DBWR,SMON,PMON,CKPT,LGWR,Others,DatabaseBuffer Cache,Java Pool,Large Pool,Establishing a Connectionand Creating a Session,Connecting to an Oracle instance: Establishing a us
5、er connection Creating a session,Session created,Database user,Userprocess,Serverprocess,Connection established,Oracle Database,An Oracle database: Is a collection of data that is treated as a unit Consists of three file types,Physical Structure,The physical structure includes three types of files:
6、Control files Data files Online redo log files,Control files,Data files (includes Data Dictionary),Header,Online Redo Log files,Memory Structure,Oracles memory structure consists of two memory areas known as: System Global Area (SGA): Allocated at instance start up, and is a fundamental component of
7、 an Oracle instance Program Global Area (PGA): Allocated when the server process is started,System Global Area,The SGA consists of several memory structures: Shared Pool Database Buffer Cache Redo Log Buffer Other structures (for example, lock and latch management, statistical data) There are two ad
8、ditional memory structures that can be configured within the SGA: Large Pool Java Pool,System Global Area,Is dynamic Sized by the SGA_MAX_SIZE parameter Allocated and tracked in granules by SGA components Contiguous virtual memory allocation Granule size based on total estimated SGA_MAX_SIZE,Shared
9、Pool,Used to store: Most recently executed SQL statements Most recently used data definitions It consists of two key performance-related memory structures: Library Cache Data Dictionary Cache Sized by the parameter SHARED_POOL_SIZE,Shared Pool,DataDictionary Cache,Library Cache,ALTER SYSTEM SET SHAR
10、ED_POOL_SIZE = 64M;,Library Cache,Stores information about the most recently used SQL and PL/SQL statements Enables the sharing of commonly used statements Is managed by a least recently used (LRU) algorithm Consists of two structures: Shared SQL area Shared PL/SQL area Size determined by the Shared
11、 Pool sizing,Data Dictionary Cache,A collection of the most recently used definitions in the database Includes information about database files, tables, indexes, columns, users, privileges, and other database objects During the parse phase, the server process looks at the data dictionary for informa
12、tion to resolve object names and validate access Caching data dictionary information into memory improves response time on queries and DML Size determined by the Shared Pool sizing,Database Buffer Cache,Stores copies of data blocks that have been retrieved from the data files Enables great performan
13、ce gains when you obtain and update data Managed through an LRU algorithm DB_BLOCK_SIZE determines primary block size,Database BufferCache,Database Buffer Cache,Consists of independent subcaches: DB_CACHE_SIZE DB_KEEP_CACHE_SIZE DB_RECYCLE_CACHE_SIZE Can be dynamically resized DB_CACHE_ADVICE set to
14、 gather statistics for predicting different cache size behavior Statistics displayed by V$DB_CACHE_ADVICE,ALTER SYSTEM SET DB_CACHE_SIZE = 96M;,Redo Log Buffer,Records all changes made to the database data blocks Primary purpose is recovery Changes recorded within are called redo entries Redo entrie
15、s contain information to reconstruct or redo changes Size defined by LOG_BUFFER,Redo LogBuffer,Large Pool,An optional area of memory in the SGA Relieves the burden placed on the Shared Pool Used for: Session memory (UGA) for the Shared Server I/O server processes Backup and restore operations or RMA
16、N Parallel execution message buffers PARALLEL_AUTOMATIC_TUNING set to TRUE Does not use an LRU list Sized by LARGE_POOL_SIZE Can be dynamically resized,Java Pool,Services parsing requirements for Java commands Required if installing and using Java Sized by JAVA_POOL_SIZE parameter,Program Global Are
17、a,Memory reserved for each user process connecting to an Oracle database Allocated when a process is created Deallocated when the process is terminated Used by only one process,Userprocess,PGA,Serverprocess,Process Structure,Oracle takes advantage of various types of processes: User process: Started
18、 at the time a database user requests connection to the Oracle server Server process: Connects to the Oracle instance and is started when a user establishes a session Background processes: Started when an Oracle instance is started,User Process,A program that requests interaction with the Oracle ser
19、ver Must first establish a connection Does not interact directly with the Oracle server,Database user,Serverprocess,Userprocess,Connectionestablished,Server Process,A program that directly interacts with the Oracle server Fulfills calls generated and returns results Can be dedicated or shared server
20、,Connection established,Session created,Database user,Userprocess,Serverprocess,Background Processes,Maintains and enforces relationships between physical and memory structures: Mandatory background processes: DBWnPMONCKPT LGWRSMON Optional background processes: ARCnLMDn QMNn CJQ0LMON RECO DnnnLMS S
21、nnn LCKnPnnn,Database Writer (DBWn),DBWn writes when: Checkpoint occurs Dirty buffers reach threshold There are no free buffers Timeout occurs RAC ping request is made Tablespace OFFLINE Tablespace READ ONLY Table DROP or TRUNCATE Tablespace BEGIN BACKUP,Instance,SGA,Control files,Data files,Redo Lo
22、g files,Database,DBWn,Database BufferCache,Log Writer (LGWR),LGWR writes: At commit When one-third full When there is 1 MB of redo Every three seconds Before DBWn writes,Instance,SGA,Control files,Data files,Redo Log files,Database,Redo Log Buffer,DBWn,LGWR,System Monitor (SMON),Responsibilities: In
23、stance recovery Rolls forward changes in online redo log files Opens database for user access Rolls back uncommitted transactions Coalesces free space Deallocates temporary segments,Control files,Data files,Redo Log files,Database,Instance,SGA,SMON,Process Monitor (PMON),Cleans up after failed proce
24、sses by: Rolling back the transaction Releasing locks Releasing other resources Restarting dead dispatchers,PGA area,Instance,SGA,PMON,Checkpoint (CKPT),Responsible for: Signaling DBWn at checkpoints Updating datafile headers with checkpoint information Updating control files with checkpoint informa
25、tion,Instance,SGA,DBWn,LGWR,CKPT,Archiver (ARCn),Optional background process Automatically archives online redo log files when ARCHIVELOG mode is set Preserves the record of all changes made to the database,ARCn,Archived redo log files,Logical Structure,Dictates how the physical space of a database is used Hierarchy consisting of tablespaces, segments, extents, and blocks,Tablespace,Datafile,Segment,Blocks,Extent,Segment,Processing SQL Statements,Connect to an instance using: User pro
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 青年就业指导策略
- 路面施工安全保障
- (正式版)DB42∕T 2531-2026 中药材 白芍生产技术规程
- 2026年国盛证券股份有限公司分支机构社会招聘6人(第六批)考试备考试题及答案解析
- 钢结构安装施工组织设计
- 2026四川成都市公共交通集团有限公司招聘储备人才等岗位考试备考题库及答案解析
- 绵阳市市场监督管理局高新分局聘用人员招聘(2人)笔试模拟试题及答案解析
- 2026四川成都城建投资管理集团有限责任公司市场化选聘所属企业经理层成员1人笔试参考题库及答案解析
- 2026厦门银行南平分行招聘考试备考题库及答案解析
- 2026年及未来5年市场数据中国湖北省房地产行业市场全景监测及投资策略研究报告
- 心血管疾病的三级预防
- 2025春季学期国开电大专科《应用写作(汉语)》一平台在线形考(形考任务一至七)试题及答案
- 爱永在 二部合唱简谱
- 上海市浦东新区2024-2025学年高一下学期期中考试英语试卷(含答案)
- 电梯有限空间作业安全专项施工方案
- 承插型盘扣式钢管脚手架安全技术标准JGJT231-2021规范解读
- 河北省房屋建筑和市政基础设施工程监理招标文件示范文本(2025版)
- Q-CSG1204079-2020-10kV~110kV线路保护技术规范(试行)
- 大学武术知到智慧树章节测试课后答案2024年秋浙江大学
- 轨道工程课件:铁路无缝线路
- 2024年阅读主题班会教案:书香润心灵阅读促成长
评论
0/150
提交评论