Your SlideShare is downloading. ×
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Microsoft PowerPoint - Managing Performance for RAC
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Microsoft PowerPoint - Managing Performance for RAC

1,651

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,651
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
164
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Managing Performance for Oracle Real Application Clustering (RAC) Presented Wednesday, October 27, 2004
  • 2. Agenda • RAC – Why, Who, What • RAC Performance Tuning • What’s Not on the Agenda… – How to Set up your RAC environment – Cluster Guard, Failover, Recovery Performance Management of Oracle Real Application Clusters (RAC)
  • 3. Why Real Application Clusers (RAC) Why RAC? (Or Why clusters?) • Availability – Redundency for critical applications and data • Performance – Access / Processing Intensive Applications Performance Management of Oracle Real Application Clusters (RAC)
  • 4. A Brief History of Oracle Clusters • Oracle Parallel Server (OPS) – Not well received – An initial “solution” for data warehouses • Real Application Clusters (RAC) – OLTP + – Business Intelligence (OLAP) – Gaining Acceptance – The key to Oracle Grid Initiative Performance Management of Oracle Real Application Clusters (RAC)
  • 5. RAC Adoption Performance Management of Oracle Real Application Clusters (RAC)
  • 6. What is a RAC System? • Many instances of Oracle running on many nodes • …and sharing a single physical database • All instances having common data and control files • Each instance has individual log files and undo segments • All instances can simultaneously execute transactions against the single physical database • Cache synchronization using cluster interconnect Performance Management of Oracle Real Application Clusters (RAC)
  • 7. Basic Challenges of RAC Management More of everything More Instances More Machines More Complexity More of everything except Experience? Performance Management of Oracle Real Application Clusters (RAC)
  • 8. RAC in Pictures… Cluster Interconnect Node 1 Instance 1 Instance 2 Node 2 Users Users Oracle Server Performance Management of Oracle Real Application Clusters (RAC)
  • 9. RAC in Pictures (2) PM ON PM ON Instance Instance A B Process Process M onitor M onitor Process Process PGA SGA PGA SGA SM ON Private SM ON Shared Pool Database Private Shared Pool Database System SQL Buffer SQL Buffer Area Cache Area System M onitor Cache M onitor Process Cursors Data Library Data Library Process Dictionary Cursors Dictionary Cache Cache Cache Redo Log Cache Redo Log ARCH Buffer Buffer ARCH SQL SQL Archiver Area Area Process Java Pool Large Pool Miscellaneous Java Pool Large Pool Miscellaneous Archiver Process Log w riter Database Database Log w riter CKPT Process W riter Process W riter Process Process CKPT LGW R DBW R LGW R Checkpoint Process DBW R Checkpoint Process Data files and Control files Redo Log Files Redo Log Files Performance Management of Oracle Real Application Clusters (RAC)
  • 10. RAC in Pictures (3) Instance Instance RAC1 IPC IPC RAC2 Cluster Comm. Cache Fusion Comm. Cluster Manager Layer Layer Manager Cluster Interconnect Listeners (Heartbeat, Membership) Listeners Monitors Monitors Shared Disk Driver Shared Disk Driver ora-db1 ora--db2 Shared Disk Subsystem Performance Management of Oracle Real Application Clusters (RAC)
  • 11. RAC in Pictures (4) SGA Cache Fusion SGA LGWR DBWR GCS GCS DBWR LGWR Shared storage subsystem Redologs Database Files Redologs Performance Management of Oracle Real Application Clusters (RAC)
  • 12. Cluster Manager (CM) • Is a distributed kernel component that monitors whether cluster members can communicate with each other • Enforces rules of cluster membership • Forms a cluster, adds members to a cluster and removes members from a cluster • Tracks which members in a cluster are active • Maintains a cluster membership list that is consistent on all cluster members • Provides timely notification of membership changes • Detects and handles possible cluster partitions Oracle World 2003, Paris | Performance Tuning RAC | Murali Vallath | Slide: 12 Performance Management of Oracle Real Application Clusters (RAC)
  • 13. Oracle Cache Fusion Management •Global Cache Service (GCS) The process that implements Cache Fusion. It maintains the block mode for blocks in the global role. It is responsible for block transfers between instances. The Global Cache Service employs various background processes such as the Global Cache Service Processes (LMSn) and Global Enqueue Service Daemon (LMD). •Global Cache Service Processes (LMSn) The processes that handle remote Global Cache Service messages. Real Application Clusters provides for up to 10 Global Cache Service Processes. The number of LMSn varies depending on the amount of messaging traffic amount the nodes in the cluster. The LMSn handle the acquisition interrupt and blocking interrupt requests from an instance for Global Cache Service resources. For cross-instance consistent read requests, LMSn creates a consistent read version of the block and sends it to the requesting instance. LMSn also controls the flow of messages to and from remote instances. Performance Management of Oracle Real Application Clusters (RAC)
  • 14. Oracle Cache Fusion Management • Global Enqueue Service (GES) This service coordinates local and global enqueues. • Global Enqueue Service Daemon (LMD) The resource agent process that manages Global Enqueue Service (GES) resource requests. The LMD process also handles deadlock detection GES requests. Remote resource requests are requests originating from another instance. • Global Enqueue Service Monitor (LMON) The process that monitors the entire cluster to manage global resources. LMON manages instance and process expirations and the associated recovery for the GCS and GES . In particular, LMON handles the part of recovery associated with global resources. Performance Management of Oracle Real Application Clusters (RAC)
  • 15. Oracle Cache Fusion Management • Global Resource Directory The data structures associated with global resources. It is distributed across all instances in a cluster. • Global Services Daemon (GSD) A component that receives requests from SRVCTL to execute administrative job tasks, such as startup or shutdown. The command is executed locally on each node, and the results are sent back to SRVCTL. Performance Management of Oracle Real Application Clusters (RAC)
  • 16. Tuning RAC and its Applications • Tuning a RAC based Application • Tuning the RAC Environment – Problem Diagnostics – Tuning the single instance – Tuning the cluster Performance Management of Oracle Real Application Clusters (RAC)
  • 17. Application Tuning: General • Application Tuning is the key to most performance issues • Testing prior to deployment: – Tune the individual SQL statements – Unit test in as representative environment as possible Performance Management of Oracle Real Application Clusters (RAC)
  • 18. Coding Acts for Performance - 1 • Use Bind Variables – Hard coded values rarely advocated anywhere – Reduced parsing because the forms are shared – Know your data however… – DBAs – how to capture the bind variable at run time? Performance Management of Oracle Real Application Clusters (RAC)
  • 19. Coding Acts for Performance - 2 • Parallel Queries CAN be helpful – Know your data! Know your environment! Know your application! – For queries engaging a full table scan – Best for those complex “What if” types of Warehousing queries – OPQ is a team effort, the DBA has to enable the DB to take advantage – Use on a per statement basis via hints – Not an excuse to create too many joins Performance Management of Oracle Real Application Clusters (RAC)
  • 20. Oracle Parallel Hints • How to force parallelism – Use the parallel hint to use multiple CPUs on multiple instances – SELECT /*+ PARALLEL(employees, 2,4) */ COUNT(*) FROM employees – Here we have a 2 Degree of Parallelism on 4 different machines within our cluster – You can force parallelism for specific tables or a session, etc. • REMEMBER: Oracle will default to force a query to run on a single instance Performance Management of Oracle Real Application Clusters (RAC)
  • 21. Application Driving the Architecture… • A Decision Support application can get by with Gigabit ethernets usually • The more parallel queries you have means more cross node traffic – Infiniband, fibre channel, high throughput ethernet Performance Management of Oracle Real Application Clusters (RAC)
  • 22. Tuning RAC: The Instance(s) • Tuning the Single Instance – Instance Tuning – Database Tuning – O/S Tuning Performance Management of Oracle Real Application Clusters (RAC)
  • 23. Tools & Utilities • Explain (Execution Plan) • STATSPACK • Oracle Enterprise Manager (OEM) • Oracle’s Wait Interface • Oracle’s Event Interface • Quest Tools – Database Analysis – Spotlight on Oracle – Performance Analysis ( Version 5.0) Oracle Real Application Cluster | Murali Vallath | Slide: 23 Performance Management of Oracle Real Application Clusters (RAC)
  • 24. Execution Plan • Autotrace – SQL> SET AUTOTRACE TRACEONLY; – SQL> SET TIMING ON; • SQL TRACE – SQL_TRACE=TRUE • TKPROF – Usage: tkprof tracefile outputfile [explain= ][table= ][print= ] [insert= ][sys= ][sort= ] © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 24 Performance Management of Oracle Real Application Clusters (RAC)
  • 25. Instance Tuning: Memory Management • Memory Tuning – Each instance working with its own SGA / PGA • Shared / Synchronized Pool Sections of the SGA – Library Cache, Dictionary Cache, Buffers • PGA remains dedicated to each instance – Important to tune according to your application / RAC usage in mind – Important to tune the balance of SGA / PGA sizing holistically Performance Management of Oracle Real Application Clusters (RAC)
  • 26. Instance Tuning • TIMED_STATISTICS • TIMED_OS_STATISTICS • STATISTICS_LEVEL © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 26 Performance Management of Oracle Real Application Clusters (RAC)
  • 27. Oracle’s Event Interface • Event 10046 – Level 1 - Basic SQL TRACE – Level 4 – Collect Bind Variables – Level 8 - Collect Wait Events – Level 12 – Provides all the above levels © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 27 Performance Management of Oracle Real Application Clusters (RAC)
  • 28. Oracle’s Wait Interface • GV$SYSTEM_EVENT • GV$SESSION_EVENT • GV$SESSION_WAIT • GV$EVENT_NAME • GV$SYSSTAT • GV$SESSTAT © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 28 Performance Management of Oracle Real Application Clusters (RAC)
  • 29. Consistent Gets • Physical I/O (PIO) • Logical I/O (LIO) – buffer gets – consistent gets – db-block gets – buffer pinned count © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 29 Performance Management of Oracle Real Application Clusters (RAC)
  • 30. Important Parameters • CURSOR_SHARING • SESSION_CACHED_CURSORS © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 30 Performance Management of Oracle Real Application Clusters (RAC)
  • 31. Tuning Parallel Operators • PARALLEL_MIN_SERVERS • PARALLEL_MAX_SERVERS • PARALLEL_AUTOMATIC_TUNING • PARALLEL_THREADS_PER_CPU | Oracle Real Application Cluster |Murali Vallath | Slide: 31 Performance Management of Oracle Real Application Clusters (RAC)
  • 32. Instance Tuning • SHARED_POOL • DB_CACHE_SIZE • DB_CACHE_ADVICE • DB_KEEP_CACHE_SIZE • DB_RECYCLE_CACHE_SIZE • PGA_AGGREGATE_TARGET • SGA_MAX_SIZE © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 32 Performance Management of Oracle Real Application Clusters (RAC)
  • 33. Instance Tuning • DB_BLOCK_SIZE • DB_FILE_MULTIBLOCK_READ_COUNT Oracle World 2003, Paris | Performance Tuning RAC | Murali Vallath | Slide: 33 Performance Management of Oracle Real Application Clusters (RAC)
  • 34. Database Tuning • V$SEGEMENT_STATISTICS • V$SEGSTAT • V$RESOURCE_LIMIT You can also get segment level statistics from STATSPAK with a level 7 snapshot. © Summersky Enterprises LLC | Oracle Real Application Cluster || Murali Vallath | Slide: 34 Performance Management of Oracle Real Application Clusters (RAC)
  • 35. Oracle Wait Interface • buffer busy waits – This event occurs when more than one process is trying to access the same buffer in the buffer cache • db file sequential read – This wait indicates that the query requests a sequential access on the table to retrieve rows and is waiting for the read to complete • db file scattered read • log file Sync – This wait is encountered when a user session commits (or rollbacks), and the session’s redo information must be flushed to the redo log file by the LGWR. Performance Management of Oracle Real Application Clusters (RAC)
  • 36. Tuning the Cluster Cluster Level Tuning Oracle Real Application Cluster || Murali Vallath | Slide: 36 Oracle Real Application Cluster | Performance Management of Oracle Real Application Clusters (RAC)
  • 37. Tuning the Cluster Interconnect • ORADEBUG • SQL TRACE • STATSPACK – Level 5 - SQL Statements – Level 6 - SQL Plans and Plan Usage – Level 7 - Segment Level Statistics – Level 10 – Parent Child Latches © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 37 Performance Management of Oracle Real Application Clusters (RAC)
  • 38. Cache Fusion - Interconnect – Why Tuning? • When users on one instance request data held in cache on another instance, the holding instance transfers the data across a cluster interconnect – avoids any writes and reads to disk • The performance of the cluster interconnects is crucial to the performance of the RAC cluster and to the movement of cached data between instances – Performance is measured by determining the average time a block takes to reach the requested node i.e., from the moment that a block was requested by an instance to the moment the requesting instance received the block. Performance Management of Oracle Real Application Clusters (RAC)
  • 39. Tuning the Cluster Interconnect SQL>ORADEBUG SETMYPID SQL>ORADEBUG IPC SQL>EXIT SSKGXPT 0x3671e28 flags SSKGXPT_READPENDING info for network 0 socket no 9 IP 142.23.153.1 UDP 59084 sflags SSKGXPT_WRITESSKGXPT_UP info for network 1 socket no 0 IP 0.0.0.0 UDP 0 sflags SSKGXPT_DOWN context timestamp 0x4402d no ports © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 39 Performance Management of Oracle Real Application Clusters (RAC)
  • 40. Tuning the Cluster Interconnect: SELECT INST_ID, NAME, FILE#, CLASS#, MAX(XNC) FROM GV$CACHE_TRANSFER GROUP BY INST_ID, NAME, FILE#, CLASS# INST_ID NAME FILE# CLASS# MAX(XNC) ------ ---------- ---------- ---------- ---------- 1 IDL_UB2$ 1 4 231 1 PK_USPRL 4 1 47 1 PK_COMP 4 1 39 1 COMPANY 171 1 2849 © Summersky Enterprises LLC | Oracle Real Application Cluster |Murali Vallath | Slide: 40 Performance Management of Oracle Real Application Clusters (RAC)
  • 41. Tuning the Cluster Interconnect SELECT FILE#, BLOCK#, CLASS#, STATUS, XNC FROM GV$CACHE_TRANSFER WHERE NAME = 'COMPANY' AND FILE# = 171 FILE# BLOCK# CLASS# STAT XNC ------ ---------------- ---------- ---------- ---------- 171 898 1 XCUR 1321 171 1945 1 XCUR 27 171 1976 1 XCUR 19 171 2039 1 XCUR 849 Oracle Real Application Cluster |Murali Vallath | Slide: 41 Performance Management of Oracle Real Application Clusters (RAC)
  • 42. Tuning the Cluster Interconnect SELECT COMP_ID, COMP_NAME FROM COMPANY WHERE DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) = 898 / COMP_ID NAME ----------------- ------------------------ 3949 ARGUS CONSULTANTS 3952 CATAMARAN INC. 3957 PARIYAR BROTHERS INC. 3961 DIGITAL BROADCASTING INC. | Oracle Real Application Cluster Murali Vallath | Slide: 42 Performance Management of Oracle Real Application Clusters (RAC)
  • 43. Wait Events – Session Global Cache Service Waits – Global cache busy – Buffer busy due to global cache – Global cache CR request SELECT INST_ID, EVENT, p1 FILE_NUMBER, p2 BLOCK_NUMBER, WAIT_TIME FROM GV$SESSION_WAIT WHERE EVENT IN (‘global cache cr request', 'global cache busy', 'buffer busy due to global cache') | Oracle Real Application Cluster |Murali Vallath | Slide: 43 Performance Management of Oracle Real Application Clusters (RAC)
  • 44. Wait Events - Session SID SQL_ADDRESS EVENT P1 P2 P3 WT FO ---- ---------------- ------------------------ --- ------ ------------- ---- -- 32 0000000442174720 db file sequential read 18 25804 1 0 NO 32 00000004421739C0 db file sequential read 18 11786 1 0 NO 32 0000000443AB2528 global cache null to x 18 25804 17917873152 0 NO 36 0000000442178608 db file sequential read 18 24480 1 0 NO 36 0000000442178608 global cache s to x 18 1164 17934759808 0 NO 39 00000004421781C8 global cache open x 18 28712 17968379616 0 NO 45 00000004421760F8 db file sequential read 18 16482 1 0 NO 50 00000004448FA0C8 db file sequential read 18 11787 1 0 NO 77 0000000443D27A68 global cache null to x 18 19651 16978156672 0 NO SID SQL_ADDRESS EVENT P1 P2 P3 WT FO ---- ---------------- ------------------------ --- ------ ------------- ---- -- 90 00000004448FE370 db file sequential read 18 15422 1 0 NO 99 0000000443D7DDD8 global cache null to x 18 11888 17045147456 0 NO 106 0000000444901728 global cache s to x 18 7053 17397452288 0 NO 109 00000004448FE370 db file sequential read 18 17213 1 0 NO 117 0000000444901728 global cache null to s 18 7053 17397452288 0 NO 120 00000004448F9728 db file sequential read 18 11891 1 0 NO 125 00000004448F8FA0 db file sequential read 18 11864 1 0 NO 125 00000004448FE370 global cache cr request 18 23689 17028513088 0 NO Oracle Real Application Cluster |Murali Vallath | Slide: 44 Performance Management of Oracle Real Application Clusters (RAC)
  • 45. Global cache CR Request Latency COLUMN "AVG CR BLOCK RECEIVE TIME(ms)" FORMAT 9999999.9 SELECT b1.INST_ID, b2.VALUE "GCS CR BLOCKS RECEIVED", b1.VALUE "GCS CR BLOCK RECEIVE TIME", ((b1.VALUE / b2.VALUE)*10) "AVG CR BLOCK RECEIVE TIME(ms)" FROM GV$SYSSTAT b1, GV$SYSSTAT b2 WHERE b1.NAME = 'global cache cr block receive time' HIGH AND b2.NAME = 'global cache cr blocks received' AND b1.INST_ID = b2.INST_ID; INST_ID BLKS RECVD BLK RECV TIME AVG RECV TIME(ms) ------- ---------- -------------- ---------------- 1 2758 12394 443.78 2 1346 1457 10.8 2 rows selected. Oracle Real Application Cluster |Murali Vallath | Slide: 45 Performance Management of Oracle Real Application Clusters (RAC)
  • 46. Global Cache Service Request Latency 1. Average time to build consistent read block – Global cache cr block time / global cache cr block served 2. Average time to wait for log flush – Global cache cr block flush time / global cache cr blocks served 3. Average time to send completed block – Global cache cr block send time / global cache cr blocks served 4. Average LMS service time – Average latency (4 = 1 – 2 - 3) Oracle Real Application Cluster |Murali Vallath | Slide: 46 Performance Management of Oracle Real Application Clusters (RAC)
  • 47. Global cache cr request Time waited for a CR version of a block and cannot find it in its local cache and hence has made a request against a remote instance for a block Reasons for this wait event – Data Blocks Modified frequently on all instances – Cache miss on block requests – LMS cannot keep up with block requests – Latency on the interconnect – Full table scans _LM_DLMD_PROCS Oracle Real Application Cluster Murali Vallath | Slide: 47 Performance Management of Oracle Real Application Clusters (RAC)
  • 48. Analyze Global Enqueue Statistics • Collect global statistical data by querying V$SYSSTAT • Calculate average global enqueue time • Calculate average global lock convert time • Identify types of resources causing problems • Further analyze with V$LIBRARYCACHE and V$ROWCAHCE views Oracle Real Application Cluster |Murali Vallath | Slide: 48 Performance Management of Oracle Real Application Clusters (RAC)
  • 49. Collect Global Enqueue Statistics SELECT NAME, VALUE, FROM V$SYSSTAT WHERE NAME LIKE '%global lock%'; Oracle Real Application Cluster |Murali Vallath | Slide: 49 Performance Management of Oracle Real Application Clusters (RAC)
  • 50. Calculate Average Global Enqueue Time Average global enqueue time, in milliseconds 10 * (global lock get time) / (global lock sync gets + global lock async gets) Oracle Real Application Cluster |Murali Vallath | Slide: 50 Performance Management of Oracle Real Application Clusters (RAC)
  • 51. Calculate Average Global Lock Convert Time Average global lock convert time, in milliseconds 10 * (global lock convert time) / (global lock sync converts + global lock async converts) If average is larger than 20 to 30 milliseconds indicates concern and requires further investigation Oracle Real Application Cluster |Murali Vallath | Slide: 51 Performance Management of Oracle Real Application Clusters (RAC)
  • 52. Calculate Average Global Lock Convert Time Average global lock convert time, in milliseconds 10 * (global lock convert time) / (global lock sync converts + global lock async converts) If average is larger than 20 to 30 milliseconds indicates concern and requires further investigation Oracle Real Application Cluster |Murali Vallath | Slide: 52 Performance Management of Oracle Real Application Clusters (RAC)
  • 53. Further Analysis with V$LIBRARYCACHE - V$ROWCACHE - SELECT NAMESPACE, SELECT PARAMETER, DLM_LOCK_REQUESTS, DLM_REQUESTS, DLM_PIN_REQUESTS, DLM_CONFLICTS, DLM_PIN_RELEASES, DLM_RELEASES DLM_INVALIDATION_REQUESTS, FROM V$ROWCACHE; DLM_INVALIDATIONS FROM V$LIBRARYCACHE; Oracle Real Application Cluster |Murali Vallath | Slide: 53 Performance Management of Oracle Real Application Clusters (RAC)
  • 54. Other Waits Events • Global cache null to x and Global cache null to s – Block was transferred to another instance and requested again • Global cache open x and Global cache open s – Initial access to a particular data block by an instance • Buffer busy due to global cache – Counter to ‘buffer busy wait’ however occurs at the global cache level Oracle Real Application Cluster |Murali Vallath | Slide: 54 Performance Management of Oracle Real Application Clusters (RAC)
  • 55. Additional Views to Monitor • V$LOCK_ACTIVITY • V$CLASS_CACHE_TRANSFER • V$CACHE_TRANSFER • V$GES_CONVERT_LOCAL • V$GES_CONVERT_REMOTE • V$SYSTEM_EVENT Oracle Real Application Cluster |Murali Vallath | Slide: 55 Performance Management of Oracle Real Application Clusters (RAC)
  • 56. Monitoring Contention • RACdiag.sql Metalink Note# 135714.1 • STATSPACK • Oracle Enterprise Manager (OEM) • Spotlight on Oracle Oracle Real Application Cluster |Murali Vallath | Slide: 56 Performance Management of Oracle Real Application Clusters (RAC)
  • 57. Spotlight on Oracle Oracle Real Application Cluster || Murali Vallath | Slide: 57 Oracle Real Application Cluster |
  • 58. Performance Management of Oracle Real Application Clusters (RAC)
  • 59. Performance Management of Oracle Real Application Clusters (RAC)
  • 60. Performance Management of Oracle Real Application Clusters (RAC)
  • 61. Performance Management of Oracle Real Application Clusters (RAC)
  • 62. Performance Management of Oracle Real Application Clusters (RAC)
  • 63. Performance Management of Oracle Real Application Clusters (RAC)
  • 64. Database Analysis Oracle Real Application Cluster || Murali Vallath | Slide: 64 Oracle Real Application Cluster |
  • 65. RAC Interconnect Cache Transfer Latency • Doesn’t appear when non-RAC • Measures interconnect latency per node Performance Management of Oracle Real Application Clusters (RAC)
  • 66. Performance Analysis Oracle Real Application Cluster || Murali Vallath | Slide: 66 Oracle Real Application Cluster |
  • 67. Performance Analysis: RAC views in Quest Central 5.0 Performance Management of Oracle Real Application Clusters (RAC)
  • 68. Breaking out Cluster views into per Instance Views Performance Management of Oracle Real Application Clusters (RAC)
  • 69. Intra-Instance Activity Performance Management of Oracle Real Application Clusters (RAC)
  • 70. Thanks for Listening! www.quest.com

×