GORAV_SQL_SELECT SAP (Structure Corresponding to Oracle Table GV$SQL) Structure details
Description: Structure Corresponding to Oracle Table GV$SQL
Related tables to GORAV_SQL_SELECT
Access table GORAV_SQL_SELECT
Structure field list including key, data, relationships and ABAP select examples
GORAV_SQL_SELECT is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Structure Corresponding to Oracle Table GV$SQL" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_GORAV_SQL_SELECT TYPE GORAV_SQL_SELECT.
The GORAV_SQL_SELECT table consists of various fields, each holding specific information or linking keys about Structure Corresponding to Oracle Table GV$SQL data available in SAP. These include SQL_TEXT (Start of SQL statement), SHARABLE_MEM (Shareable memory), PERSISTENT_MEM (Persistent memory), RUNTIME_MEM (Ephemeral frame used).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
SAP GORAV_SQL_SELECT structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
INST_ID | Oracle Instance ID | ORAINST_ID | INT4 | 10 | ORANUMBER | ||||
SQL_TEXT | Start of SQL statement | ORASQLTEXT | CHAR | 60 | CHAR60 | ||||
SHARABLE_MEM | Shareable memory | ORSHARMEM | INT4 | 10 | ORAMEMORY | ||||
PERSISTENT_MEM | Persistent memory | ORPERSMEM | INT4 | 10 | ORAMEMORY | ||||
RUNTIME_MEM | Ephemeral frame used | ORRUNTMEM | INT4 | 10 | ORAMEMORY | ||||
SORTS | Number of sorts | ORSORTS | INT4 | 10 | ORANUMBER | ||||
LOADED_VERSIONS | Context heap load flag | ORLOADVER | INT4 | 10 | ORANUMBER | ||||
OPEN_VERSIONS | Flag for child cursors is locked | OROPENVER | INT4 | 10 | ORANUMBER | ||||
USERS_OPENING | Number of users executing the statement | ORUSROPEN | INT4 | 10 | ORANUMBER | ||||
EXECUTIONS | Number of executions | OREXECNUM | DEC | 31 | ORAPNUMBER | ||||
FETCHES | Total Number of Fetches | ORAFETCHES | DEC | 31 | ORAPNUMBER | ||||
USERS_EXECUTING | Number of users executing | ORUSREXEC | INT4 | 10 | ORANUMBER | ||||
LOADS | Number of loads or reloads | ORALOADS | INT4 | 10 | ORANUMB5 | ||||
FIRST_LOAD_TIME | Time SQL statement loaded | ORALOAD_T | CHAR | 19 | ORATIMESTA | ||||
INVALIDATIONS | Invalidations for this child cursor | ORINVALID | INT4 | 10 | ORANUMBER | ||||
PARSE_CALLS | Parse calls for this child cursor | ORPARSEC | INT4 | 10 | ORANUMBER | ||||
DISK_READS | Disk reads for this child cursor | ORDISKR | DEC | 31 | ORAPNUMBER | ||||
BUFFER_GETS | Buffer gets for this child cursor | ORBUFFERG | DEC | 31 | ORAPNUMBER | ||||
ROWS_PROCESSED | Number of rows parsed | ORROWPROC | DEC | 31 | ORAPNUMBER | ||||
PARSING_USER_ID | ID of the user who built this child cursor | ORAPARSUSR | INT4 | 10 | ORANUMBER | ||||
ADDRESS | Address of statement in the cache | ORAADDRESS | CHAR | 16 | CHAR16 | ||||
HASH_VALUE | Hash value of statement | ORAHASHVAL | FLTP | 16(16) | ORAP16 | ||||
MODULE | Program Name | ORAMODULE | CHAR | 64 | ORACHAR64 | ||||
ACTION | Action name | ORAACTION | CHAR | 64 | CHAR64 | ||||
CPU_TIME | CPU Time in Miroseconds | ORACPUTIME | DEC | 31 | ORAPNUMBER | ||||
ELAPSED_TIME | Elapsed Time in Microseconds | ORAELAPSED | DEC | 31 | ORAPNUMBER | ||||
OUTLINE_CATEGORY | Category of outline, if used; otherwise blank | 0 | |||||||
OUTLINE_SID | Outline Session Identifier | 0 | |||||||
LAST_LOAD_TIME | Last Load Time | ORALASTLOA | CHAR | 19 | CHAR19 | ||||
END_FETCH_CNT | Number of Times Cursor Is Fully Executed | 0 | |||||||
PLSQL_EXEC_TIME | PL/SQL Execution Time | 0 | |||||||
DIRECT_WRITES | Number of Direct Writes for this Child Cursor | 0 | |||||||
SQL_ID | SQL_ID | 0 | |||||||
LAST_ACTIVE_TIME | Time at which the query plan was last active | 0 | |||||||
CLUSTER_WAIT_TIME | Cluster Wait Time (in Microseconds) | 0 | |||||||
APPLICATION_WAIT_TIME | Application Wait Time (in Microseconds) | 0 | |||||||
USER_IO_WAIT_TIME | User I/O Wait Time (in Microseconds) | 0 | |||||||
CONCURRENCY_WAIT_TIME | Concurrency Wait Time (in Microseconds) | 0 | |||||||
SQL_FULLTEXT | Full Text of an SQL Statement | 0 | |||||||
CLUSTER_WAIT_TIME | Cluster Wait Time (in Microseconds) | 0 | |||||||
USER_IO_WAIT_TIME | User I/O Wait Time (in Microseconds) | 0 | |||||||
SQL_FULLTEXT | Full Text of an SQL Statement | 0 |
Key field | Non-key field |
How do I retrieve data from SAP structure GORAV_SQL_SELECT using ABAP code?
As GORAV_SQL_SELECT is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on GORAV_SQL_SELECT as there is no data to select.How to access SAP table GORAV_SQL_SELECT
Within an ECC or HANA version of SAP you can also view further information about GORAV_SQL_SELECT and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects