iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >本机生成远程数据库AWR报告
  • 471
分享到

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

2024-04-02 19:04:59 471人浏览 薄情痞子
摘要

1、本机命令行连接oracle数据库 sqlplus /nolog SQL> conn system/oracle@98149 2、执行生成AWR报告命令 SQL> @?/rdbms/a



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 的值:








您可能感兴趣的文档:

--结束END--

本文标题: 本机生成远程数据库AWR报告

本文链接: https://www.lsjlt.com/news/49788.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作