日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle查看语句执行历史,AWT查看oracle历史sql语句执行

發布時間:2023/12/19 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle查看语句执行历史,AWT查看oracle历史sql语句执行 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

進入到$ORACLE_HOME/rdbms/admin目錄下。

然后sqlplus "/as sysdba"登陸到數據庫

執行@awrrpt.sql;

[oracle@appdb2 admin]$ cd $ORACLE_HOME/rdbms/admin

[oracle@appdb2 admin]$ sqllus / as sysdba

-bash: sqllus: command not found

[oracle@appdb2 admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Mon Jul 21 17:21:09 2014

Copyright (c) 1982, 2009, Oracle.? All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @awrrpt.sql;

Current Instance

~~~~~~~~~~~~~~~~

DB Id??? DB Name????? Inst Num Instance

----------- ------------ -------- ------------

3565904331 DEMO??????????????? 1 demo

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:

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: 1

Type Specified:? 1

Instances in this Workload Repository schema

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id???? Inst Num DB Name????? Instance???? Host

------------ -------- ------------ ------------ ------------

* 3565904331??????? 1 DEMO???????? demo???????? appdb2.fleet

y.com

Using 3565904331 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 without

specifying a number lists all completed snapshots.

Enter value for num_days: 1

Listing the last day's Completed Snapshots

Snap

Instance???? DB Name??????? Snap Id??? Snap Started??? Level

------------ ------------ --------- ------------------ -----

demo???????? DEMO????????????? 8612 21 Jul 2014 00:00????? 1

8613 21 Jul 2014 01:00????? 1

8614 21 Jul 2014 02:00????? 1

8615 21 Jul 2014 03:00????? 1

8616 21 Jul 2014 04:00????? 1

8617 21 Jul 2014 05:00????? 1

8618 21 Jul 2014 06:00????? 1

8619 21 Jul 2014 07:00????? 1

8620 21 Jul 2014 08:00????? 1

8621 21 Jul 2014 09:00????? 1

8622 21 Jul 2014 10:00????? 1

8623 21 Jul 2014 11:00????? 1

8624 21 Jul 2014 12:00????? 1

8625 21 Jul 2014 13:00????? 1

8626 21 Jul 2014 14:00????? 1

8627 21 Jul 2014 15:00????? 1

8628 21 Jul 2014 16:00????? 1

8629 21 Jul 2014 17:00????? 1

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

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的oracle查看语句执行历史,AWT查看oracle历史sql语句执行的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。