We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published bySheldon Cleasby
Modified over 2 years ago
1 juliandyke.com © 2008 Julian Dyke RAC Performance Tuning Web Version - May 2008 Julian Dyke Independent Consultant
© 2008 Julian Dyke juliandyke.com 2 Agenda RAC Performance Tuning Tools Cluster Design Workload Management Optimizing Execution Plans Reducing Redo Reducing Contention Optimizing the Library Cache Data Design Application Design Partitioning
© 2008 Julian Dyke juliandyke.com 3 Tools
© 2008 Julian Dyke juliandyke.com 4 Tools AWR AWR is the best tuning resource: Requires Enterprise Manager Diagnostics Pack Can only be used with Enterprise Edition EM Diagnostics Pack licence covers: AWR ASH ADDM Enterprise Manager Performance Pages EM Diagnostics Pack therefore includes V$ACTIVE_SESSION_HISTORY DBA_HIST_% views DBMS_WORKLOAD_REPOSITORY package
© 2008 Julian Dyke juliandyke.com 5 Tools AWR Default snapshot interval is 60 minutes Good for trend analysis Probably too long for problem investigation Default retention period is 7 days Reduces space consumption (SYSAUX tablespace) Probably too short for problem investigation Can optionally create baselines Difference between two snapshots Reports can be generated in HTML or text format using Enterprise Manager SQL*Plus scripts
© 2008 Julian Dyke juliandyke.com 6 Tools ASH Require EM Diagnostics pack Based on sampling Useful data stored in V$ACTIVE_SESSION_HISTORY (recent) DBA_HIST_ACTIVE_SESS_HISTORY (historic) Reports can be generated in HTML or text format using Enterprise Manager SQL*Plus scripts Additional data can be obtained by drilling down into DBA_HIST_ACTIVE_SESS_HISTORY
© 2008 Julian Dyke juliandyke.com 7 Tools STATSPACK If AWR is not available use STATSPACK Only Oracle tool that can be used: with Standard Edition if you have not purchased EM Diagnostics Pack Package and repository must be manually installed and configured Repository must be manually managed and purged Snapshots cannot be co-ordinated across RAC instances Not integrated into kernel Snapshots can skew result data Includes time model statistics (by default) segment statistics (optional)
© 2008 Julian Dyke juliandyke.com 8 Tools DBMS_XPLAN Introduced in Oracle 9.2 Displays execution plans in EXPLAIN plan table Enhanced in Oracle 10.1 and above Additionally displays execution plans for: last statement executed by session child cursor in library cache child cursors stored in AWR Library cache Execution plan only exists until statement is aged out AWR Not all cursors are stored in AWR
© 2008 Julian Dyke juliandyke.com 9 Tools Trace For in-depth analysis it may be necessary to enable SQL trace In Oracle 10.1 and above use DBMS_MONITOR package Enables level 8 (wait events) by default Allows trace to be enabled For sessions For specific client identifiers For service / module / action For older versions use login triggers TKPROF now includes wait events Useful when talking to developers
© 2008 Julian Dyke juliandyke.com 10 Cluster Design
© 2008 Julian Dyke juliandyke.com 11 Cluster Design Multiple Databases Oracle Clusterware is relatively scalable RAC databases are less scalable If cluster contains multiple databases Minimize number of instances for each database Minimizes interconnect traffic Maximizes buffer cache efficiency Configure instances for each database on all nodes Maximize operational flexibility Shutdown and disable unused instances Dependent on Application Design Workload
© 2008 Julian Dyke juliandyke.com 12 Cluster Design Node Affinity Attempt to achieve node affinity for individual data blocks Minimizes interconnect traffic Maximizes buffer cache efficiency At segment level use: Database services Partitioning (range/list/system) At block level reduce number of rows per block using: PCTFREE storage clause ALTER TABLE MINIMIZE RECORDS_PER_BLOCK Filler columns e.g. FILLER CHAR(2000) Multiple block sizes
© 2008 Julian Dyke juliandyke.com 13 Cluster Design Dynamic Resource Mastering Every resource is mastered by an instance Initially resource masters is distributed across available instances If an individual node uses a specific resource frequently Resource can be remastered to local node In Oracle 9.2 Appears in documentation Not implemented In Oracle 10.1 Implemented at data file level Relatively high thresholds In Oracle 10.2 Implemented at segment level Relatively low thresholds
© 2008 Julian Dyke juliandyke.com 14 Workload Management
© 2008 Julian Dyke juliandyke.com 15 Workload Management Batch Processing Migrations and one-offs Can often run faster on a single-node Shutdown remaining nodes in cluster Batch processing - single node Use database services to achieve node affinity Specify preferred and available node Better than hard-coding instance names Batch processing - multiple nodes Use parallel execution Parallel statements can execute concurrently on multiple instances Configure using hints - not at object level
© 2008 Julian Dyke juliandyke.com 16 Optimizing Execution Plans
© 2008 Julian Dyke juliandyke.com 17 Optimizing Execution Plans Overview Causes of bad execution plans Missing indexes Inadequate optimizer statistics usually inaccurate selectivity predictions Often characterized by excessive amounts of logical I/O high elapsed times for statements gc cr multi block request waits gc buffer busy waits db file sequential / scattered read waits
© 2008 Julian Dyke juliandyke.com 18 Optimizing Execution Plans Missing Indexes In Oracle 10.1 and above, DBMS_ADVISOR can be used to identify missing indexes DBMS_ADVISOR can be used with a representative workload a single statement DBMS_ADVISOR can recommend indexes materialized views Requires Enterprise Manager Tuning Pack licence Prerequisite is Enterprise Manager Diagnostics Pack
© 2008 Julian Dyke juliandyke.com 19 Optimizing Execution Plans Missing Indexes To use the quick tune feature of the DBMS_ADVISOR, first create a directory for the results: CREATE OR REPLACE DIRECTORY advisor AS '/u01/app/oracle/advisor'; GRANT READ,WRITE ON DIRECTORY advisor TO PUBLIC; Execute the advisor against the target SQL statement: EXECUTE dbms_advisor.quick_tune ( - DBMS_ADVISOR.SQLACCESS_ADVISOR, - task_name => 'TASK1', - attr1 => 'SELECT c2 FROM t1 WHERE c1 = :b1'); Generate the advice script EXECUTE dbms_advisor.create_file ( - buffer => dbms_advisor.get_task_script (task_name => 'TASK1'), location => 'ADVISOR', - filename => 'task1.sql');
© 2008 Julian Dyke juliandyke.com 20 Optimizing Execution Plans Missing Indexes The advice script contains DDL statements to create the missing indexes For example: Rem SQL Access Advisor: Version Production Rem Rem Username: US01 Rem Task: TASK1 Rem Execution date: 07/01/ :07 Rem CREATE INDEX "US01"."T1_IDX$$_ " ON "US01"."T1" ("C1") COMPUTE STATISTICS;
© 2008 Julian Dyke juliandyke.com 21 Optimizer Execution Plans Bind Variable Capture In Oracle 10.1 and above, bind variable values for individual statements are periodically written to V$SQL_BIND_CAPTURE also known as O$SQL_BIND_CAPTURE Useful when trying to tune a bad execution plan Use bind variable values in SQL*Plus script Beware of implicit conversions especially for DATE types SELECT child_number,position,name,datatype_string,value_string FROM v$sql_bind_capture WHERE sql_id = '62crfkp6htg8p' ORDER BY 1,2; Child NumberPositionNameData TypeValue 01:B1NUMBER :B2NUMBER :B3NUMBER :B4NUMBER110
© 2008 Julian Dyke juliandyke.com 22 Optimizing Execution Plans System Statistics If your RAC cluster has symmetrical hardware then consider using system statistics System statistics are gathered using: EXECUTE DBMS_STATS.GATHER_SYSTEM_STATS; By default statistics are stored in SYS.AUX_STATS$ If available system statistics are used by the Cost-Based Optimizer to produce better execution plans System statistics are database-specific Do not use in RAC environments with asymmetric hardware
© 2008 Julian Dyke juliandyke.com 23 Optimizing Execution Plans Statistics Collection Avoid unnecessary object statistics collection Objects are invalidated by default Execution plans must be regenerated Use DBMS_STATS NO_INVALIDATE flag Consider setting statistics using DBMS_STATS package Useful with partitions Consider Stored Outlines SQL Profiles Better solutions exist in Oracle 11.1 e.g multi column histograms
© 2008 Julian Dyke juliandyke.com 24 Reducing Redo
© 2008 Julian Dyke juliandyke.com 25 Reducing Redo Eliminate Unused Indexes In Oracle and above, index monitoring can be used to determine which indexes are currently in use To enable index monitoring on index1 use ALTER INDEX index1 MONITORING USAGE; To check which indexes are currently being monitored use: SELECT index_name,monitoring FROM v$object_usage; To check which indexes have been used by the optimizer use: SELECT index_name, used FROM v$object_usage; To disable index monitoring on index1 use: ALTER INDEX index1 NOMONITORING USAGE;
© 2008 Julian Dyke juliandyke.com 26 Reducing Redo Unnecessary Column Updates For example: SELECT a,b,c,d,e,f,g,h,i,j INTO l_a,l_b,l_c,l_d,l_e,l_f,l_g,l_h,l_i,l_j FROM t1 WHERE z = :b1 FOR UPDATE; l_a = l_a + 1; UPDATE t1 SET a = :l_a; b = :l_b; c = :l_c; d = :l_d; e = :l_e; f = :l_f; g = :l_g; h = :l_h; i = :l_i; j = :l_j WHERE z = :b1;
© 2008 Julian Dyke juliandyke.com 27 Reducing Redo Unnecessary Column Updates When a column is updated with an unchanged value: Undo is generated for the old value Written back to undo block Written to online redo log Redo is generated for the new value Written to online redo log Both values will subsequently be: Copied to archived redo log Transported to standby database (if configured) Code on previous slide might be rewritten as: UPDATE t1 SET a = a + 1 WHERE z = :b1;
© 2008 Julian Dyke juliandyke.com 28 Reducing Redo Avoid Unnecessary Commits Avoid unnecessary commits For example: LOOP... INSERT INTO t1 VALUES (lx,ly,lz); COMMIT;... END LOOP; LOOP... INSERT INTO t1 VALUES (lx,ly,lz);... END LOOP; COMMIT; The COMMIT can often be moved outside the loop For example:
© 2008 Julian Dyke juliandyke.com 29 Reducing Contention
© 2008 Julian Dyke juliandyke.com 30 Reducing Contention Row Level Locking Avoid pessimistic locking using SELECT FOR UPDATE Setting row lock generates additional undo/redo Requires rollback if transaction uncommitted SELECT FOR UPDATE changes cannot be batched Individual undo / redo generated for each row If possible lock data when it is updated May require additional error handling
© 2008 Julian Dyke juliandyke.com 31 Reducing Contention Avoid Pessimistic Locking Pessimistic locking is usually implemented using SELECT FOR UPDATE statements For example: CURSOR c1 IS SELECT x,y FROM t1; LOOP FETCH FROM c1 INTO lx, ly; SELECT y,z FOR UPDATE FROM t2 WHERE x = lx; UPDATE t2 SET y = ly WHERE x = lx;.... END LOOP; CURSOR c1 IS SELECT x,y FROM t1; LOOP FETCH FROM c1 INTO lx, ly; UPDATE t2 SET y = ly WHERE x = lx;.... END LOOP; Might be rewritten without the SELECT FOR UPDATE statement
© 2008 Julian Dyke juliandyke.com 32 Reducing Contention Sequences Use sequences instead of tables to generate sequential numbers For example if the existing code is: SELECT MAX (c1) INTO :b1 FROM t1; UPDATE t1 SET c1 = c1 + 1; INSERT INTO t2 VALUES (:b1,....); Create a sequence CREATE SEQUENCE s1; INSERT INTO t2 (s1.NEXTVAL,....); The code can then be rewritten as:
© 2008 Julian Dyke juliandyke.com 33 Reducing Contention Sequences By default sequences have a cache size of 20 CREATE SEQUENCE s1; Each instance will allocate a batch of 20 sequence numbers the first time the sequence is accessed after instance startup Allocating a new batch of sequence numbers requires the SQ enqueue In databases with high insertion rates, it may be necessary to increase the sequence cache size to reduce contention for the SQ enqueue For example: CREATE SEQUENCE s1 CACHE 1000;
© 2008 Julian Dyke juliandyke.com 34 Reducing Contention Sequences Cached sequence numbers Will not necessarily be issued consecutively across instances Can include gaps caused by Rollbacks Aging out of dictionary cache sequence objects Instance restarts Instance failover / switchover Flushing cache
© 2008 Julian Dyke juliandyke.com 35 Reducing Contention Sequences Ordered Sequence Numbers If sequence requires ORDER clause RAC instances must use SV enqueue to coordinate sequence numbers Increases contention Monotonically increasing sequence numbers may caused contention for right hand index leaf blocks For RAC instances Set large cache size (e.g )
© 2008 Julian Dyke juliandyke.com 36 Reducing Contention Automatic Segment Space Management Introduced in Oracle Works in Oracle 9.2 with some exceptions Stable in Oracle 10.1 Default in Oracle 10.2 Uses bitmaps to manage segment space allocation Recommended for RAC databases Each instance uses a separate bitmap block Eliminates contention for freelists on extent header
© 2008 Julian Dyke juliandyke.com 37 Reducing Contention Reverse Key Indexes Introduced in Oracle 8.0 Designed to reduce contention for index insertions Column order is preserved Contents of each column are reversed Useful in RAC to reduce inter-instance contention However, no node affinity unless leading column(s) are node specific Only useful where rows are accessed using equality predicates
© 2008 Julian Dyke juliandyke.com 38 Reducing Contention Reverse Key Indexes Consider the following CREATE TABLE t1 (firstname VARCHAR2(30), surname VARCHAR2(30); INSERT INTO t1 VALUES ('Fernando','Alonso'); INSERT INTO t1 VALUES ('Felipe','Massa'); INSERT INTO t1 VALUES ('Kimi','Raikkonen'); INSERT INTO t1 VALUES ('Lewis','Hamilton'); INSERT INTO t1 VALUES ('Mark','Webber'); CREATE INDEX i1 ON t1 (firstname,surname) REVERSE; FIRSTNAMESURNAME epileFassaM imiKnenokkiaR kraMrebbeW odnanreFosnolA siweLnotilmaH The names are stored in the index as below:
© 2008 Julian Dyke juliandyke.com 39 Optimizing the Library Cache
© 2008 Julian Dyke juliandyke.com 40 Optimizing the Library Cache Overview Use bind variables Ensure statements are textually identical Including comments and bind variable names Beware of introducing bind variable peeking issues If literal values hard coded Consider using cursor sharing FORCE or SIMILAR SIMILAR can still generate large numbers of child cursors Minimize occurrences of multiple child cursors caused by: Differences in optimizer environment parameters e.g. enabling trace Differences in bind variable type / length Differences in NLS settings for sorts / NUMBER
© 2008 Julian Dyke juliandyke.com 41 Optimizing the Library Cache Hard Parsing In a RAC environment hard parsing is particularly expensive Global locks must be obtained for all tables referenced in the statement before it can be optimized Ensure library cache is large enough to avoid cursors ageing out before they are reused Use bind variables Avoid invalidating cursors Use cursor sharing if necessary
© 2008 Julian Dyke juliandyke.com 42 Optimizing the Library Cache Bind Variables Statements using literals should be rewritten to use bind variables: INSERT INTO t1 VALUES (1,100); INSERT INTO t1 VALUES (2,200); INSERT INTO t1 VALUES (3,300); can be rewritten as: lx := 1; ly := 100; INSERT INTO t1 VALUES (:lx, :ly); lx := 2; ly := 200; INSERT INTO t1 VALUES (:lx, :ly); lx := 3; ly := 300; INSERT INTO t1 VALUES (:lx, :ly);
© 2008 Julian Dyke juliandyke.com 43 Optimizing the Library Cache Soft Parsing Soft parsing occurs when parent cursor is already in the library cache the first time a session accesses the parent cursor Need to check existing cursor is valid for new session parameters object access privileges (security) Soft parsing can be reduced Not closing cursors in application Using Session Cursor Cache Using CURSOR_SPACE_FOR_TIME parameter
© 2008 Julian Dyke juliandyke.com 44 Optimizing the Library Cache CURSOR_SHARING parameter For applications which do not use binds consider using cursor sharing Introduced in Oracle Stable in Oracle and above Values are EXACT - Default - no cursor sharing FORCE and above - replace all literal values with pseudo-bind variables SIMILAR and above - replace "safe" literal values with pseudo-bind variables
© 2008 Julian Dyke juliandyke.com 45 Optimizing the Library Cache SESSION_CACHED_CURSORS parameter Session cursor cache allows each session to pin multiple statements cached in SGA Reduces amount of hard parsing Use parameter SESSION_CACHED_CURSORS to specify number of cached cursors to be pinned Default value is 20 in Oracle Requires small amount of space in PGA Pins cursor space in SGA heaps Can result in ORA if set too high
© 2008 Julian Dyke juliandyke.com 46 Optimizing the Library Cache CURSOR_SPACE_FOR_TIME parameter Keeps open cursors pinned between executions Can relieve concurrency pressure Increases space required to hold cursors Boolean parameter which defaults to FALSE Not necessary in Oracle and above Mutexes have replaced library cache latches and pins for relevant cursor operations
© 2008 Julian Dyke juliandyke.com 47 Data Design
© 2008 Julian Dyke juliandyke.com 48 Data Design Avoid CHAR columns Avoid CHAR columns where the column length > 1 Use VARCHAR2 columns instead CHAR columns require more disk space take more space in buffer cache For example, consider the amount of space required to store 'FERRARI': ERRARIF CHAR(10) ERRARIF VARCHAR2(10) CHAR columns are space-padded to their maximum length VARCHAR2 columns are not space-padded 10 7
© 2008 Julian Dyke juliandyke.com 49 Data Design Do not store dates as VARCHAR2 For example if a table contains 100 values for each day over the past 5 years Using a DATE column data is evenly distributed: Using a VARCHAR2 column data is bunched: Affects CBO estimates for range scans
© 2008 Julian Dyke juliandyke.com 50 Data Design Use NULL values Use NULL to represent unknown values NULL takes a maximum of one byte in row Trailing NULLs do not take any space in row NULL values are not indexed Do not use artificial NULL values such as Space character (0x20) for VARCHAR2 -1 for NUMBER 01-JAN-1980 for DATE Artificial NULL values Require more disk space Require indexing Skew histograms
© 2008 Julian Dyke juliandyke.com 51 Data Design Column Values Avoid long constant values such as ENABLED and DISABLED TRUE and FALSE YES and NO Often found in STATUS columns Particularly expensive for very large tables e.g. > 10 million rows Consume space on disk space in buffer cache and potentially space in indexes Use a numeric constant e.g. 1,2 etc If possible use NULL for most popular value
© 2008 Julian Dyke juliandyke.com 52 Data Design Column Values For example consider a table containing 10 million invoices of which 10,000 are printed each night CREATE TABLE invoice (..... print_flag varchar2(1).... ); CREATE INDEX i_invoice1 ON invoice (print_flag); IF print_flag = 'Y' THEN -- print invoice print_flag := 'N'; END IF; If PRINT_FLAG takes the values NULL or 'Y' I_INVOICE1 will only contain 10,000 rows If PRINT_FLAG can take the values 'N' or 'Y' I_INVOICE1 will contain 10,000,000 rows
© 2008 Julian Dyke juliandyke.com 53 Data Design Miscellaneous Avoid using LONG columns if they will be frequently updated Avoid using VARRAY columns if elements will be Selected individually Updated individually In general avoid both LONG and VARRAY columns if they will exceed one data block Beware of contention for LOB index Used for all external LOBs Not reported in data dictionary views
© 2008 Julian Dyke juliandyke.com 54 Application Design
© 2008 Julian Dyke juliandyke.com 55 Application Design DML Perform DML on sets of rows INSERT, UPDATE and DELETE sets rather than individual rows Avoid procedural code PL/SQL, PRO*C, JDBC etc Use bulk operations for DML Set array size Use PL/SQL FORALL and BULK statements Consider using analytic queries Reduce number of block visits per query
© 2008 Julian Dyke juliandyke.com 56 Application Design Avoid Procedural Code - INSERT Avoid code which processes individual rows For example: CURSOR c1 IS SELECT x,y,z FROM t1; LOOP FETCH FROM c1 INTO lx, ly, lz;.... INSERT INTO t2 (x,y,z) VALUES (lx, ly, lz);.... END LOOP; Might be rewritten as: INSERT INTO t2 (x,y,z) SELECT x,y,z FROM t1;
© 2008 Julian Dyke juliandyke.com 57 Application Design Avoid Procedural Code - UPDATE From the previous example CURSOR c1 IS SELECT x,y FROM t1; LOOP FETCH FROM c1 INTO lx, ly; UPDATE t2 SET y = ly WHERE x = lx;.... END LOOP; Might be rewritten as: UPDATE t2 SET t2.y = ( SELECT t1.y FROM t1 WHERE t1.x = t2.x );
© 2008 Julian Dyke juliandyke.com 58 Application Design Avoid DDL Statements Avoid unnecessary DDL Statements Avoid dynamic schema changes Temporary tables are often created and dropped during report generation For example: LOOP... CREATE TABLE t1 (...);... DROP TABLE t1;... END LOOP; Use global temporary tables or TRUNCATE statement
© 2008 Julian Dyke juliandyke.com 59 Application Design Read Consistency Avoid reading recently updated blocks on other instances Use Database services to ensure node affinity Minimize transaction lengths Maximize COMMIT frequency Minimize undo generation Drop unused indexes Compress data columns e.g. use D or E instead of DISABLED or ENABLED Use nullable columns Use nullable indexes e.g. NULL / Y Avoid updating columns where data has not changed Before and after values are saved even for unchanged data
© 2008 Julian Dyke juliandyke.com 60 Application Design Inter-Instance Messages Minimize use of DROP and TRUNCATE Require inter-instance synchronization to invalidate block ranges in buffer caches DELETE may be more efficient for small tables Use Global Temporary Tables where possible Avoid using parallel query in OLTP workloads Parallel queries read blocks directly into local buffers Require inter-instance synchronization to ensure dirty blocks in remote buffer caches are flushed back to disk Optimizer may not consider synchronization costs when selecting a parallel execution plan
© 2008 Julian Dyke juliandyke.com 61 Application Design Array Fetch Use array operations for SELECT statements Reduces number of network packets required to FETCH data SET ARRAYSIZE 50 In JDBC array size defaults to 10 To set the array size for a connection to 20 rows use: ((OracleStatement)statement).setRowPrefetch (50); To set the array size for an individual statement to 50 rows use: ((OracleConnection)conn).setDefaultRowPrefetch (20); In SQL*Plus array size defaults to 15 To set the array size to 50 use
© 2008 Julian Dyke juliandyke.com 62 Application Design Batch Updates Use batch updates for DML statements (INSERT, UPDATE, and DELETE) In JDBC, default batch size is 1 row To set the batch size for a connection to 20 rows use: ((OracleConnection)conn).setDefaultExecuteBatch (20); To set the batch size for an individual statement to 50 rows use: ((OraclePreparedStatement)statement).setExecuteBatch (20); To send a batch of rows at any time use: ((OraclePreparedStatement)statement).sendBatch ();
© 2008 Julian Dyke juliandyke.com 63 Application Design PL/SQL Bulk Collect DECLARE row table l_c3 NUMBER; CURSOR c1 IS SELECT c3 FROM t1; BEGIN OPEN c1; LOOP FETCH c1 INTO l_c3; seconds EXIT WHEN c1%NOTFOUND; END LOOP; CLOSE c1; END; DECLARE row table TYPE NUMTYPE IS TABLE OF NUMBER(6) INDEX BY BINARY_INTEGER; l_c3 NUMTYPE; CURSOR c1 IS SELECT c3 FROM t1; BEGIN OPEN c1; LOOP FETCH c1 BULK COLLECT INTO l_c3; seconds EXIT WHEN c1%NOTFOUND; END LOOP; CLOSE c1; END;
© 2008 Julian Dyke juliandyke.com 64 Application Design PL/SQL FORALL DECLARE TYPE NUMTYPE IS TABLE OF NUMBER(6) INDEX BY BINARY_INTEGER; TYPE NAMETYPE IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER; l_c1 NUMTYPE; l_c2 NAMETYPE; l_c3 NUMTYPE; BEGIN FOR i IN LOOP l_c1(i) := i; l_c2(i) := LPAD (TO_CHAR (i),30,0); l_c3(i) := MOD (i, 100); END LOOP; FOR i IN LOOP-- FOR Loop – 28 seconds INSERT INTO t1 VALUES (l_c1 (i), l_c2 (i), l_c3(i)); END LOOP; FORALL f IN LOOP-- FORALL Loop – 4 seconds INSERT INTO t1 VALUES (l_c1 (i), l_c2 (i), l_c3(i)); END;
© 2008 Julian Dyke juliandyke.com 65 Summary Issues almost invariably indicated in Top Five timed events in AWR / STATSPACK reports Further investigation usually required to pinpoint problem When you know what the problem is you can almost always find it in AWR / STATSPACK reports Not always obvious without prior knowledge AWR / STATSPACK not very good with statements using literal values
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
11 1 Chapter 11 Database Performance Tuning and Query Optimization Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
13 Copyright © 2005, Oracle. All rights reserved. Using the SQL Access Advisor.
×1= 9 4 1×1= 1 5 8×1= 8 6 7×1= 7 7 8×3= 24.
Note: A bolded number or letter refers to an entire lesson or appendix. A Adding Data Through a View ADD_MONTHS Function 03-22, 03-23, 03-46,
Copyright © Action Works 2008 All Rights Reserved - Photos by David D. Kempster 1.
Break Time Remaining 10:00. Break Time Remaining 9:59.
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
DLMSO Classroom Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less.
13:00 Clock will move after 1 minute PPT – VCIC Timer 15.ppt.
Hash Tables Briana B. Morrison Adapted from William Collins.
Solving a Sudoku Puzzle By Marlene Walther ATeacherFirst.com.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
David Burdett May 11, 2004 Package Binding for WS CDL.
Harvard University Oracle Database Administration Session 2 System Level.
Go-Faster Consultancy Ltd.1 Experiences of Global Temporary Tables in Oracle 8.1 David Kurtz Go-Faster Consultancy Ltd.
9 Copyright © 2005, Oracle. All rights reserved. Materialized Views.
Welcome. © 2008 ADP, Inc. 2 Overview A Look at the Web Site Question and Answer Session Agenda.
Mr. Deven Patel, AITS, Rajkot. 1 Process Description and Control Chapter 3.
1 Budapest University of Technology and Economics, BME, 1872 Budapest University of Technology and Economics, BME, 1872 Happy New Year 2012.
5 minutes 4 minutes 3 minutes 2 : 00 1 : 59 1 : 58.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 - Oracle Server Architecture Overview Oracle Database -Data files, Control files, Redo log files Other Files -Parameter file, Password file, Archive.
3 : 00 2 : 59 2 : 58 2 : 57 2 : 56 2 : 55 2 : 54.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
WorkKeys Internet Version Training Groups and Batch Loading Mary Lewis Systems Solutions Manager November 2013.
CALENDAR NEW CALENDAR
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
1A B C1A B C 2A B C2A B C 3A B C3A B C 4A B C4A B C 5A B C5A B C 6A B C6A B C 7A B C7A B C 8A B C8A B C 9A B C9A B C 10 AA B CBC 11 AA B CBC 12 AA B CBC.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 24.1 Test-Driving the Ticket Information Application.
PP Test Review Sections 6-1 to 6-6 Mrs. Rivas 1. 2.
Symantec 2010 Windows 7 Migration Global Results.
This PowerPoint is based on slides from: Byron Bush, Scott S. Hilpert and Lee, JeongKyu.
1 Types of selection structures if Single-selection structure Selects or ignores a single action or group of actions if/else Double-selection structure.
© 2008 FedEx. All rights reserved. FedEx Ship Manager ® at fedex.com Shipping Administration Presentation for administrators.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
9 Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
1 of 27 DA1241 Archive Companies Last updated: March-2004 DA1241 Archive Companies.
STATISTICS HYPOTHESES TEST (I) Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
© 2016 SlidePlayer.com Inc. All rights reserved.