Understand the Usage Tracking Tables
The system stores usage tracking data in three database tables.
The usage tracking process creates these tables with table names that you specify through settings in the Systems Settings page.
- Usage Tracking Logical Query Logging Table
- Usage Tracking Physical Query Logging Table
- Usage Tracking Initialization Block Table
Usage Tracking Logical Query Logging Table
TOTAL_TIME_SEC
is equal to END_TS
minus START_TS
. The columns don't provide such exact values because:
- Various processes run in parallel and their speed depends on the load and on database performance. Server-based operations might be either light or intensive.
- If all connections are full, then the query enters a queue and waits to be processed. The timing depends on the load and the configuration.
User, Session, and ID-related Columns
Column | Description |
---|---|
|
In the Logical Query table, this column indicates the unique row identifier. In the
Physical Query table, this column is denoted by the name
|
|
Contains
|
|
Indicates the name of the Catalog. Default is Null and data type is Varchar(128). |
|
Specifies the user name of the impersonated user. If the request isn't run as an impersonated user, then the value is None. Default is None and the data type is Varchar(128). |
|
Specifies the name of the user who submitted the query. |
ECID |
Indicates the system-generated execution context ID. Data type is Varchar2(1024). |
TENANT_ID |
Specifies the name of the tenant of the user who ran the initialization block. Data type is Varchar2(128). |
SERVICE_NAME |
Specifies the name of the service. Data type is Varchar2(128). |
SESSION_ID |
Indicates the ID of the session. Data type is Number(10). |
HASH_ID |
Indicates the HASH value for the logical query. Data
type is Varchar2(128).
|
Query Origin-related Columns
Column | Description |
---|---|
|
The source of the request. Note that the requestor can set QUERY_SRC_CD to any string value to identify itself. Possible values include:
|
|
Indicates the path name of the dashboard. If the query wasn't submitted through a dashboard, then the value is NULL. |
|
Indicates the page name in the dashboard. If the request isn't a dashboard request, then the value is NULL. Default is Null and the data type is Varchar(150). |
|
Specifies the path name in the Catalog for the analysis. |
Query Details-related Columns
Column | Description |
---|---|
|
Contains the error message from the back-end database. This column is applicable only if the |
|
Contains the entire logical SQL statement without any truncation. The |
|
Contains an MD5 hash key generated by the system from the logical SQL statement. Default is Null and the data type is Varchar(128). |
|
Indicates the SQL statement that was submitted for the query. The data type is Varchar(1024). You can change the length of this column (using the ALTER TABLE command), but note that the text written into this column is always truncated to the size that is defined in the physical layer. The semantic model administrator mustn't set the length of this column to a value greater than the maximum query length that's supported by the back-end physical database. For example, Oracle Databases enable a maximum Varchar of 4000, but Oracle Databases truncate to 4000 bytes, not 4000 characters. If you use a multibyte character set, the actual maximum string size has a varying number of characters, depending on the character set and characters used. |
|
Specifies the name of the semantic model that the query accesses. |
|
Contains the name of the business model being accessed. |
|
Indicates the completion status of the query, as defined in the following list:
|
Execution Timing-related Columns
Column | Description |
---|---|
|
Contains the time in seconds required to compile the query. The number for |
|
Indicates the date the logical query completed. |
|
Indicates the hour and minute the logical query completed. |
|
Indicates the date and time the logical query completed. The start and end timestamps also reflect any time that the query spent waiting for resources to become available. If the user submitting the query navigates away from the page before the query finishes, then the final fetch never happens and a timeout value of 3600 is recorded. However, if the user navigates back to the page before the timeout, then the fetch completes at that time, which is recorded as the |
|
Indicates the date that the logical query was submitted. |
|
Indicates the hour and minute that the logical query was submitted. |
|
Indicates the date and time that the logical query was submitted. |
|
Indicates the time in seconds that the system spent working on the query while the client waited for responses to its analyses. |
RESP_TIME_SEC |
Indicates the time taken for query response. Data type is Number(10). |
Execution Details-related Columns
Column | Description |
---|---|
|
Contains the cumulative time of all queries sent to the database. Queries run in parallel, so the cumulative query time is equal to or greater than the total time connected to the database. For example, suppose a logical request spawns 4 physical SQL statements sent to the database, and the query time for 3 of the queries is 10 seconds, and for one query is 15 seconds, |
|
Contains the total number of rows returned by the back-end databases. |
|
Indicates the number of queries that were submitted to the back-end databases to satisfy the logical query request. For successful queries (SuccessFlag = 0), this number is 1 or greater. |
|
Indicates the number of rows returned to the query client. When a large amount of data is returned from a query, this column isn't populated until the user displays all the data. |
TOTAL_TEMP_KB |
Specifies the total KB received for a query. Data type is Number(10). |
Cache-related Columns
Column | Description |
---|---|
|
Holds Y to indicate a cache hit for the query; N to indicate a cache miss. Default is N. |
|
Indicates the number of times that the cache result returned for the query. |
|
Indicates the number of times that the query generated a cache entry. Default is Null. |
Usage Tracking Physical Query Logging Table
The following table describes the database table that tracks physical queries. This database table records the physical SQL information for the logical queries stored in the logical query logging table. The physical query table has a foreign key relationship to the logical query table.
User, Session, and ID-related Columns
Column | Description |
---|---|
|
Specifies the unique row identifier. |
|
Refers to the logical query in the logical query logging table. Data type is Varchar2(50). |
HASH_ID |
Indicates the HASH value for the logical query. Data type is Varchar2(128).
|
PHYSICAL_HASH_ID |
Indicates the HASH value for the physical query. Data type is Varchar2(128).
|
Query Details-related Columns
Column | Description |
---|---|
|
Contains the entire physical SQL statement without any truncation. The |
|
Contains the SQL statement submitted for the query. Data type is Varchar(1024). |
Execution Timing-related Columns
Column | Description |
---|---|
|
Indicates the date the physical query completed. |
|
Indicates the hour and minute the physical query completed. |
|
Indicates the date and time the physical query completed. The start and end timestamps also reflect any time that the query spent waiting for resources to become available. |
|
Indicates the physical query execution time. |
|
Indicates the date the physical query was submitted. |
|
Indicates the hour and minute the physical query was submitted. |
|
Indicates the date and time the physical query was submitted. |
Execution Details-related Columns
Column | Description |
---|---|
|
Contains the number of rows returned to the query client. |
Usage Tracking Initialization Block Table
Note:
Currently the initialization block usage tracking tables include only session initialization blocks and don't include the semantic model initialization blocks.User, Session, and ID-related Columns
Column | Description |
---|---|
USER_NAME |
The name of the user who ran the initialization block. The data type is Varchar2(128). |
TENANT_ID |
The name of the tenant of the user who ran the initialization block. The data type is Varchar2(128). |
SERVICE_NAME |
The name of the service. The data type is Varchar2(128). |
ECID |
The system-generated execution context ID. The data type is Varchar2(1024). |
SESSION_ID |
The ID of the session. The data type is Number(10). |
Query Details-related Columns
Column | Description |
---|---|
REPOSITORY_NAME |
The name of the semantic model that the query accesses. The data type is Varchar2(128). |
BLOCK_NAME |
The name of the initialization block that was run. The data type is Varchar2(128). |
Execution Timing-related Columns
Column | Description |
---|---|
START_TS |
The date and time that the initialization block started. |
END_TS |
The date and time that the initialization block finished. The start and end timestamps also reflect the time that the query spent waiting for resources to become available. |
DURATION |
The length of time it took to run the initialization block. The data type is Number(13,3). |
Execution Details-related Columns
Column | Description |
---|---|
NOTES |
Notes about the initialization block and its running. The data type is Varchar2(1024). |