오라클 AWR
DB CAFE
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
1 AWR 리포트 출력 방법[편집]
1.1 awrrpt.sql 실행[편집]
- awr*.sql 파일 위치($ORACLE_HOME/rdbms/admin) 으로 이동
cd $ORACLE_HOME/rdbms/admin
ls awr*
-- awrrpt.sql 은 현재 노드 리포트 출력
-- awrrpti.sql 은 RAC 에서 다른 노드(DB서버)의 리포트 출력
sqlplus / as sysdba;
@?/rdbms/admin/awrrpt.sql
1.2 리포트 저장 타입[편집]
- 리포트 저장 타입 입력 : 기본 html
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
1632937457 BAP 1 BAP1
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: html
1.3 리포트 일수[편집]
- 리포트 일수 입력
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1632937457 1 BAP BAP1 acc1
1632937457 2 BAP BAP2 acc2
Using 1632937457 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.
-- 리포트할 일자 입력
Enter value for num_days: 1
1.4 시작~종료시간 스냅 ID 선택[편집]
- 시작 ~ 종료 스냅 id 입력(시간)
Listing the last day's Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
BAP1 BAP 2665 13 May 2021 00:00 1
2666 13 May 2021 01:00 1
2667 13 May 2021 02:00 1
2668 13 May 2021 03:00 1
2669 13 May 2021 04:00 1
2670 13 May 2021 05:00 1
2671 13 May 2021 06:00 1
2672 13 May 2021 07:00 1
2673 13 May 2021 08:00 1
2674 13 May 2021 09:00 1
2675 13 May 2021 10:00 1
2676 13 May 2021 11:00 1
2677 13 May 2021 12:00 1
2678 13 May 2021 13:00 1
2679 13 May 2021 14:00 1
2680 13 May 2021 15:00 1
2681 13 May 2021 16:00 1
2682 13 May 2021 17:00 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 2665
Begin Snapshot Id specified: 2665
Enter value for end_snap: 2682
End Snapshot Id specified: 2682
1.5 리포트명 입력 및 종료[편집]
- 리포트 명 입력 및 종료
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_2665_2682.html. To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name: BAP_AWR_20210513.html
Report written to BAP1_AWR_20210513.html
SQL> exit
- 종료하면 해당 폴더에 리포트를 확인 한다.