Skip to content

Commit

Permalink
11111:Get Started with Oracle Cloud Infrastructure Operations Insights (
Browse files Browse the repository at this point in the history
#236)

* Operations-Insights

* Update manifest.json

* Update manifest.json

* Update introduction.md

* ocw-dbmgmt

* Update introduction.md

* Update dbmgmt-features.md

* Update introduction.md

* Update dbmgmt-features.md

* Update summary.png

* Aug11-Update

* Update introduction.md

* Update dbmgmt-features.md

* Update dbmgmt-features.md

* Updated manifest.json for Cloud World help

* Updated agent-install

* Updated agent-install

* Updated as per Lint Checker

* OCW update

* Update for OCW

* OCW update

* OCW Update

* Update introduction-ocw.md

* OCW Update

* OCW Update

* OCW Update

* Delete operations-insights-ocw directory

* Delete awr-hub.md.orig

* Update manifest.json

* Update manifest.json

* OCW Update

* OCW Update

* OCW Update

* OCW Update

* OCW Update

* OCW Update

* OCW Update

* OCW Update

* Update dbmgmt-features.md

* Update capacity-planning-adb-ocw.md

* Update sql-warehouse-ocw.png

* SQL Insights

* SQL Insights

* SQL Insights

* SQL Insights

* SQL Insights

---------

Co-authored-by: ZackaryRice <128171922+ZackaryRice@users.noreply.github.com>
  • Loading branch information
oravivek and ZackaryRice authored Nov 9, 2023
1 parent e839100 commit 7185831
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions operations-insights/sql-performance/sql-performance-ocw.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,17 @@ In this lab create visualuzations using pre-existing performance statistics via

3. This will take you to the **SQL Explorer** page.

![SQL Explorer](./images/sql-explorer1.png " ")
![SQL Explorer](./images/sql-explorer-main.png " ")

4. Enter the following SQL in the SQL query section

<copy>SELECT DISPLAY_NAME,SQL_ID,sum(CPU_TIME)
WHERE DISPLAY_NAME='SALES-WT'
GROUP BY DISPLAY_NAME,SQL_ID
HAVING
ORDER BY sum(CPU_TIME)desc</copy>
```
<copy>SELECT DISPLAY\_NAME,SQL\_ID,sum(CPU\_TIME)
WHERE DISPLAY\_NAME='SALES-WT'
GROUP BY DISPLAY\_NAME,SQL\_ID
HAVING
ORDER BY sum(CPU\_TIME)desc</copy>
```

![SQL Query](./images/sql-query.png " ")

Expand All @@ -165,12 +167,19 @@ In this lab create visualuzations using pre-existing performance statistics via
8. Under the **Visualization** tab on the right pane, select the following -

**Chart type** : **Bar Chart**
**Y axis** : **SUM(CPU_TIME)**
**X axis** : **DISPLAY_NAME**
**Series** : **SQL_ID**
**Color by** : **SQL_ID**

**Y axis** : **SUM(CPU\_TIME)**

**X axis** : **DISPLAY\_NAME**

**Series** : **SQL\_ID**

**Color by** : **SQL\_ID**

**Y axis title** : **CPU time (s)**

**Legend** : **None**

Check mark **Stacked**

![SQL Visualization](./images/sql-query-visual.png " ")
Expand Down

0 comments on commit 7185831

Please sign in to comment.