Claims
- 1. A system for selectively preparing customized reports of query explain data for at least one query statement to be executed by a database, the system comprising:at least one report generation module configured to selectively retrieve, from the database, a subset of the query explain data for the at least one query statement and to format the subset for display to a user; a customization module configured to provide an interactive customization display on a display device; and a controls module configured to provide within the interactive customization display one or more controls for selectively designating subsets of the query explain data for the at least one query statement to be included in the report; wherein the at least one report generation module is selectively invokable by the one or more controls to include in the report the designated subsets of the query explain data for the at least one query statement.
- 2. The system of claim 1, further comprising:a query selection module configured to receive a user selection of the at least one query statement.
- 3. The system of claim 1, wherein the query statement comprises a Structured Query Language (SQL) statement.
- 4. The system of claim 1, wherein at least a portion of the query explain data is generated by the database in response to one of a dynamic explain command and a binding of a query statement.
- 5. The system of claim 1, wherein the query explain data comprises statement cost data comprising an estimated cost for executing the at least one query statement.
- 6. The system of claim 5, wherein the at least one report generation module comprises a statement cost module configured to selectively retrieve from the database the statement cost data for the at least one query statement.
- 7. The system of claim 6, wherein the statement cost data is stored within a statement table in the database.
- 8. The system of claim 7, further comprising:a querying module coupled to the statement cost module and configured to query the statement table to obtain therefrom the statement cost data.
- 9. The system of claim 1, wherein the query explain data comprises access path data comprising at least one access path step generated by the database to execute the at least one query statement.
- 10. The system of claim 9, wherein the at least one report generation module comprises an access path module configured to selectively retrieve from the database the access path data for the at least one query statement.
- 11. The system of claim 10, wherein the access path module is configured to selectively retrieve criteria details for at least one access path step selected from the group consisting of a sort, an index access, a multiple index access, a table space scan, a join, and a return.
- 12. The system of claim 10, wherein the access path data is stored within a plan table in the database.
- 13. The system of claim 12, further comprising:a querying module coupled to the access path module and configured to query the plan table in the database to obtain therefrom the access path data.
- 14. The system of claim 1, wherein the query explain data comprises object statistics data including statistics for at least one database object accessed by the at least one query statement.
- 15. The system of claim 14, wherein the at least one report generation module comprises an object statistics module configured to selectively retrieve from the database the object statistics for the at least one object accessed by the at least one query statement.
- 16. The system of claim 14, wherein the object statistics module is configured to selectively retrieve object statistics for at least one object selected from the group consisting of an index, a table, a table space, a column, and a column distribution.
- 17. The system of claim 16, wherein the object statistics data is stored within a catalog in the database.
- 18. The system of claim 17, further comprising:a querying module coupled to the object statistics module and configured to query the catalog to obtain therefrom the object statistics data.
- 19. The system of claim 1, wherein the query explain data comprises statement cost data including an estimated cost for executing the at least one query statement, access path data including at least one access path step generated by the database to execute the at least one query statement, and object statistics data including statistics for at least one database object accessed by the at least one query statement, the system further comprising:a statement cost module configured to selectively retrieve from the database the statement cost data for the at least one query statement; an access path module configured to selectively retrieve from the database the access path data for the at least one query statement; and an object statistics module configured to selectively retrieve from the database the object statistics for the at least one object accessed by the at least one query statement.
Parent Case Info
This application is a continuation of U.S. patent application Ser. No. 09/482,595 now U.S. Pat. No. 6,195,653, filed Jan. 13, 2000, for “System and Method for Selectively Preparing Customized Reports of Query Explain Data,” which is a continuation-in-part of U.S. patent application Ser. No. 08/949,636 now U.S. Pat. No. 6,243,703, filed Oct. 14, 1997, for “Interpreting Data using a Graphical User Interface,” both of which are incorporated herein by reference.
US Referenced Citations (7)
Continuations (1)
|
Number |
Date |
Country |
Parent |
09/482595 |
Jan 2000 |
US |
Child |
09/704806 |
|
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
08/949636 |
Oct 1997 |
US |
Child |
09/482595 |
|
US |