Quantcast
Channel: sqlcl | ThatJeffSmith
Viewing all articles
Browse latest Browse all 125

SQLcl 24.2 Quick Hit: Generating AWR Reports

$
0
0

A new feature for SQLcl 24.2 is the ability to interact with Oracle’s Automatic Workload Repository, also known as AWR. This is an Enterprise Edition (EE) licensed feature requiring the Diagnostic Pack.

If you have SQLcl 24.2, you can now simply run the AWR command to:

  • list available snapshots
  • create new snapshots
  • create AWR reports based on a start and stop snapshot period of time

If you’re curious about what else has been added or fixed in 24.2, be sure to check out Zach’s blog post.

AWR Commands

awr list snap

This will print a list of snapshots in your database.

awr create html 358 365

This will create an HTML AWR report for the time period between snapshots 358 and 365.

Here’s what that looks like –

Don’t forget about tab-complete

The command syntax is pretty simple, but that doesn’t mean you can’t still save some time with the TAB key!

The post SQLcl 24.2 Quick Hit: Generating AWR Reports first appeared on ThatJeffSmith.


Viewing all articles
Browse latest Browse all 125

Trending Articles