Chat now with support
Chat mit Support

SQL Optimizer for DB2 LUW 4.3.1 - User Guide

SQL Optimizer for IBM® DB2® LUW
About SQL Optimizer for IBM DB2 LUW Getting Started Options SQL Scanner SQL Optimizer SQL Formatter SQL Inspector Database Explorer SQL Repository Index Impact Analyzer Index Usage Analyzer User-Defined Temp Table Editor Functions SQL Functions SQL Information and Functions Activity Log
Tutorials About us Copyright

Format a SQL Statement

To format a SQL statement

  1. Click image\B_SQLFormatter.gif.

  2. If the SQL Optimizer window is opened, the selected SQL statement will automatically be copied to the SQL Formatter window. Otherwise, enter a SQL statement onto the left pane] of the SQL Formatter window.

  3. Click image\B_Format.gif.

The SQL Formatter will check the syntax of the SQL statement. Only if the syntax is correct will the SQL statement be formatted. The formatted SQL statement. is displayed in the right pane of the SQL Formatter window. 

To terminate the format process

  • Click image\B_AbortFormat.gif.

 

Host Variables within SQL Formatter

Declarations of variables within the SQL statement are allowed, prefixed with a ":" sign or without. If variables are recognized, they will be highlighted in red after executing the Format function.

Note: If table names are in red it indicates that the table and corresponding columns are not recognized. Check these things:

  • Is there sufficient privileges under the login user to access the table

  • Are you connected to the correct database and schema

  • Execute the Synchronize Data Dictionary function to make sure you have the most up-to-date database information in memory.

 

SQL Formatter Functions

Below is a list of available functions within the SQL Formatter window.

Button or Menu

Function

SQL Menu

image\B_Format.gif image\B_AbortFormat.gif

Format/Abort Format

Edit Menu

image\B_SendToSQLOptimizer.gif

Send to SQL Rewrite

Edit Menu

image\B_CopyToIndexExpert.gif

Send to Generate Indexes

File Menu

image\B_SaveSQLtoSQLRepository.gif

Save SQL to SQL Repository

File Menu

Open SQL from SQL Repository

 

SQL Inspector

Quest SQL Optimizer for IBM® DB2® LUWmaximizes SQL performance by automating the manual, time-intensive and uncertain process of ensuring that SQL statements are performing as fast as possible. SQL Optimizer analyzes, rewrites, and evaluates SQL statements within multiple database objects, files, or SQL statements captured by the DB2 Event Monitor. With SQL Optimizer, you can analyze and optimize all your problem SQL from multiple sources. SQL Optimizer also provides you a complete index optimization and plan change analysis solution, from index recommendations to simulated index impact analysis, through comparison of multiple SQL access plans.

SQL Optimizer provides you with the following main modules.

SQL Optimizer (including SQL Rewrite and Generate Indexes functions)

SQL Formatter

Database Explorer

SQL Scanner

SQL Inspector

SQL Repository

Index Impact Analyzer

Index Usage Analyzer

 

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen