ORA_S_GV_ACTIVE_SESSION_HIS SAP (Oracle View: gv$active_session_history) Structure details
Description: Oracle View: gv$active_session_history
Related tables to ORA_S_GV_ACTIVE_SESSION_HIS
Access table ORA_S_GV_ACTIVE_SESSION_HIS
Structure field list including key, data, relationships and ABAP select examples
ORA_S_GV_ACTIVE_SESSION_HIS 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 "Oracle View: gv$active_session_history" 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_ORA_S_GV_ACTIVE_SESSION_HIS TYPE ORA_S_GV_ACTIVE_SESSION_HIS.
The ORA_S_GV_ACTIVE_SESSION_HIS table consists of various fields, each holding specific information or linking keys about Oracle View: gv$active_session_history data available in SAP. These include SAMPLE_ID (Oracle monitoring: Sample ID (ID of sample data)), SAMPLE_TIME (Oracle monitoring: Sample timestamp), SESSION_ID (Oracle monitoring: Session ID), SESSION_SERIAL (Oracle monitoring: SERIAL#: Session serial number).. 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 ORA_S_GV_ACTIVE_SESSION_HIS 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 monitor: Instance ID | ORA_INST_ID | DEC | 22 | ORA_INST_ID | ||||
SAMPLE_ID | Oracle monitoring: Sample ID (ID of sample data) | ORA_SAMPLE_ID | DEC | 22 | ORA_DEC_22 | ||||
SAMPLE_TIME | Oracle monitoring: Sample timestamp | ORA_SAMPLE_TIME | CHAR | 25 | |||||
SESSION_ID | Oracle monitoring: Session ID | ORA_SESSION_ID | DEC | 22 | ORA_DEC_22 | ||||
SESSION_SERIAL | Oracle monitoring: SERIAL#: Session serial number | ORA_SERIAL | DEC | 22 | ORA_SERIAL | ||||
USER_ID | Oracle monitoring: USER#: Oracle user identifier | ORA_USER | DEC | 22 | ORA_USER | ||||
SQL_ID | Oracle monitoring: SQL_ID | ORA_SQL_ID | CHAR | 13 | ORA_SQLID | ||||
SQL_STATEMENT | Oracle Monitoring: SQLSTRING | ORA_SQLSTRING | CHAR | 64 | ORA_SQLSTRING | ||||
SQL_CHILD_NUMBER | Oracle monitoring: SQL child number | ORA_SQLCHILDNUM | INT4 | 10 | |||||
SQL_PLAN_HASH_VALUE | Oracle monitoring: SQL_HASH_VALUE: SQL statement hash | ORA_SQL_HASH_VALUE | DEC | 22 | ORA_SQL_HASH_VALUE | ||||
SQL_OPCODE | Oracle Monitoring: Oracle OPCODE | ORA_OPCODE | INT4 | 10 | |||||
SQL_OPNAME | SQL command name | ORA_OPNAME | CHAR | 64 | |||||
SQL_PLAN_LINE_ID | SQL plan line ID | ORA_SQL_PLAN_LINE_ID | DEC | 22 | |||||
SESSION_STATE | Oracle Monitoring: Oracle Session State | ORA_SESSION_STATE | CHAR | 7 | |||||
SQL_PLAN_OPERATION | Plan operation name | ORA_SQL_PLAN_OPERATION | CHAR | 30 | |||||
QC_SESSION_ID | Oracle monitoring: Query Coordinator Session ID | ORA_QC_SESSION_ID | DEC | 22 | ORA_DEC_22 | ||||
SQL_PLAN_OPTIONS | Plan operation options | ORA_SQL_PLAN_OPTIONS | CHAR | 30 | |||||
SQL_EXEC_ID | SQL execution identifier | ORA_SQL_EXEC_ID | DEC | 22 | |||||
QC_INSTANCE_ID | Oracle monitoring: Query Coordinator Instance ID | ORA_QC_INST_ID | DEC | 22 | ORA_INST_ID | ||||
SQL_EXEC_START | Time when the execution of the SQL started | ORA_SQL_EXEC_START | CHAR | 30 | |||||
BLOCKING_SESS_ID | Oracle monitoring: Blocking session ID | ORA_BLOCKING_SESS_ID | DEC | 22 | ORA_DEC_22 | ||||
SERVICE_HASH | Oracle Monitoring: Oracle Service Hash | ORA_SERVICE_HASH | DEC | 22 | ORA_DEC_22 | ||||
BLOCKING_SESS_STATUS | Oracle Monitoring: Blocking Session Status | ORA_BLOCKING_SESS_STATUS | CHAR | 11 | |||||
SESSION_TYPE | Oracle Monitoring: Oracle Session Type | ORA_SESSION_TYPE | CHAR | 10 | |||||
BLOCKING_SESS_SERIAL | Oracle monitoring: Blocking session serial number | ORA_BLOCKING_SESS_SERIAL | DEC | 22 | ORA_SERIAL | ||||
EVENT | Oracle Monitoring: Oracle Event Name | ORA_EVENT_NAME | CHAR | 64 | |||||
SESSION_STATE | Oracle Monitoring: Oracle Session State | ORA_SESSION_STATE | CHAR | 7 | |||||
EVENT_ID | Oracle Monitoring: Oracle Event ID | ORA_EVENT_ID | CHAR | 38 | |||||
TOP_LEVEL_SQL_ID | SQL identifier of the top level SQL statement | ORA_TOP_LEVEL_SQL_ID | CHAR | 13 | |||||
EVENT_NUM | Oracle Monitoring: Oracle Event Number | ORA_EVENT_NUMBER | INT4 | 10 | |||||
TOP_LEVEL_SQL_OPCODE | Indicates what phase of operation the top level SQL stmt | ORA_TOP_LEVEL_SQL_OPCODE | DEC | 22 | |||||
SEQ_NUM | Oracle monitoring: SEQ# | ORA_SEQ | DEC | 22 | ORA_SEQ | ||||
QC_SESSION_ID | Oracle monitoring: Query Coordinator Session ID | ORA_QC_SESSION_ID | DEC | 22 | ORA_DEC_22 | ||||
P1 | Oracle monitoring: ORA_P1: First additional parameter | ORA_P1 | DEC | 22 | ORA_P1 | ||||
QC_INSTANCE_ID | Oracle monitoring: Query Coordinator Instance ID | ORA_QC_INST_ID | DEC | 22 | ORA_INST_ID | ||||
P2 | Oracle monitoring: ORA_P2: Second additional parameter | ORA_P2 | DEC | 22 | ORA_P2 | ||||
BLOCKING_INST_ID | Instance number of the blocker shown in BLOCKING_SESSION | ORA_BLOCKING_INST_ID | DEC | 22 | |||||
P3 | Oracle monitoring: ORA_P3: Third additional parameter | ORA_P3 | DEC | 22 | ORA_P3 | ||||
BLOCKING_SESS_ID | Oracle monitoring: Blocking session ID | ORA_BLOCKING_SESS_ID | DEC | 22 | ORA_DEC_22 | ||||
WAIT_TIME | Oracle monitoring: Latch Wait Time | ORA_WAIT_TIME | DEC | 22 | ORA_WAIT_TIME | ||||
BLOCKING_SESS_STATUS | Oracle Monitoring: Blocking Session Status | ORA_BLOCKING_SESS_STATUS | CHAR | 11 | |||||
TIME_WAITED | Oracle monitor: TIME_WAITED | ORA_TIME_WAITED | DEC | 22 | ORA_NUM_22 | ||||
BLOCKING_SESS_SERIAL | Oracle monitoring: Blocking session serial number | ORA_BLOCKING_SESS_SERIAL | DEC | 22 | ORA_SERIAL | ||||
EVENT | Oracle Monitoring: Oracle Event Name | ORA_EVENT_NAME | CHAR | 64 | |||||
CURRENT_OBJ | Oracle monitoring: Dictionary object number of the object | ORA_OBJECT_ID_2 | DEC | 22 | ORA_NUM_22 | ||||
EVENT_ID | Oracle Monitoring: Oracle Event ID | ORA_EVENT_ID | CHAR | 38 | |||||
OBJECT_NAME | Oracle monitoring: Name of the object | ORA_OBJECT_NAME | CHAR | 30 | ORA_CHAR_30 | ||||
EVENT_NUM | Oracle Monitoring: Oracle Event Number | ORA_EVENT_NUMBER | INT4 | 10 | |||||
CURRENT_FILE | Oracle monitoring: File# | ORA_FILE | DEC | 22 | ORA_DEC_22 | ||||
SEQ_NUM | Oracle monitoring: SEQ# | ORA_SEQ | DEC | 22 | ORA_SEQ | ||||
CURRENT_BLOCK | Oracle monitoring: Block number | ORA_BLOCK_ID | DEC | 22 | ORA_NUM_22 | ||||
P1 | Oracle monitoring: ORA_P1: First additional parameter | ORA_P1 | DEC | 22 | ORA_P1 | ||||
PROGRAMX | Oracle monitoring: PROGRAM: Operating system program name | ORA_PROGRAM | CHAR | 48 | ORA_PROGRAM | ||||
P2 | Oracle monitoring: ORA_P2: Second additional parameter | ORA_P2 | DEC | 22 | ORA_P2 | ||||
MODULEX | Oracle monitoring: MODULE: currently executing module | ORA_MODULE | CHAR | 48 | ORA_MODULE | ||||
P3 | Oracle monitoring: ORA_P3: Third additional parameter | ORA_P3 | DEC | 22 | ORA_P3 | ||||
ACTION | Oracle monitoring: ACTION: Currently executing action | ORA_ACTION | CHAR | 32 | ORA_ACTION | ||||
CLIENT_ID | Oracle monitoring: ORA_CLIENT_IDENTIFIER | ORA_CLIENT_IDENTIFIER | CHAR | 64 | ORA_CLIENT_IDENTIFIER | ||||
WAIT_CLASS | ORA: Wait Class Name | ORA_CLASS_NAME | CHAR | 64 | CHAR64 | ||||
WAIT_CLASS_ID | Oracle monitor: CLASS | ORA_CLASS | DEC | 22 | ORA_NUM_22 | ||||
SAMPLE_TIME_EXT | Oracle monitoring: Sample timestamp | ORA_SAMPLE_TIME | CHAR | 25 | |||||
WAIT_TIME | Oracle monitoring: Latch Wait Time | ORA_WAIT_TIME | DEC | 22 | ORA_WAIT_TIME | ||||
TIME_WAITED | Oracle monitor: TIME_WAITED | ORA_TIME_WAITED | DEC | 22 | ORA_NUM_22 | ||||
CURRENT_OBJ | Oracle monitoring: Dictionary object number of the object | ORA_OBJECT_ID_2 | DEC | 22 | ORA_NUM_22 | ||||
OBJECT_NAME | Oracle monitoring: Name of the object | ORA_OBJECT_NAME | CHAR | 30 | ORA_CHAR_30 | ||||
CURRENT_FILE | Oracle monitoring: File# | ORA_FILE | DEC | 22 | ORA_DEC_22 | ||||
CURRENT_BLOCK | Oracle monitoring: Block number | ORA_BLOCK_ID | DEC | 22 | ORA_NUM_22 | ||||
CURRENT_ROW | Row identifier that the session is referencing | ORA_CURRENT_ROW | DEC | 22 | |||||
IN_CONNECTION_MGMT | Indicates whether the session was doing connection mngmt | ORA_IN_CONNECTION_MGMT | CHAR | 1 | |||||
IN_PARSE | Indicates whether the session was parsing | ORA_IN_PARSE | CHAR | 1 | |||||
IN_HARD_PARSE | Indicates whether the session was hard parsing | ORA_IN_HARD_PARSE | CHAR | 1 | |||||
IN_SQL_EXECUTION | Indicates whether the session was executing SQL stmt | ORA_IN_SQL_EXECUTION | CHAR | 1 | |||||
IN_PLSQL_EXECUTION | Indicates whether the session was executing PL/SQL | ORA_IN_PLSQL_EXECUTION | CHAR | 1 | |||||
IN_PLSQL_RPC | Indicates whether session was executing inbound PL/SQL RPC | ORA_IN_PLSQL_RPC | CHAR | 1 | |||||
IN_PLSQL_COMPILATION | Indicates whether the session was compiling PL/SQL | ORA_IN_PLSQL_COMPILATION | CHAR | 1 | |||||
IN_JAVA_EXECUTION | Indicates whether the session was executing Java | ORA_IN_JAVA_EXECUTION | CHAR | 1 | |||||
IN_BIND | Indicates whether the session was doing bind operations | ORA_IN_BIND | CHAR | 1 | |||||
IN_CURSOR_CLOSE | Indicates whether the session was closing a cursor | ORA_IN_CURSOR_CLOSE | CHAR | 1 | |||||
IN_SEQUENCE_LOAD | Indicates whether the session is loading in sequence | ORA_IN_SEQUENCE_LOAD | CHAR | 1 | |||||
TM_DELTA_TIME | Time interval (in microseconds) | ORA_TM_DELTA_TIME | DEC | 22 | |||||
TM_DELTA_CPU_TIME | Amount of time this session spent on CPU | ORA_TM_DELTA_CPU_TIME | DEC | 22 | |||||
TM_DELTA_DB_TIME | Amount of time spent by this session in database calls | ORA_TM_DELTA_DB_TIME | DEC | 22 | |||||
DELTA_TIME | Time interval since session was sampled (microsec) | ORA_DELTA_TIME | DEC | 22 | |||||
DELTA_READ_IO_REQUESTS | Number of read I/O requests made by this session | ORA_DELTA_READ_IO_REQUESTS | DEC | 22 | |||||
DELTA_WRITE_IO_REQUESTS | Number of write I/O requests made by this session | ORA_DELTA_WRITE_IO_REQUESTS | DEC | 22 | |||||
DELTA_READ_IO_BYTES | Number of I/O bytes read by this session | ORA_DELTA_READ_IO_BYTES | DEC | 22 | |||||
DELTA_WRITE_IO_BYTES | Number of I/O bytes written by this session | ORA_DELTA_WRITE_IO_BYTES | DEC | 22 | |||||
DELTA_INTERCONNECT_IO_BYTES | Number of I/O bytes sent over the I/O interconnect | ORA_DELTA_INTERCONNECT_IO_BYTE | DEC | 22 | |||||
PGA_ALLOCATED | Amount of PGA memory (in bytes) consumed by this session | ORA_PGA_ALLOCATED | DEC | 22 | |||||
TEMP_SPACE_ALLOCATED | Amount of TEMP memory (in bytes) consumed by this session | ORA_TEMP_SPACE_ALLOCATED | DEC | 22 | |||||
MACHINE | Oracle monitoring: MACHINE: Operating system machine name | ORA_MACHINE | CHAR | 64 | ORA_MACHINE | ||||
PORT | Client port number | ORA_PORT | DEC | 22 | |||||
PROGRAMX | Oracle monitoring: PROGRAM: Operating system program name | ORA_PROGRAM | CHAR | 48 | ORA_PROGRAM | ||||
MODULEX | Oracle monitoring: MODULE: currently executing module | ORA_MODULE | CHAR | 48 | ORA_MODULE | ||||
ACTION | Oracle monitoring: ACTION: Currently executing action | ORA_ACTION | CHAR | 32 | ORA_ACTION | ||||
CLIENT_ID | Oracle monitoring: ORA_CLIENT_IDENTIFIER | ORA_CLIENT_IDENTIFIER | CHAR | 64 | ORA_CLIENT_IDENTIFIER | ||||
SAMPLE_TIME_EXT | Oracle monitoring: Sample timestamp | ORA_SAMPLE_TIME | CHAR | 25 |
Key field | Non-key field |
How do I retrieve data from SAP structure ORA_S_GV_ACTIVE_SESSION_HIS using ABAP code?
As ORA_S_GV_ACTIVE_SESSION_HIS 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 ORA_S_GV_ACTIVE_SESSION_HIS as there is no data to select.How to access SAP table ORA_S_GV_ACTIVE_SESSION_HIS
Within an ECC or HANA version of SAP you can also view further information about ORA_S_GV_ACTIVE_SESSION_HIS 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