1 / 20

Oracle Architectural Components

Oracle Architectural Components. Objectives. Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing a query Listing the stages in processing a DML statement Listing the stages in processing COMMITS. Oracle server. The Oracle Server.

eamon
Télécharger la présentation

Oracle Architectural Components

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. Oracle Architectural Components

  2. Objectives • Listing the structures involved in connecting a user to an Oracle server • Listing the stages in processing a query • Listing the stages in processing a DML statement • Listing the stages in processing COMMITS

  3. Oracle server The Oracle Server Application/networkserver Server Users

  4. Oracle server Connecting to a Database Serverprocess Client Server Userprocess User

  5. User Process • Runs on the client machine • Is spawned when a tool or an application is invoked • Runs the tool or application (SQL*Plus, Server Manager, Oracle Enterprise Manager, Developer/2000) • Includes the User Program Interface (UPI) • Generates calls to the Oracle server

  6. Server Process • Runs on the server machine (host) • Services a single user process in the dedicated server configuration • Uses an exclusive PGA • Includes the Oracle Program Interface (OPI) • Processes calls generated by the client • Returns results to the client

  7. Instance SGA Oracle Instance An Oracle instance: • Is a means to access an Oracle database • Always opens one and only one database Background processes

  8. Control files Data files Redo logfiles Oracle Database Parameterfile Archivedlog files Passwordfile Database

  9. Parameterfile Passwordfile Archivedlog files Other Key Physical Structures Database

  10. Statement Handle Handle Results OK OK • Parse • Execute • Fetch Processing a Query SELECT * FROM emp ORDER BY ename; Userprocess Serverprocess

  11. Shared pool Librarycache Datadictionarycache The Shared Pool • Size defined by SHARED_POOL_SIZE • Library cache contains statement text, parsed code, and an execution plan • Data dictionary cache contains table and column definitions and privileges

  12. Database Buffer Cache • Number of buffers defined by DB_BLOCK_BUFFERS • Size of a buffer based on DB_BLOCK_SIZE • Stores the most recently used blocks

  13. Program Global Area (PGA) PGA Serverprocess • Not shared and not writable • Contains • Sort area • Session information • Cursor state • Stack space

  14. 3 Instance SGA 4 Shared pool Librarycache 5 Database buffercache Redo logbuffer Datadictionarycache 2 Control files Data files Redo logfiles 1 Database Processing a DML Statement UPDATE emp SET sal=sal*1.1 WHERE empno=7369 Serverprocess

  15. Rollback Segment Old image New image Table Rollback segment DML statement

  16. Redo Log Buffer • Size defined by LOG_BUFFER • Records changes made through the instance • Used sequentially • Circular buffer

  17. Instance SGA Shared pool Database buffercache DBWR Data files Control files Redo logfiles Database Writer (DBWR)

  18. Instance SGA Shared pool Redo logbuffer LGWR Data files Control files Redo logfiles Log Writer (LGWR)

  19. 1 4 3 2 Control files Data files Redo logfiles Database COMMIT Processing Instance SGA Shared pool Serverprocess Database buffercache Redo logbuffer LGWR Userprocess

  20. Instance SGA Shared pool DBWR LGWR Control files Parameterfile Archivedlog files Redo logfiles Data files Passwordfile Summary Serverprocess PGA Userprocess Database

More Related