Chatee ahora con Soporte
Chat con el soporte

SQL Optimizer for SAP ASE 3.8 - User Guide

Introduction Tutorials Preferences Editor Functions SQL Information and Functions Performance Monitor SQL Inspector SQL Collector for Monitor Server SQL Scanner Index Advisor SQL Optimizer
SQL Optimizer Overview Optimization Engine Common Coding Errors in SQL Statements What Function Should l Use to Retrieve the Run Time? Unsatisfactory Performance Results SQL Optimizer Functions SQL Editor Optimized SQL Activity Log
SQL Worksheet SQL Formatter Database Explorer Code Finder Object Extractor SQL Repository Index Impact Analyzer Index Usage Analyzer Configuration Analyzer Migration Analyzer Abstract Plan Manager User-Defined Temp Tables SQL History Legal Information

Export a Group to a Table

Abstract Plan Manager > Export a Group to a Table

In order to move the saved abstract plan from one user to another or from one database to other, you first export the group in which it is saved to a table in your database, and then you import the group to another user or database.

To export a group

  1. In the left pane of the Abstract Plan Manager, right-click and select Group | Export.

  2. In the Export Plan window under the Export from section, select the name of the database, user, and abstract plan group where you saved the abstract plan.

  3. Under the Export to section, select the database and user. Enter a new table name to store the group in. You cannot use an existing table.

 

Related Topics

Abstract Plan Compatibility with Original SQL

Abstract Plan Manager Window

Open the Abstract Plan Manager

Abstract Plan Group Functions

Import an Abstract Plan for each User

Abstract Plan ID Functions

Use Saved Abstract Plans

Import an Abstract Plan for each User

Abstract Plan Manager > Import an Abstract Plan for each User

Once the abstract plan group is exported to a table in your database, you can import it to as many users or databases as you would like.

To import an abstract plan for each user

  1. In the left pane of the Abstract Plan Manager, right-click and select Group | Import.

  2. In the Import Plan window under the Import from section, select the database, user and table name where you exported the group.

  3. Under the Import to section, select the name of the database, user, and abstract plan group where you want to import the abstract plans.

 

Related Topics

Abstract Plan Compatibility with Original SQL

Abstract Plan Manager Window

Open the Abstract Plan Manager

Abstract Plan Group Functions

Export a Group to a Table

Abstract Plan ID Functions

Use Saved Abstract Plans

Abstract Plan ID Functions

Abstract Plan Manager > Abstract Plan ID Functions

The following are the functions that are performed on abstract plan IDs.

To use these functions

Right-click the plan ID in the left pane and select the function.

Item

Description

Drop

Drops the selected plan.

Copy

Copies selected plan to another group

Edit

Brings up the Edit Plan window so you can modify the abstract plan.

Find Abstract Plan with Text

Searches for a keyword in the SQL text and abstract plan.

Find Abstract Plan with ID

Searches for a specific plan ID

To use the Abstract Plans for specific users,you enable the use of the Abstract Plan for a specific group on a session level. Therefore, if you have saved Abstract plans in a specific group and you want to use them, you need to set Adaptive Server to use the Abstract Plans in that group. In your application you need to add the following commands:

Note: If the abstract plan is used by many users, you must have already imported the Abstract Plan for each user.

Viewing the text of the SQL statement

When you are viewing the Plan ID, you can view the Definition, the SQL Text, or the Abstract Plan Text by select the corresponding tab. When you are viewing SQL Text, you can format the text by selecting the Format SQL checkbox or the Word Wrap checkbox.

 

Related Topics

Abstract Plan Compatibility with Original SQL

Abstract Plan Manager Window

Open the Abstract Plan Manager

Abstract Plan Manager Overview

Export a Group to a Table

Import an Abstract Plan for each User

Use Saved Abstract Plans

Use Saved Abstract Plans

Abstract Plan Manager > Use Saved Abstract Plans

To use the abstract plan in your applications you have to either enable the abstract plan loading in the server-wide mode or enable the Abstract Plan loading for the session-level inside your application

The abstract plans that you want all applications to use must be saved in the ap_stdin group. If you want different abstract plans for different applications, you must save them in a group and associate it with a user.

Using Abstract Plans for Specific Applications

To use the Abstract Plans for specific users, you enable the use of the Abstract Plan for a specific group on a session level. Therefore, if you have saved abstract plans in a specific group and you want to use them, you need to tell Adaptive Server to use the abstract plans in that group. In your application you need to add the following commands:

Note: If the abstract plan is used by many users, you must have already imported the abstract plan for each user.

Example:

set plan load group_name on

go

*some queries*

go

set plan load off

go

Using the Abstract Plans Server Wide

You can enable Adaptive Server to use the abstract plans server-wide from the default group of ap_stdin.

To use the same abstract plan for all applications, the system administrator must set the abstract plan load sp_configure parameter to 1. Adaptive Server then uses the stored abstract plans from the default group ap_stdin.

Note: You can override the use of the abstract plan from ap_stdin for a specific SQL statement with the session-level "set plan load" command in the application.

 

Related Topics

Abstract Plan Compatibility with Original SQL

Abstract Plan Manager Window

Open the Abstract Plan Manager

Abstract Plan Group Functions

Export a Group to a Table

Import an Abstract Plan for each User

Abstract Plan ID Functions

Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación