`
ybbkd2
  • 浏览: 33154 次
社区版块
存档分类
最新评论

AWRRPT 报告生成

 
阅读更多
sqlplus / as sysdba
SQL/>


SQL> @?/rdbms/admin/awrrpt

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

   DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------
3771717691 PMES                2 pmes2


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'
Enter value for report_type:

Type Specified:  html


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

   DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------
* 3771717691        2 PMES         pmes2        htrac102
  3771717691        1 PMES         pmes1        htrac101
  3771717691        3 PMES         pmes3        htrac103

Using 3771717691 for database Id
Using          2 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.


Enter value for num_days: 8

Listing the last 8 days of Completed Snapshots

                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
pmes2        PMES              1228 27 Mar 2012 00:00      1
                               1229 27 Mar 2012 01:00      1
                               1230 27 Mar 2012 02:00      1
                               1231 27 Mar 2012 03:00      1
                               1232 27 Mar 2012 04:00      1
                               1233 27 Mar 2012 05:00      1
                               1234 27 Mar 2012 06:00      1
                               1235 27 Mar 2012 07:00      1
                               1236 27 Mar 2012 08:00      1
                               1237 27 Mar 2012 09:00      1
                               1238 27 Mar 2012 10:00      1
                               1239 27 Mar 2012 11:00      1
                               1240 27 Mar 2012 12:00      1
                               1241 27 Mar 2012 13:00      1
                               1242 27 Mar 2012 14:00      1
                               1243 27 Mar 2012 15:00      1
                               1244 27 Mar 2012 16:00      1
                               1245 27 Mar 2012 17:00      1
                               1246 27 Mar 2012 18:00      1
                               1247 27 Mar 2012 19:00      1
                               1248 27 Mar 2012 20:00      1
                               1249 27 Mar 2012 21:00      1
                               1250 27 Mar 2012 22:00      1
                               1251 27 Mar 2012 23:00      1
                               1252 28 Mar 2012 00:00      1
                               1253 28 Mar 2012 01:00      1
                               1254 28 Mar 2012 02:00      1
                               1255 28 Mar 2012 03:00      1
                               1256 28 Mar 2012 04:00      1
                               1257 28 Mar 2012 05:00      1
                               1258 28 Mar 2012 06:00      1
                               1259 28 Mar 2012 07:00      1
                               1260 28 Mar 2012 08:00      1
                               1261 28 Mar 2012 09:00      1
                               1262 28 Mar 2012 10:00      1
                               1263 28 Mar 2012 11:00      1
                               1264 28 Mar 2012 12:00      1
                               1265 28 Mar 2012 13:00      1
                               1266 28 Mar 2012 14:00      1
                               1267 28 Mar 2012 15:00      1
                               1268 28 Mar 2012 16:00      1
                               1269 28 Mar 2012 17:00      1
                               1270 28 Mar 2012 18:00      1
                               1271 28 Mar 2012 19:00      1
                               1272 28 Mar 2012 20:00      1
                               1273 28 Mar 2012 21:00      1
                               1274 28 Mar 2012 22:00      1
                               1275 28 Mar 2012 23:00      1
                               1276 29 Mar 2012 00:00      1
                               1277 29 Mar 2012 01:00      1

                               1278 29 Mar 2012 02:00      1
                               1279 29 Mar 2012 03:00      1
                               1280 29 Mar 2012 04:00      1
                               1281 29 Mar 2012 05:00      1
                               1282 29 Mar 2012 06:00      1

                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
pmes2        PMES              1283 29 Mar 2012 07:00      1
                               1284 29 Mar 2012 08:00      1
                               1285 29 Mar 2012 09:00      1
                               1286 29 Mar 2012 10:00      1
                               1287 29 Mar 2012 11:00      1
                               1288 29 Mar 2012 12:00      1
                               1289 29 Mar 2012 13:00      1
                               1290 29 Mar 2012 14:00      1
                               1291 29 Mar 2012 15:00      1
                               1292 29 Mar 2012 16:00      1
                               1293 29 Mar 2012 17:00      1
                               1294 29 Mar 2012 18:00      1
                               1295 29 Mar 2012 19:00      1
                               1296 29 Mar 2012 20:00      1
                               1297 29 Mar 2012 21:00      1
                               1298 29 Mar 2012 22:00      1
                               1299 29 Mar 2012 23:00      1
                               1300 30 Mar 2012 00:00      1
                               1301 30 Mar 2012 01:00      1
                               1302 30 Mar 2012 02:00      1
                               1303 30 Mar 2012 03:00      1
                               1304 30 Mar 2012 04:00      1
                               1305 30 Mar 2012 05:00      1
                               1306 30 Mar 2012 06:00      1
                               1307 30 Mar 2012 07:00      1
                               1308 30 Mar 2012 08:00      1
                               1309 30 Mar 2012 09:00      1
                               1310 30 Mar 2012 10:00      1
                               1311 30 Mar 2012 11:00      1
                               1312 30 Mar 2012 12:00      1
                               1313 30 Mar 2012 13:00      1
                               1314 30 Mar 2012 14:00      1
                               1315 30 Mar 2012 15:00      1
                               1316 30 Mar 2012 16:00      1
                               1317 30 Mar 2012 17:00      1
                               1318 30 Mar 2012 18:00      1
                               1319 30 Mar 2012 19:00      1
                               1320 30 Mar 2012 20:00      1
                               1321 30 Mar 2012 21:00      1
                               1322 30 Mar 2012 22:00      1
                               1323 30 Mar 2012 23:00      1
                               1324 31 Mar 2012 00:00      1
                               1325 31 Mar 2012 01:00      1
                               1326 31 Mar 2012 02:00      1
                               1327 31 Mar 2012 03:00      1
                               1328 31 Mar 2012 04:00      1
                               1329 31 Mar 2012 05:00      1
                               1330 31 Mar 2012 06:00      1
                               1331 31 Mar 2012 07:00      1
                               1332 31 Mar 2012 08:00      1
                               1333 31 Mar 2012 09:00      1
                               1334 31 Mar 2012 10:00      1
                               1335 31 Mar 2012 11:00      1
                               1336 31 Mar 2012 12:00      1
                               1337 31 Mar 2012 13:00      1
                               1338 31 Mar 2012 14:00      1

                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
pmes2        PMES              1339 31 Mar 2012 14:55      1
                               1340 31 Mar 2012 14:56      1
                               1341 31 Mar 2012 15:05      1
                               1342 31 Mar 2012 15:11      1
                               1343 31 Mar 2012 15:20      1

                               1344 31 Mar 2012 16:10      1

                               1345 31 Mar 2012 17:00      1

                               1346 31 Mar 2012 18:12      1

                               1347 31 Mar 2012 19:00      1
                               1348 31 Mar 2012 20:00      1
                               1349 31 Mar 2012 21:00      1
                               1350 31 Mar 2012 22:00      1
                               1351 31 Mar 2012 23:00      1
                               1352 01 Apr 2012 00:00      1
                               1353 01 Apr 2012 01:00      1
                               1354 01 Apr 2012 02:00      1
                               1355 01 Apr 2012 03:00      1
                               1356 01 Apr 2012 04:00      1
                               1357 01 Apr 2012 05:00      1
                               1358 01 Apr 2012 06:00      1
                               1359 01 Apr 2012 07:00      1
                               1360 01 Apr 2012 08:00      1
                               1361 01 Apr 2012 09:00      1
                               1362 01 Apr 2012 10:00      1

                               1363 01 Apr 2012 11:27      1
                               1364 01 Apr 2012 12:00      1
                               1365 01 Apr 2012 13:00      1
                               1366 01 Apr 2012 14:00      1
                               1367 01 Apr 2012 15:00      1
                               1368 01 Apr 2012 16:00      1

                               1369 01 Apr 2012 17:00      1
                               1370 01 Apr 2012 18:00      1
                               1371 01 Apr 2012 19:00      1
                               1372 01 Apr 2012 20:00      1
                               1373 01 Apr 2012 21:00      1
                               1374 01 Apr 2012 22:00      1
                               1375 01 Apr 2012 23:00      1
                               1376 02 Apr 2012 00:00      1
                               1377 02 Apr 2012 01:00      1
                               1378 02 Apr 2012 02:00      1
                               1379 02 Apr 2012 03:00      1
                               1380 02 Apr 2012 04:00      1
                               1381 02 Apr 2012 05:00      1
                               1382 02 Apr 2012 06:00      1
                               1383 02 Apr 2012 07:00      1
                               1384 02 Apr 2012 08:00      1
                               1385 02 Apr 2012 09:00      1
                               1386 02 Apr 2012 10:00      1
                               1387 02 Apr 2012 11:00      1
                               1388 02 Apr 2012 12:00      1

                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
pmes2        PMES              1389 02 Apr 2012 13:00      1
                               1390 02 Apr 2012 14:00      1
                               1391 02 Apr 2012 15:00      1
                               1392 02 Apr 2012 16:00      1
                               1393 02 Apr 2012 17:00      1
                               1394 02 Apr 2012 18:00      1
                               1395 02 Apr 2012 19:00      1
                               1396 02 Apr 2012 20:00      1
                               1397 02 Apr 2012 21:00      1
                               1398 02 Apr 2012 22:00      1
                               1399 02 Apr 2012 23:00      1
                               1400 03 Apr 2012 00:00      1
                               1401 03 Apr 2012 01:00      1
                               1402 03 Apr 2012 02:00      1
                               1403 03 Apr 2012 03:00      1
                               1404 03 Apr 2012 04:00      1
                               1405 03 Apr 2012 05:00      1
                               1406 03 Apr 2012 06:00      1
                               1407 03 Apr 2012 07:00      1
                               1408 03 Apr 2012 08:00      1
                               1409 03 Apr 2012 09:00      1
                               1410 03 Apr 2012 10:00      1
                               1411 03 Apr 2012 11:00      1
                               1412 03 Apr 2012 12:00      1
                               1413 03 Apr 2012 13:00      1
                               1414 03 Apr 2012 14:00      1
                               1415 03 Apr 2012 15:00      1



Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 1276
Begin Snapshot Id specified: 1276

Enter value for end_snap: 1277
End   Snapshot Id specified: 1277



Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_2_1276_1277.html.  To use this name,
press <return> to continue, otherwise enter an alternative.

Enter value for report_name:             

Using the report name awrrpt_2_1276_1277.html


<html .........

SQL/> exit


分享到:
评论

相关推荐

    AWR报告生成详解

    9. 生成报告后,可通过SSH登录系统并将报告下载到本地。 **AWR报告内容详解** AWR报告主要包含以下部分: 1. **数据库概览**:展示数据库的基本信息,如版本、操作系统、CPU、内存等。 2. **性能指标**:CPU使用...

    AWR报告生成详解.doc

    在sqlplus中执行`@awrrpt`脚本来启动AWR报告生成流程。根据提示,你可以选择报告的输出格式,如text或html,这里以html为例。然后,你需要指定报告覆盖的天数,例如输入1表示最近一天的数据。系统会列出这段时间内的...

    ORACLE AWR报告生成.docx

    在Oracle 11g中,生成AWR报告主要通过运行`awrrpt`脚本来完成。 首先,你需要访问Oracle的`rdbms/admin`目录,找到`awrrpt`脚本。这个脚本通常位于Oracle的安装路径下,例如`$ORACLE_HOME/rdbms/admin`。在SQL*Plus...

    脚本生成AWR报告步骤

    AWR报告的生成需要运行Oracle自带的`awrrpt.sql`脚本。该脚本位于Oracle安装目录下的`$ORACLE_HOME/rdbms/admin`路径中。运行命令如下: ```sql SQL&gt; @?/rdbms/admin/awrrpt.sql ``` 其中,`?`符号代表的是Oracle的...

    win+Oracle 生成awr报告

    在生成报告时,需要指定一个 Snap ID 范围来限制报告的数据范围。例如,输入 `1520` 和 `1530` 分别作为开始和结束的 Snap ID。 ##### 8. 确认报告文件名 最后,系统会询问是否接受默认的报告文件名,或者允许用户...

    ORACLE_AWR报告生成和分析.doc

    AWR报告是通过对AWR视图进行查询生成的,它提供了丰富的性能指标,帮助DBA了解数据库的运行状况,识别潜在的性能瓶颈。 生成AWR报告通常通过执行`dbms_workload_repository.create_snapshot`存储过程,并结合Oracle...

    awr报告生成.docx

    /rdbms/admin/awrrpt`命令来启动AWR报告的生成过程。 - 按下回车键,默认情况下报告将以HTML格式生成。 - 输入数字`1`来查询过去一天的数据。 - 指定开始和结束时间点,以便更精确地定位问题时间段。 - 输入报告...

    awr报告无法生成原因分析

    最近想要通过awr观察下某个oracle实例的性能情况,碰到了在sqlplus执行awrrpt.sql到选择snapshot区间的时候无任何区间供选导致无法进一步生 成awr的情况,而且手动使用execute DBMS_WORKLOAD_REPOSITORY.CREATE_...

    oracle生成Awr报告

    3. 找到AWR报告生成脚本`awrrpt.sql`,通常位于Oracle安装目录下的`/rdbms/admin/`子目录。可以通过以下两种方式执行: - `SQL&gt;@/home/oracle/app/oracle11g/product/11.2.0/dbhome_1/rdbms/admin/awrrpt.sql` - ...

    oracle抓取指定时间段AWR报告实例说明 .docx

    接下来,需要输入希望生成报告的最近天数。这个数值决定了报告所涵盖的数据范围,通常根据具体的性能问题定位需要来确定。 **第七步:输入时间段对应的SnapID** 为了精确地抓取指定时间段的AWR报告,需要提供该时间...

    收集AWR报告

    登录后,执行AWR报告生成脚本`awrrpt`。该脚本位于Oracle数据库的RDBMS库中,具体路径如下: ```sql @?/rdbms/admin/awrrpt ``` 执行此命令后,将启动AWR报告生成流程,引导用户完成一系列配置选项的选择。 #### ...

    awrrpt_1_259_282.rar

    Oracle AWR(Automatic Workload Repository)报告是数据库性能分析的重要工具,主要用于收集并分析数据库的运行情况,包括SQL语句、...同时,定期生成和分析AWR报告是监控数据库健康状况和预防性能问题的关键步骤。

    oracle AWR性能监控报告生成方法

    9. **生成报告**: 最后,按`exit`退出SQL*Plus命令行模式。此时,你应该在当前目录下找到生成的HTML报告。打开它,你将看到关于数据库性能的详细信息,包括SQL语句统计、等待事件、系统资源使用情况等。 AWR报告...

    AWR鹰眼系列AWR报告全面指标分析

    通过AWR报告,管理员可以生成不同类型的性能报告,例如AWR报告(awrrpt)、AWR基线报告(awrddrpt)、AWR比较报告(awrgrpt)和RAC全局AWR报告。这些报告能够帮助用户了解数据库的性能状况和资源使用情况。AWR的报告...

    性能测试监控数据库 打印AWR报告

    12. **生成报告**: 执行上述步骤后,报告将在当前目录下生成,并且可以通过浏览器打开以查看详细信息。 AWR报告提供了丰富的数据库性能信息,包括CPU使用率、I/O统计、等待事件、SQL语句性能等,帮助DBA和性能...

    awr生成.docx

    5. 在SQL*Plus中运行`awrrpt.sql`脚本以生成AWR报告: ``` @awrgrpt.sql ``` 6. 根据提示选择报告类型(text或html),这里以html为例,输入`html`。 7. 选择查看的镜像记录时间段,例如输入`1`表示查看今天的...

    ORACLE数据库(11g或10g)AWR与ADDM报告收集方法

    - 收集AWR报告的脚本:awrrpt.sql - 收集ADDM报告的脚本:addmrpt.sql 在执行收集报告的命令时,系统会询问报告文件的保存格式,一般选择html格式;也会询问要收集的信息天数,例如收集一天内的数据就输入1。之后,...

    Oracle 导出某时间段AWR与ASH性能报告操作日志

    ASH报告同样可以通过预定义的脚本生成,用于分析活跃会话的历史数据。 ``` SQL&gt; @?/rdbms/admin/ashrpt.sql; ``` ASH报告提供了活跃会话的历史数据,包括等待事件、执行的SQL语句等信息,对于分析性能瓶颈非常有...

Global site tag (gtag.js) - Google Analytics