版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- T/SDSES 014-2023水泥窑协同处置垃圾焚烧飞灰技术规范
- T/LXLY 38-2025牙骨质撕裂临床诊疗规程
- T/CDEIIEA 9-2024成渝地区电子信息先进制造集群公共服务平台 网络平台功能规范
- T/CFEII 0015.3-2023内容安全检测人工智能系统鲁棒性测评规范 第3部分:文本
- T/CSPSTC 207-2026抽水蓄能电站建筑装饰装修技术导则
- GB/T 7424.2219-2026光缆第2-219部分:总规范光缆基本试验方法环境性能试验方法方法F19材料相容性
- 2025~2026学年贵州省遵义市播州区人教版六年级上册第三次月考数学试卷【附答案】
- 河北滦平县2027届九上数学期末考试试题含解析
- PHP程序员面试题及详细答案(真实企业版)
- 2026年混凝土工(高级)职业资格考试真题及答案
- 2026年注册(营养师、营养指导员)资格证必过考试题库与答案
- 2026年软件工程开发工程师试题及答案
- 2025年10月自考02126应用文写作试卷及答案
- 2026年监理员考试题库及答案
- 航道、通航建筑物及航运枢纽大坝运行安全风险辨识评估管控指南(试行)
- 2026年屠宰兽医卫生检验员考试题库(含考点)
- 2026中国资源循环集团有色金属投资有限公司社会招聘2人笔试历年典型考点题库附带答案详解
- pdf日语专业毕业论文写作指导
- (正式版)DB50∕T 959-2019 《营运高速公路施工管理规范 》
- 银行客户投诉处理培训
- 阳光合法经营承诺书8篇
评论
0/150
提交评论