> For the complete documentation index, see [llms.txt](https://docs.tibero.com/en-owldb-cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/en-owldb-cloud/monitoring/session.md). Agents can also search and read this documentation through its [MCP server](https://docs.tibero.com/en-owldb-cloud/~gitbook/mcp).

# Session Monitoring

{% hint style="info" %}
**Note**

In the AWS environment, it is supported only for the Tibero engine, and in the Azure environment, both Tibero and OpenSQL are supported.
{% endhint %}

Session Monitoring is a feature that checks the current status of sessions connected to the database in real time. It quickly identifies abnormal sessions by viewing key session metrics such as the connected user, running SQL, wait events, and elapsed time in table form.

Both the Tibero and OpenSQL engines are supported, and switching with the **DB Type** toggle in the GNB displays the list of metrics suited to that engine. Enabling the Elapsed Time alert feature highlights session rows that exceed the configured threshold in color, visually identifying long-running sessions. Clicking a specific session row in the table shows detailed information and the full SQL text in a drawer.

## Session Monitoring <a href="#session-monitoring" id="session-monitoring"></a>

In the **Monitoring > Session Monitoring** menu, you can view the list of sessions currently connected to the DB instance in a real-time table. When you switch between Tibero and OpenSQL using the **DB Type** toggle in the GNB, the session metrics of that engine are displayed.

If there are no instances in the selected DB Type or you do not select an instance, the No Data screen is displayed. If the instance status is abnormal, ⚠️ is displayed on that instance in the DB Select tree, and if you select only abnormal instances, no session data is displayed.

1. Click the **Monitoring > Session Monitoring** menu.
2. Select **Tibero** or **OpenSQL** using the **DB Type** toggle in the GNB.
3. Filter the desired session by searching.
4. Click the **Elapsed Time alert settings (⚙️)** icon to set the threshold.
5. Save the set threshold.
6. Click a session row to open the details drawer.
7. Click the 📋 icon to copy the full SQL text.

Use the following features at the top of the table.

* **Manual refresh (🔃)**: When clicked, it immediately refreshes the session data.
* **Auto Refresh (⚙️)**: Sets whether to auto-refresh and the interval.
* **Search**: Select a condition and enter a search term to filter the sessions you want. If no sessions match, the message "No data available to view." is displayed.
* **Table Settings (⚙️)**: Add or hide the columns to display in the table.

The search conditions vary depending on the selected DB Type.

{% tabs %}
{% tab title="Tibero" %}
All / Instance Alias / SID / Username / Status
{% endtab %}

{% tab title="OpenSQL" %}
All / Instance Alias / Database Name / PID / Username / State
{% endtab %}
{% endtabs %}

### Session Column Configuration

Table columns are divided into three types according to their display policy.

* **Always Shown**: Required columns that cannot be hidden
* **Shown by Default**: Columns shown by default that the user can hide
* **Optionally Shown**: Columns hidden by default that can be added in the table settings

{% tabs %}
{% tab title="Tibero" %}

| Column              | Description                                                                                                       | Display policy   |
| ------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------- |
| Service Name        | Service identifier                                                                                                | Always Shown     |
| Instance Alias      | Instance identifier                                                                                               | Always Shown     |
| SID                 | Session ID (Tibero unique identifier)                                                                             | Always Shown     |
| Serial#             | Serial number for distinguishing session reuse                                                                    | Optionally Shown |
| PID                 | Server backend process ID                                                                                         | Always Shown     |
| Username            | DB connection user                                                                                                | Always Shown     |
| Schema              | Current schema name                                                                                               | Shown by Default |
| Session Type        | Session type                                                                                                      | Shown by Default |
| Status              | Session status (`RUNNING` · `READY` · `TX_RECOVERING` · `SESS_CLEANUP` · `ASSIGNED` · `CLOSING` · `ROLLING_BACK`) | Always Shown     |
| State               | Detailed execution stage of the session                                                                           | Always Shown     |
| LOGON TIME          | Session creation time (based on the database time zone)                                                           | Shown by Default |
| Elapsed Time        | Elapsed time of the current SQL or session status                                                                 | Always Shown     |
| Wait Event          | Event the current session is waiting on                                                                           | Shown by Default |
| Wait Time           | Wait Event wait time                                                                                              | Shown by Default |
| WLock Wait          | Type of lock the session is waiting on                                                                            | Shown by Default |
| SQL ID              | Identifier of the running SQL                                                                                     | Shown by Default |
| SQL Text            | Full text of the running SQL                                                                                      | Shown by Default |
| Prev SQL ID         | Identifier of the previously executed SQL                                                                         | Optionally Shown |
| Command             | SQL command type (SELECT, INSERT, etc.)                                                                           | Shown by Default |
| Program             | Connected application name                                                                                        | Shown by Default |
| Module              | User-defined module name                                                                                          | Optionally Shown |
| Action              | Action name of the module                                                                                         | Optionally Shown |
| IP Address          | Client connection IP                                                                                              | Always Shown     |
| Client PID          | Client process ID                                                                                                 | Optionally Shown |
| CONSUMED\_CPU\_TIME | Cumulative CPU time used by the session                                                                           | Shown by Default |
| PGA Used Memory     | PGA memory in use by the session                                                                                  | Shown by Default |
| Machine             | Host name of the connected session                                                                                | Optionally Shown |
| OS USER             | OS account name of the connected session                                                                          | Optionally Shown |

{% hint style="info" %}
**Note**

For SQL ID and Prev SQL ID, negative values are also within the normal range.
{% endhint %}
{% endtab %}

{% tab title="OpenSQL" %}

| Column              | Description                                 | Display policy   |
| ------------------- | ------------------------------------------- | ---------------- |
| Service Name        | Service identifier                          | Always Shown     |
| Instance Alias      | Instance identifier                         | Always Shown     |
| datname             | Connected database name                     | Always Shown     |
| pid                 | Server backend process ID                   | Always Shown     |
| usename             | DB connection user                          | Always Shown     |
| state               | Session status                              | Always Shown     |
| elapsed\_time       | Elapsed time of the current query execution | Always Shown     |
| wait\_event         | Session wait event name                     | Always Shown     |
| wait\_event\_type   | Session wait event type                     | Always Shown     |
| query               | Current or last executed SQL statement      | Always Shown     |
| backend\_type       | Backend process type                        | Shown by Default |
| backend\_start      | Session or backend process start time       | Shown by Default |
| application\_name   | Connected application name                  | Shown by Default |
| client\_addr        | Client IP address                           | Shown by Default |
| query\_id           | Query identifier                            | Shown by Default |
| leader\_pid         | Parallel task leader process ID             | Optionally Shown |
| client\_port        | Client communication port number            | Optionally Shown |
| client\_hostname    | Client host name                            | Optionally Shown |
| query\_start        | Current or last query start time            | Optionally Shown |
| xact\_start         | Current transaction start time              | Optionally Shown |
| state\_change       | Last change time of the session status      | Optionally Shown |
| xact\_elapsed\_time | Elapsed time of the current transaction     | Optionally Shown |
| backend\_xid        | Top-level transaction ID                    | Optionally Shown |
| backend\_xmin       | xmin horizon of the current backend         | Optionally Shown |
| {% endtab %}        |                                             |                  |
| {% endtabs %}       |                                             |                  |

### Elapsed Time Alert Settings <a href="#elapsed-time" id="elapsed-time"></a>

If you set an Elapsed Time threshold, session rows whose elapsed time exceeds the criteria are highlighted in color.

| Status  | Condition                                          | Display color |
| ------- | -------------------------------------------------- | ------------- |
| Normal  | Elapsed Time < caution threshold                   | Default color |
| Caution | Caution threshold ≤ Elapsed Time < error threshold | Orange        |
| Error   | Elapsed Time ≥ error threshold                     | Red           |

Click the **Elapsed Time Alert Settings (⚙️)** icon at the top of the table to open the settings panel. Turn on the alert enable toggle, then enter the error and caution thresholds and save.

| Item            | Description                       | Input rules                                                                            |
| --------------- | --------------------------------- | -------------------------------------------------------------------------------------- |
| Enable Alerts\* | Turn the alert feature on/off     | Toggle                                                                                 |
| Error\*         | Error level threshold (seconds)   | `0.1` \~ `1000.0`, up to one decimal place allowed                                     |
| Caution\*       | Caution level threshold (seconds) | `0.1` \~ `999.9`, up to one decimal place allowed, must be less than the warning level |

The \* mark indicates a required input item.

{% hint style="info" %}
**Note**

If you close the panel without turning on the alert enable toggle, the entered threshold is retained. However, it reverts to the initial value when you navigate away from the page.
{% endhint %}

### Viewing Session Details

Clicking a specific row in the session table opens a details drawer on the right. The drawer title is displayed in the format **Session Detail ({SID or PID})**.

| Item              | Description                                        | Tibero | OpenSQL |
| ----------------- | -------------------------------------------------- | ------ | ------- |
| Service Name      | Name of the DB Service the session is connected to | ✓      | ✓       |
| Instance Alias    | Alias of the instance the session is connected to  | ✓      | ✓       |
| Database Name     | Name of the database the session is connected to   | —      | ✓       |
| State             | Detailed execution stage of the session            | ✓      | ✓       |
| Elapsed Time      | Elapsed time of the SQL or session state (seconds) | ✓      | ✓       |
| SQL ID / Query ID | Identifier of the running SQL                      | ✓      | ✓       |
| SQL Text / Query  | Full text of the running SQL                       | ✓      | ✓       |

Clicking the 📋 icon on the right of the SQL Text area copies the full SQL to the clipboard. For sessions without SQL Text, a no-data screen is shown in that area. To close the drawer, click the » icon; to view it wider, click the ⛶ icon.
