Chat now with support
Chat mit Support

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

Filter Database Objects (Batch Optimize)

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

To filter a database object

  1. Click in the Database Objects page of the Add Batch Optimize Jobs wizard.

  2. Review the following for additional information:

    User Click and select the database object owner.
    Object Type Click and select a database object type.
    Filter

    Enter the filtering criteria using the % wildcard and click .

    Important: The filtering criteria is case sensitive so you must match the uppercase or lowercase characters of the database object name.

    Notes:

    • The % is used to represent multiple characters.
    • Select the Exclude filter checkbox to exclude database objects that meet the filtering criteria instead of including them.
  3. Select the database objects to add.

 

Related Topic

About Batch Optimization

Use Batch Optimize

Set Bind Variables (Batch Optimize)

In Batch Optimize SQL, when SQL containing bind variables is extracted, the bind values must be defined before SQL Optimizer can optimize the SQL. If an extracted SQL statement requires a bind value, a prompt displays in the Status column for the statement in the SQL List pane for the batch. A bind value must be provided before the SQL alternatives can be test run and the optimization process can finish.

You can also instruct SQL Optimizer to automatically search for bind values captured by Oracle and (if found) automatically run the SQL.

Troubleshooting: If an "Input bind variables" message displays when you optimize a statement without variables, make sure you spelled the column and table names correctly, you selected the correct database or user, and you selected a table or column that exists in the database.

Automatically Find and Use Bind Values

You can instruct SQL Optimizer to automatically search for the last bind value captured by Oracle. If found, SQL Optimizer will automatically test run the SQL using this value. If a value is not found, you are prompted to enter a value before the optimization process can finish.

To specify this option, go to Options | Batch Optimize SQL | Options. See Options (Batch Optimize SQL) for more information.

You can view the bind values for SQL statements in the Bind Variables pane.

To view the bind values used in SQL

  • Select a SQL statement and click the Bind Variables tab.

Manually Enter Bind Values

If the Wait for me to input the bind values before test run option is selected in the Options dialog or if SQL Optimizer is unable to find a bind value in Oracle, you must manually enter a value. Review the following procedure.

To set a bind variable

  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 the job from the batch node with the SQL statement containing the bind variable.

  4. Click the Input bind variables message in the SQL Status column of the SQL List pane and select Input Bind Variables.

  5. Specify a bind value and data type in the Setting Bind Variables dialog. To browse data for a value, use the Data Browser pane. To find values captured by Oracle, click Auto Fill. Review the following for additional information:

    Bind Variables Form  

    Datatype

    Click and select the variable datatype.

    Variable Value

    Enter a value for the variable. Leave the field blank to specify NULL.

    Data Browser  

    SELECT

    Click and select column references for the variables.

    FROM

    Click and select table references for the variables.

    Tip: Click to browse to tables in a different database.

    WHERE

    Enter a WHERE clause or click to select a previously entered clause.

    ORDER BY

    Enter an ORDER BY clause or click to select a previously entered clause.
    Auto Fill

    Click the Auto Fill button to find the last bind values captured by Oracle.

  

Related Topics

Use Batch Optimize

Change Schemas

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

To change schema

  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 the entry in the Schema column in the Job List pane and select a schema.

    Tips:

    • Click the entry in the Execution Schema column and select a schema to change the execution schema.

    • Select a job from the batch node to change the schema for an individual SQL statement.

Important: Batch Optimize SQL deletes SQL statements extracted from scanned jobs when you change the schema.

 

Manage Batches

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

To manage a batch

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

  2. Select the Batch List node in the Batch Job List pane.

    Tip: Right-click a Batch and select Add Jobs | option to add scan jobs to the selected batch.

  3. Review the information displayed for each batch in the Batch List pane.

    Tips:

    • Click the arrow beside and select an option to pause the batch optimization process.

    • Right-click a batch and select Rename Batch to rename the batch.
    • Select a batch to display a chart of optimization results in the Jobs Improved pane.

  

Related Topics  

Manage Jobs (Batch Optimize)

View Best Alternatives

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen