Specific database information, such as tables, indexes, data volumes, and so on, from the data dictionary is used during the optimization process, SQL analysis, and other functions throughout program. This information can be loaded into memory of your PC each time you connect to a database. If your database has lots of database object, this process can take several moments, therefore you can choose to have the specific information loaded as it is needed in the program by clearing the Load database dictionary after database connection checkbox in the Preferences window.
If changes are made to the database while you are using the program, it is important to keep the information in the data dictionary up to date. Using the Synchronize Data Dictionary function will ensure that the changes to the database are directly reflected in program. This function does not break the connection to the database but updates the new database information in the memory on your computer.
To update the database information in the memory of the computer
Select Database | Synchronize Data Dictionary.
The SQL Inspector monitors SQL statements and extracts SQL performance statistics from the Adaptive Server monitoring tables. The SQL Inspector also extracts SQL statements from the QP Metrics (sysquerymetrics view). The SQL Inspector graphically displays and compares SQL activity statistics to diagnose performance bottlenecks. With the SQL Inspector you can identify the Top-N most resource intensive SQL statements.
Click .
If this is the first time you have used the SQL Inspector, the Add Inspector wizard displays over the SQL Inspector window. Otherwise, click .
In the General Information page, enter an Inspector name and select Monitor Tables.
In the Monitor Process page, specify whether you want to monitor the entire database server, any specific process IDs, or a connection identity, which allows you to focus on a specific user or application.
In the Retrieval Criteria page, specify how to retrieve records from the Adaptive Server monitoring tables.
In the Schedule Setting page, specify the monitoring schedule.
Click Finish.
Note: To use the SQL Inspector to access the monitoring tables, your database logon must have mon_role privilege.
Click .
If this is the first time you have used the SQL Inspector, the Add Inspector wizard displays over the SQL Inspector window. Otherwise, click .
In the General Information page, enter an Inspector name and select QP Metrics.
In the Retrieval Criteria page, select the Users and Group IDs for the SQL you would like to extract and the number of SQL statements you would like.
In the Schedule Time page, specify when to start the inspection.
Click Finish.
Click .
Review the Top-N SQL statements chart used for filtering statements and a table with detailed SQL performance statistics.
Click if you want to add multiple charts to filter captured SQL statements by specifying a Top-N SQL criteria of performance statistics.
To filter collected SQL statements, use the No. of Top Consumption SQL and Percentage of Total Consumption sliders.
Click the performance statistics line on the grid to view the SQL text in the bottom pane of the window.
Once you have identified potentially problematic SQL statements you can send the SQL using the Edit menu to the SQL Optimizer or Index Advisor.
The SQL Collector for Monitor Serverallows you to capture from the ASE Monitor Server any currently executing SQL statements according to your user-defined criteria. Each SQL statement captured is categorized according to suspected levels of performance problem.
Create the Collector
Click . The SQL Collector window displays, followed by the Add Collector wizard if you have not created a Collector before. If the Add Collector wizard does not display, click .
Enter a Collector name and the Adaptive Server Enterprise Monitor Server name. Check that the other settings satisfy your requirements. Define a monitoring end time on the Schedule page on the Add Collector wizard.
Click Finish.
Start the Collector
Click to begin capturing executing statements.
Details display in the SQL Collector grid as the information accumulates.
The monitoring process stops at the end time you define under the Schedule page in the Add Collector wizard.
View the results
To view the retrieve SQL statements, select the newly added Collector row.
In the SQL Text pane, click the tabs, SQL1, SQL2, and so forth to see the captured SQL statements. The SQL Information pane displays the query plan information.
Select one SQL statement you want to analyze for performance improvement. Click to optimize the SQL statement in the SQL Optimizer. Alternatively, you can also send the SQL statement to the Index Advisor. Click .
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center