SAP ABAP Class CL_DB6_DESIGN_ADVISOR (DB6: abstraction of DB2 Design Advisor)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DB-DB6 (Application Component) DB2 Universal Database for UNIX / NT
⤷
STU6 (Package) DB6: Performance-Monitor (UNIX/Windows)
⤷
⤷
Properties
| Class | CL_DB6_DESIGN_ADVISOR | |
| Short Description | DB6: abstraction of DB2 Design Advisor | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | STU6 | DB6: Performance-Monitor (UNIX/Windows) |
| Created | 20050627 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 3 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_DB6_DESIGN_ADVISOR has no interface implemented.
Friends
Class CL_DB6_DESIGN_ADVISOR has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050728 | ||||
| 2 | Instance attribute | Private | Type reference (TYPE) | DB6PMADVIX-QUERYNO | 20050728 | ||||
| 3 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_DB6_DESIGN_ADVISOR | DB6: abstraction of DB2 Design Advisor | 20050627 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | DB6PMADVIX_TAB | DB6 CCMS: Table of DB6PMADVIX | 20090316 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050728 | ||||
| 6 | Instance attribute | Private | Type reference (TYPE) | DB6PMADVIX-QUERYNO | 20050728 | ||||
| 7 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_DB6_SYSCAT | DB6 CCMS: SYSCAT abstraction | 20050727 | |||
| 8 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_DB6_SYS | CL_DB6_TREE_NAVIGATOR | 20080603 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | clear all advise index related explain tables | 20050728 | |
| 2 | Instance method | Public | Constructor | do not use! use GET_INSTANCE instead | 20050627 | |
| 3 | Instance method | Public | Method | deletes all recommended indexes from ADVISE_INDEX | 20050805 | |
| 4 | Instance method | Public | Method | get advice for single statement | 20050712 | |
| 5 | Instance method | Public | Method | generate a SAP specific index name | 20050727 | |
| 6 | Instance method | Private | Method | get all registered deadlocks (DLMON_DEADLOCK) | 20050711 | |
| 7 | Instance method | Public | Method | get all registered deadlocks (DLMON_DEADLOCK) | 20080616 | |
| 8 | Instance method | Public | Method | search for stmt in EXPLAIN_STATEMENT and return explain_time | 20080619 | |
| 9 | Static method | Public | Method | 20050627 | ||
| 10 | Instance method | Public | Method | get tables refered by last advisor run | 20051010 | |
| 11 | Instance method | Private | Method | insert user-defined indexes into ADVISE_INDEX | 20050804 | |
| 12 | Instance method | Public | Method | get advice for single statement | 20050712 | |
| 13 | Instance method | Private | Method | replace advisor index name with SAP recommended index name | 20050727 | |
| 14 | Instance method | Private | Method | truncate all advise / explain tables | 20080616 | |
| 15 | Instance method | Private | Method | create SAP index names in ADVISE_INDEX | 20050727 |
Events
Class CL_DB6_DESIGN_ADVISOR has no event.
Types
Class CL_DB6_DESIGN_ADVISOR has no local type.
Method Signatures
Method CLEAR_ADVISE_EXPLAIN_TABLES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXCL_XPLTIME | Call by reference | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050728 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20050802 | |||
| 2 | DBA Cockpit: ADBC Errors | 20050728 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SYSTEM | Call by reference | Object reference (TYPE REF TO) | CL_DB6_SYS | 20080603 |
Method CONSTRUCTOR on class CL_DB6_DESIGN_ADVISOR has no exception.
Method DELETE_RECOMMENDED_INDEXES Signature
Method DELETE_RECOMMENDED_INDEXES on class CL_DB6_DESIGN_ADVISOR has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: Error calling DB2 UDB Design Advisor | 20051202 | ||
| 2 | DBA Cockpit: ADBC-Fehler | 20051202 |
Method EVALUATE_INDEX Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXPLAIN_TIME | Call by reference | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050802 | ||||
| 2 | INDEX_TAB | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_TAB | 20050804 | ||||
| 3 | QUERYNO | Call by reference | Type reference (TYPE) | DB6PMADVIX-QUERYNO | 20050802 | ||||
| 4 | REEXPLAIN | Call by reference | Type reference (TYPE) | ABAP_BOOL | Re-EXPLAIN if no EXPLAIN_TIME is returned | 20050815 | |||
| 5 | STMT | Call by reference | Type reference (TYPE) | STRING | 20050712 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: Error calling DB2 UDB Design Advisor | 20050802 | ||
| 2 | DBA Cockpit: ADBC Errors | 20050720 |
Method GENERATE_INDEX_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IID | Call by reference | Type reference (TYPE) | I | 20050808 | ||||
| 2 | INDEXNAME | Value transfer | Type reference (TYPE) | DB6TABNAML | DB6: Table Name | 20050727 | |||
| 3 | SCHEMA | Call by reference | Type reference (TYPE) | DB6TABNAML | DB6: Table Name | 20050727 | |||
| 4 | TABLE | Call by reference | Type reference (TYPE) | DB6TABNAML | DB6: Table Name | 20050727 | |||
| 5 | VIRT_INDEXES | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_GUI_TAB | 20050804 |
Method GENERATE_INDEX_NAME on class CL_DB6_DESIGN_ADVISOR has no exception.
Method GET_ADVISE_INDEX Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADVISE_TAB | Value transfer | Type reference (TYPE) | DB6CC_DB6PMADVIX_TAB | 20050711 | ||||
| 2 | EXPLAIN_TIME | Call by reference | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050727 | ||||
| 3 | VIRT_INDEXES | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_GUI_TAB | 20050815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20050802 |
Method GET_ADVISE_WORKLOAD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADVISE_WORKLOAD | Value transfer | Type reference (TYPE) | DB6PMADVWL_TAB | DB6: Table of DB6PMADVWL | 20080616 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20080616 |
Method GET_EXPLAIN_TIME_FOR_STMT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXPLAIN_TIME | Value transfer | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20080619 | ||||
| 2 | STATEMENT_NO | Call by reference | Type reference (TYPE) | DB6PMADVWL-STATEMENT_NO | 20080619 | ||||
| 3 | WORKLOAD_NAME | Call by reference | Type reference (TYPE) | DB6PMADVWL-WORKLOAD_NAME | 20080619 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: ADBC Errors | 20080619 |
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADVISOR | Value transfer | Object reference (TYPE REF TO) | CL_DB6_DESIGN_ADVISOR | DB6: abstraction of DB2 Design Advisor | 20050627 | |||
| 2 | SYSTEM | Call by reference | Object reference (TYPE REF TO) | CL_DB6_SYS | 20080603 |
Method GET_INSTANCE on class CL_DB6_DESIGN_ADVISOR has no exception.
Method GET_REFERED_TABLES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TABLE_LIST | Value transfer | Type reference (TYPE) | DB6CC_TABLE_LIST | 20051014 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: ADBC-Fehler | 20051010 |
Method INSERT_USERDEFINED_INDEXES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | INDEX_TAB | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_TAB | 20050804 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: Error calling DB2 UDB Design Advisor | 20050804 | ||
| 2 | DBA Cockpit: ADBC Errors | 20050804 |
Method RECOMMEND_INDEX Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ADVISE_PROTOCOL | Call by reference | Type reference (TYPE) | DB6CC_EXEC_PROTOCOL | 20080603 | ||||
| 2 | ADVISE_TAB | Value transfer | Type reference (TYPE) | DB6CC_DB6PMADVIX_TAB | 20050712 | ||||
| 3 | EXPLAIN_TIME | Value transfer | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050727 | ||||
| 4 | QUERYNO | Value transfer | Type reference (TYPE) | DB6PMADVIX-QUERYNO | 20050727 | ||||
| 5 | REEXPLAIN | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20050815 | ||||
| 6 | STMT | Call by reference | Type reference (TYPE) | STRING | 20050712 | ||||
| 7 | VIRT_INDEXES | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_GUI_TAB | 20050815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: Error calling DB2 UDB Design Advisor | 20050802 | ||
| 2 | DB6: Data Collector Errors | 20080603 | ||
| 3 | DBA Cockpit: ADBC Errors | 20050720 |
Method REPLACE_INDEX_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXPLAIN_TIME | Call by reference | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050727 | ||||
| 2 | LINE | Call by reference | Type reference (TYPE) | DB6PMADVIX | DB6 CCMS: ADVISE_INDEX explain table structure | 20050727 | |||
| 3 | VIRT_INDEXES | Call by reference | Type reference (TYPE) | DB6CC_DB6PMADVIX_GUI_TAB | 20050815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: ADBC Errors | 20050727 |
Method TRUNCATE_ADVISE_EXPLAIN_TABLES Signature
Method TRUNCATE_ADVISE_EXPLAIN_TABLES on class CL_DB6_DESIGN_ADVISOR has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: ADBC Errors | 20080616 |
Method UPDATE_INDEX_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXPLAIN_TIME | Call by reference | Type reference (TYPE) | DB6PMADVIX-EXPLAIN_TIME | 20050727 | ||||
| 2 | OLD_IXNAME | Call by reference | Type reference (TYPE) | DB6PMADVIX-NAME | 20050727 | ||||
| 3 | UPDATE_LINE | Call by reference | Type reference (TYPE) | DB6PMADVIX | DB6 CCMS: ADVISE_INDEX explain table structure | 20050727 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | DBA Cockpit: ADBC Errors | 20050727 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 710 |