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

SQL Optimizer for Oracle 9.3.3 - 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

Copy Execution Plans

You can copy an execution plan from the Execution Plan pane and paste it into another file as text or a bitmap image.

To copy an execution plan

  1. In an Execution Plan pane, right-click the execution plan and select Copy.
  2. You can then paste the plan using another application such as Microsoft Word or Notepad.
    • Tree Plan, DBMS_XPLAN, and Plain Language Plan views can be pasted as text or in bitmap format. Applications such as Microsoft Word allow you to choose the format using the Paste Special option.
    • You can use text applications such as Notepad to paste execution plans in text format.
    • You can use graphic applications such as Microsoft Paint to paste execution plans in bitmap format.

 

 

Related Topics

Retrieve Execution Plans

Review Execution Plans

Fill Missing Execution Plans

Batch Optimize SQL

About Batch Optimization

Use Batch Optimize SQL to automatically identify and optimize problematic SQL statements in your database environment. Before starting the batch optimization process, you must create a batch of jobs. Jobs consist of text with one or more SQL statements and may include database objects, application source code, or files created using Scan SQL or Inspect SGA.

Once you create a batch, Batch Optimize SQL extracts SQL statements from the jobs and identifies problematic statements. Next, Batch Optimize SQL rewrites the problematic statements and applies Oracle optimization hints to generate faster running alternatives. Finally, Batch Optimize SQL tests the alternatives generated to provide you with the best alternative. After reviewing the details for the best alternative, you can generate an optimized script for the original source code.

Notes:

  • You can test run SQL alternatives using a different schema or database connection than the one used for scanning and optimizing your SQL statements.

  • If you add a SQL statement with bind variables to a job, you must define the variables before beginning the batch optimization process. See Set Bind Variables (Batch Optimize) for more information.

 

Related Topics

Use Batch Optimize

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

To use batch optimize

  1. Select the Batch Optimize SQL tab in the main window.
  2. Click Add Code to Optimize in the Batch Job List pane and select All Types.

  3. Review the following for additional information:

    Connection Page Description

    Connection

    Click to select a previously created database connection.

    Tips:

    • Click to open the Connection Manager to create a new connection.

    • You can select an alternative connection for executing the SQL statement alternatives Batch Optimize generates.

    Database Objects Page Description

    Database objects

    Select a schema, database object type, or individual database object, and then click to add the object.

    Tip:

    • Click to browse for database objects.

    • Your database privileges determine if you can scan all selected database objects.

    Execute using schema

    Click and select an alternative schema for executing the SQL statement alternatives.
    Source Code Page Description

    Source code type

    Select Text/Binary files, Oracle SQL *Plus Script, or COBOL programming source code to indicate the source code type for the file or directory you want to scan.

    Add by file

    Click and browse to the files you want to add.

    Add by directory

    Click and browse to the directories you want to add.

    Note: Select the Include Sub-directory checkbox to scan sub-directories.

    Scan using schema

    Click and select a schema to scan.

    Execute using schema

    Click and select an alternative schema for executing the SQL statement alternatives.
    SQL Text Page Description

    SQL text

    Enter SQL statement text.

    Scan using schema

    Click and select a schema to scan.

    Execute using schema

    Click and select an alternative schema for executing the SQL statement alternatives.
    Scan SQL Page Description

    Group

    Select the Scanner group that contains the SQL statements you want to scan.

    Scan using schema

    Click and select a schema to scan.

    Execute using schema

    Click and select an alternative schema for executing the SQL statement alternatives.
    Inspect SGA Page Description

    Group

    Select the Inspector group that contains the SQL statements you want to scan.

    Scan using schema

    Click and select a schema to scan.

    Execute using schema

    Click and select an alternative schema for executing the SQL statement alternatives.

    Note: Batch Optimize helps you manage jobs by organizing them into batches. Use the Batch Info page to create a new batch or to add the current job to an existing batch.

  4. Select Batch List in the Batch Job List pane to view information about the jobs you created.

    The Batch List pane sorts information about your jobs by batches. Additional information displays in the Jobs Improved pane.

  5. Select a batch from the batch list node to see details for the batch in the Job List pane.

    The Job List pane displays the type of job, job status, and time of improvement for each job in the batch. Additional information displays in the SQL Classification and Cost and Elapsed Time Comparison panes for a selected job.

  

Related Topics  

Manage Batches

Manage Jobs (Batch Optimize)

관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택