지금 지원 담당자와 채팅
지원 담당자와 채팅

SQL Optimizer for Oracle 10.0 - User Guide

Welcome to SQL Optimizer
About SQL Optimizer SQL Optimization Workflow New in This Release Additional Resources Database Privileges Database Privileges Script Connect to the Database Windows Layout Customize Toolbars Keyboard Shortcuts Support Bundle Register SQL Optimizer Check for Updates SQL Operations
ALL PARTITION ALTER INDEX AND EQUAL ANTI JOIN BITMAP AND BITMAP COMPACTION BITMAP CONSTRUCTION BITMAP CONVERSION BITMAP INDEX BITMAP JOIN INDEX UPDATE BITMAP JOIN INDEX UPDATE STATEMENT BITMAP KEY ITERATION BITMAP MERGE BITMAP MINUS BITMAP OR BUFFER SORT CARTESIAN JOIN COLLECTION ITERATOR CONCATENATION CONNECT BY CONNECT BY PUMP COUNT COUNT STOPKEY CREATE AS SELECT CUBE SCAN DDL STATEMENT DELETE DOMAIN INDEX FAST FULL INDEX SCAN FILTER FIRST ROWS FIXED INDEX FIXED TABLE FOR UPDATE FULL INDEX SCAN FULL INDEX SCAN DESCENDING FULL INDEX SCAN (MIN/MAX) HASH GROUP BY HASH GROUP BY PIVOT HASH JOIN HASH JOIN BUFFERED HASH PARTITION HASH UNIQUE INDEX INDEX BUILD NON UNIQUE INDEX RANGE SCAN INDEX RANGE SCAN DESCENDING INDEX RANGE SCAN (MIN/MAX) INDEX SAMPLE FAST FULL SCAN INDEX SKIP SCAN INDEX SKIP SCAN DESCENDING INDEX UNIQUE SCAN INLIST ITERATOR INLIST PARTITION INSERT INTERSECTION INTO INVALID PARTITION ITERATOR PARTITION LOAD AS SELECT MAT_VIEW ACCESS MAT_VIEW REWRITE ACCESS MERGE JOIN MINUS MULTI-TABLE INSERT NESTED LOOPS OUTER JOIN PARTITION PARTITION HASH EMPTY PARTITION LIST PARTITION RANGE PROJECTION PX BLOCK ITERATOR PX COORDINATOR PX ITERATOR PX PARTITION PX PARTITION HASH ALL PX PARTITION LIST ALL PX PARTITION RANGE ALL PX RECEIVE PX SEND RANGE PARTITION RECURSIVE EXECUTION RECURSIVE WITH PUMP REFERENCE MODEL REMOTE SELECT SEMI JOIN SEQUENCE SINGLE PARTITION SINGLE RANGE PARTITION SORT SORT AGGREGATE SORT GROUP BY SORT GROUP BY CUBE SORT GROUP BY NOSORT SORT GROUP BY ROLLUP SORT JOIN SORT ORDER BY SORT UNIQUE SQL MODEL TABLE ACCESS TABLE ACCESS BY GLOBAL INDEX ROWID TABLE ACCESS BY INDEX ROWID TABLE ACCESS BY LOCAL INDEX ROWID TABLE ACCESS BY ROWID TABLE ACCESS BY USER ROWID TABLE ACCESS CLUSTER TABLE ACCESS FULL TABLE ACCESS HASH TABLE ACCESS SAMPLE TABLE QUEUE TEMP TABLE GENERATION TEMP TABLE TRANSFORMATION UNION UNION ALL UNION ALL (RECURSIVE WITH) UNPIVOT UPDATE VIEW VIEW PUSHED PREDICATE WINDOW
Optimize SQL
Create Optimize SQL Sessions Open Optimizer SQL Sessions Rewrite SQL Generate Execution Plan Alternatives
Optimize Indexes Batch Optimize SQL Scan SQL Inspect SGA Analyze Impact Manage Plans Configure Options SQL Optimizer Tutorials About Us Legal Notices

Test for Scalability (Batch Optimize)

When you optimize a SQL statement, it is important to consider the scalability of the alternatives SQL Optimizer generates before you implement them in your production database. SQL performance and scalability are two important factors that determine a database application's ability to handle an increase user load. The performance of a SQL statement changes as the number of users increase. Performance problems can arise when you use certain SQL statements under a heavy user load.

Note: This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To test for scalability

  1. Select the Batch Optimize SQL tab in the main window.
  2. Select a batch from the Batch List node in the Batch Job List pane.
  3. Select a job from the batch node.
  4. Select a SQL statement in the SQL List pane.

    Note: You can only test optimized statements with faster alternatives.

  5. Click the arrow beside and select an option.

  6. Review the following for additional information:

    Select SQL Statements Description

    Original SQL

    Select checkbox to include your original SQL statement when testing for scalability.

    SQL statement selected by the Best Alternative Criteria setting

    Select checkbox to include the best alternative statement when testing for scalability.

    SQL alternatives whose Total Elapsed Time is faster than the original SQL

    Select checkbox to include alternative statements with total elapsed times faster than the original SQL statement when testing for scalability.

    Tip: Select Top N SQL and enter a value to only include N number of statements. The default value is 5.

    SQL alternatives whose First Row Elapsed Time is faster than the original SQL

    Select checkbox to include alternative statements with first row elapsed times faster than the original SQL statement when testing for scalability.

    Tip: Select Top N SQL and enter a value to only include N number of statements. The default value is 5.

    Advanced Options Description

    Minimum number of virtual users

    Enter the minimum number of virtual users to use for scalability testing.

    Range: 1 to 1,000,000,000

    Maximum number of virtual users

    Enter the maximum number of virtual users to use for scalability testing.

    Range: 1 to 1,000,000,000

    Step value of virtual users

    Enter the number of virtual users to increase by for each step of scalability testing.

    Range: 1 to 1,000,000,000

    Distribution Model

    Select a latency think time distribution model:

    • None—Does not insert a latency think time between executions.
    • Absolute—Uses the value entered in the Duration field as the latency think time between executions.
    • Uniform—Uses a random duration between 1 millisecond and the value entered in the Duration field as the latency think time.
    • Negative Exponential—Uses a random duration based on a mathematical model weighted towards lower latency think times. The value entered in the Duration field is used for calculating think times.
    • Normal—Uses a random duration based on a mathematical model weighted towards average latency think times. The value entered in the Duration field is used for calculating think times.
    • Poisson—Uses a random duration based on a mathematical model weighted towards discrete latency think times. The value entered in the Duration field is used for calculating think times.

    Duration (milliseconds)

    Enter a duration in milliseconds.

    Note: How SQL Optimizer uses the value you enter depends on the distribution model selected.

    Execute Each SQL Statement by

    Select one of the following:

    • Duration (seconds)—Enter the duration of the scalability test in seconds.

    • Number of times—Enter the number of times to execute the SQL statement.

      Range: 1 to 100

 

Related Topic

Use Batch Optimize

Generate Optimized Scripts

This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To generate an optimized script.

  1. Select the Batch Optimize SQL tab in the main window.

  2. Select a batch from the Batch List node in the Batch Job List pane.
  3. Select a job in the Job List pane and click .

    Tip: Select the Replaced checkbox in the SQL Scanned and Optimized pane to include a statement in the optimized script.

  4. Click to save the optimized script.

  

Related Topics

Use Batch Optimize

Send to Optimize SQL (Batch Optimize)

This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To send a SQL statement to Optimize SQL

  1. Select the Batch Optimize SQL tab in the main window.
  2. Select a batch from the Batch List node in the Batch Job List pane.
  3. Select a job from the batch node.

  4. Select a SQL statement in the SQL List pane and click .

    Tip: Right-click a SQL statement in the Alternatives pane of Optimize SQL and select Mark as Best in Batch Optimize SQL to save it as the best alternative.

  

Related Topics

Use Batch Optimize

Send to Optimize Indexes (Batch Optimize)

You can send jobs to Optimize Indexes to generate an index set that improves the performance of the SQL statements in the job. See About Optimize Indexes for more information.

Note: This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To send a job to Optimize Indexes

  1. Select the Batch Optimize SQL tab in the main window.
  2. Select a batch from the Batch List node in the Batch Job List pane.
  3. Click . A Scan Code workload session opens in Optimize Indexes.
  4. The Choose SQL to Include in Workload dialog opens and displays the SQL that you sent from Batch Optimize SQL. Use this dialog to delete or modify SQL statements.
  5. See Optimize Indexes from Scanned Code Workload for more information about searching for new indexes from a scanned code workload.

  

Related Topics

관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택