Working with SAP HANA Monitoring Views
You can obtain independent access to the underlying SAP HANA monitoring views that power the Monitoring apps to do additional analysis on them and visualize them in SAP Analytics Cloud.
Preparing Monitoring Spaces
As the monitoring spaces you choose will provide unfiltered access to monitoring views, be aware that the users assigned to the spaces will be able to see all metadata and object definitions of all spaces.
-
Choose a space that you want to contain monitoring views.
-
<SAP_ADMIN> space - This space can contain the pre-configured monitoring views provided by SAP via the Content Network. First create the space with the space ID <SAP_ADMIN> and the space name <Administration (SAP)>, enable access to it, and import the package from the Content Network.
Monitoring Views
-
SAP HANA SYS Schema Monitoring Views - All SAP HANA monitoring views start with M_. For more information, see Monitoring Views in the SAP HANA Cloud, SAP HANA Database SQL Reference Guide.
The views for monitoring expensive statements are M_EXPENSIVE_STATEMENTS and M_EXPENSIVE_STATEMENT_EXECUTION_LOCATION_STATISTICS (see M_EXPENSIVE_STATEMENTS and M_EXPENSIVE_STATEMENT_EXECUTION_LOCATION_STATISTICS).
The view M_MULTIDIMENSIONAL_STATEMENT_STATISTICS and M_MULTIDIMENSIONAL_STATEMENTS provide extensive information about MDS queries. For more information, see M_MULTIDIMENSIONAL_STATEMENT_STATISTICS System View and M_MULTIDIMENSIONAL_STATEMENTS System View in the SAP HANA Cloud, SAP HANA Database SQL Reference Guide.
-
SAP HANA _SYS_STATISTICS Schema Statistics Service Views (see Embedded Statistics Service Views (_SYS_STATISTICS schema)).
-
SAP HANA _SYS_BI Schema Tables and Views (see BIMC Tables and Views in the SAP HANA Cloud, SAP HANA Analytics Catalog (BIMC Views) Reference).
-
SAP HANA DWC_GLOBAL Schema Monitoring Views (see Working with SAP HANA Monitoring Views).
-
SAP Datasphere Monitoring Views - Delivered via the Content Network in the <SAP_ADMIN> space (see SAP Datasphere Monitoring Views (Delivered via the Content Network)).
SAP HANA DWC_GLOBAL Schema Monitoring Views
-
SPACE_SCHEMAS_V_EXT:
Column Description SPACE_ID
Identifier of the SAP Datasphere space. Note that one space can contain several schemas.
SCHEMA_NAME
Name of the schema used to run the task.
-
SPACE_USERS_V_EXT:
Column Description SPACE_ID
Identifier of the SAP Datasphere space. Note that one space can contain several users.
USER_NAME
Identifier of the user.
USER_TYPE
Type of user, such as space technical user (for example database user for open SQL schemas) or global user.
-
TASK_SCHEDULES_V_EXT:
Column Description SPACE_ID (Key)
Identifier of the SAP Datasphere space which contains the object with the defined schedule.
OBJECT_ID (Key)
Identifier of the SAP Datasphere object for which the schedule is defined.
APPLICATION_ID (Key)
Identifier of the type of object.
For example: PERSIST (View), EXECUTE (Dataflow), REPLICATE (Remote Tables), RUN_CHAIN (Task Chain).
ACTIVITY (Key)
Identifier of the type of activity applied to the object.
For example: PERSIST (View), EXECUTE (Dataflow), REPLICATE (Remote Tables), RUN_CHAIN (Task Chain)
OWNER
Identifier of the responsible of the schedule, schedule executed on users behalf, consent is checked against (< DWC User ID >).
CRON
Defines the recurrence of a schedule in CRON format .
NULL (no schedule defined, or a SIMPLE schedule is defined) For example: "0 */1 * * *" for hourly (see Schedule a Data Integration Task (with Cron Expression)).
FREQUENCY
Defines the recurrence of a schedule in json format (simple format).
NULL (no schedule defined, or a CRON schedule is defined) or schedule definition, for example Daily + start date + time + duration (see Schedule a Data Integration Task (Simple Schedule)).
CHANGED_BY
User who last changed the schedule configuration.
CHANGED_AT
Timestamp containing Date and Time, at which the schedule was last changed.
TZ_NAME
Shows time zone information for each schedule.
-
TASK_LOGS_V_EXT:
Column Description TASK_LOG_ID (Key)
Uniquely identifies an execution of a task.
SPACE_ID
Identifier of the SAP Datasphere space which contains the object with the defined schedule.
APPLICATION_ID
Identifier of the type of object .
For example: VIEWS, REMOTE_TABLES, DATA_FLOWS, TASK_CHAINS
OBJECT_ID
Identifier of the SAP Datasphere object for which the schedule is defined.
ACTIVITY
For each application there could be multiple activities, e.g. replicating or deleting data.
For example: VIEWS, REMOTE_TABLES, DATA_FLOWS, TASK_CHAINS
PEAK_MEMORY
Captures the highest peak memory consumption (in bytes). Not available for all apps. Requires Enable Expensive Statement Tracing (see Configure Monitoring).
Gives Null if not available for the application, Enable Expensive Statement Tracing not set, or the threshold defined is not reached, 0 or value of the memory consumption.
PEAK_CPU
Total CPU time (in microseconds) consumed by the task. Not available for all apps. Requires Enable Expensive Statement Tracing (see Configure Monitoring).
Gives Null if not available for the application, Enable Expensive Statement Tracing not set, or the threshold defined is not reached, 0 or value of the CPU time consumption.
RECORDS
Shows the number of records of the target table after the task has finished running.
Gives Null (not applicable or not measured), 0 or number of records.
START_TIME
Timestamp containing Date and Time, at which the scheduled task was started.
END_TIME
Timestamp containing Date and Time, at which the scheduled task was stopped.
STATUS
Reports if this task execution is still running, completed or failed.
TRIGGERED_TYPE
Indicates if task execution was triggered manually (DIRECT) or via schedule (SCHEDULED).
APPLICATION_USER
The user on whose behalf the schedule was executed (the owner at this point in time).
DURATION
Duration in seconds of the task execution (also works for ongoing execution).
START_DATE
Date when the scheduled task was started.
-
TASK_LOG_MESSAGES_V_EXT:
Column Description TASK_LOG_ID (Key)
Uniquely identifies an instance of a task.
MESSAGE_NO (Key)
Order sequence of all messages belonging to a certain Tasklog ID.
SEVERITY
Indicates if the message provides general information (INFO) or error information (ERROR).
TEXT
The message itself.
DETAILS
Technical additional information. For example, it can be an error stack or a correlation ID.
-
TASK_LOCKS_V_EXT:
Column Description LOCK_KEY (Key)
Identifier, flexible field as part of the lock identifier, usually set to WRITE or EXECUTE.
APPLICATION_ID (Key)
Identifier of the type of object.
SPACE_ID (Key)
Identifier of the SAP Datasphere space which contains the object with the defined schedule.
OBJECT_ID (Key)
Identifier of the SAP Datasphere object for which the schedule is defined.
TASK_LOG_ID
Uniquely identifies the task execution that set the lock.
CREATION_TIME
Indicates when the lock has been set.
SAP Datasphere Monitoring Views (Delivered via the Content Network)
These SAP Datasphere monitoring views help you monitor data integration tasks in a more flexible way. They are built on the V_EXT views, and are enriched with further information as preparation for consumption in an SAP Analytics Cloud story.
See the blogs SAP Datasphere: Data Integration Monitoring – Sample Content for Reporting
(published in October 2021) and SAP Datasphere: Data Integration Monitoring – Running Task Overview
(published in November 2021).
-
Create a space with the space ID <SAP_ADMIN> and the space name <Administration (SAP)> and configure it as a monitoring space by enabling the toggle Enable Access to SAP Monitoring Content Space (see Configure Monitoring).
-
Import the Technical Content: Task Monitoringpackage from the Content Network (see Importing SAP and Partner Business Content from the Content Network).
-
SAP_TCT_TASK_LOGS_V_R_01: Monitoring: Task Execution Headers - Exposes:
-
Task properties, such as duration and execution status (e.g. failed, completed, ...).
-
Various measures for counting tasks (e.g. failed).
-
The schedule description.
-
Locking status
Uses the views TASK_LOCKS_V_EXT, TASK_SCHEDULES_V_EXT and TASK_LOGS_V_EXT.
Best Practice: To enable the navigation between SAP Datasphere and SAP Analytics Cloud, you must change the constant for the url_host to your SAP Datasphere instance. Open the view in the view editor, and update the URL host:

-
-
SAP_TCT_TASK_SCHEDULE_V_R_01: Monitoring: Schedule Properties - Exposes the properties of a data integration schedule.
Uses the view TASK_SCHEDULES_V_EXT and adds a row-count to be compatible with OLAP reporting.
-
SAP_TCT_TASK_MSG_V_R_01: Monitoring: Task Execution Items - Exposes:
-
All messages occurring during data integration monitoring.
-
Error code, header line and first stack line parsed out from detailed message.
-
An indicator that the task_id has an error (facilitate filtering of messages).
Uses the views TASK_LOG_MESSAGES_V_EXT and TASK_LOGS_V_EXT.
Best Practice: To enable the navigation between SAP Datasphere and SAP Analytics Cloud, you must change the constant for the url_host to your SAP Datasphere instance. Open the view in the view editor, and update the URL host:

-