本机生成远程数据库AWR报告

发布时间:2020-08-17 02:47:10 作者:studywell
来源:ITPUB博客 阅读:225


1、本机命令行连接oracle数据库
sqlplus /nolog
SQL> conn system/oracle@98149


2、执行生成AWR报告命令
SQL> @?/rdbms/admin/awrrpt.sql


Current Instance
~~~~~~~~~~~~~~~~


   DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------
 1244647887 ORAL                1 oral




Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
-----------------------------------------------------------------此处输入html
输入 report_type 的值:  html


Type Specified:  html




Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


   DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------
* 1244647887        1 ORAL         oral         s11ora11


Using 1244647887 for database Id
Using          1 for instance number




Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing <return> without
specifying a number lists all completed snapshots.


-----------------------------------------------------------------此处输入需要查看报告的天数
输入 num_days 的值:  1


Listing the last day's Completed Snapshots


                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
oral         ORAL             17512 23 3月  2018 00:00     1
                              17513 23 3月  2018 00:30     1
                              17514 23 3月  2018 01:00     1
                              17515 23 3月  2018 01:30     1
                              17516 23 3月  2018 02:00     1
                              17517 23 3月  2018 02:30     1
                              17518 23 3月  2018 03:00     1
                              17519 23 3月  2018 03:30     1
                              17520 23 3月  2018 04:00     1
                              17521 23 3月  2018 04:30     1
                              17522 23 3月  2018 05:00     1
                              17523 23 3月  2018 05:30     1
                              17524 23 3月  2018 06:00     1
                              17525 23 3月  2018 06:30     1
                              17526 23 3月  2018 07:00     1
                              17527 23 3月  2018 07:30     1
                              17528 23 3月  2018 08:00     1
                              17529 23 3月  2018 08:30     1
                              17530 23 3月  2018 09:00     1




-----------------------------------------------------------------输入对应时间的snap_id
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
输入 begin_snap 的值:  17529
Begin Snapshot Id specified: 17529


输入 end_snap 的值:  17530
End   Snapshot Id specified: 17530






Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_17529_17530.html.  To use this name,
press <return> to continue, otherwise enter an alternative.
-----------------------------------------------------------------直接回车,在命令行启动目录路径下生成报告
输入 report_name 的值:








推荐阅读:
  1. 手动生成AWR报告
  2. 如何使用awrrpt.sql 生成AWR报告

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

awr 数据库 本机

上一篇:邦盛科技王雷:AI风控的「能力边界」

下一篇:AweEraser for Mac(数据清除软件)

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》