Sie sind auf Seite 1von 43

dbWatch AS

www.dbwatch.no
November 17, 2010 1:11:35 PM

Health check report for Oracle 10g database


The dbWatch Report displays data collected by the dbWatch tasks installed on the dbWatch Engine. The aim of this report is to
enable a DBA to identify bottlenecks in the database system, and provide the DBA with enough information to trace down the
critical objects. The different sections display tables and charts that visualize the current situation and the trend over time for
the database. There are sections for space usage analysis, memory analysis, growth analysis, configuration and parameter
analysis, activity pattern analysis, error logs etc. As a DBA this report gives you the tool you need to perform long term
configuration and maintenance to secure that your database system runs at an optimal level.
Health check report for Oracle 10g database

Databases
The report encompasses information from the following databases:
- oracle 10g

Page 2
Health check report for Oracle 10g database

1. Status overview
1.1. Status on check information
The following table lists basic information on the installed checks.

Check Status Last run (date)


Alert log check 10g OK 17/11/2010 13:10
Archive status Check OK 17/11/2010 13:10
File status check OK 17/11/2010 13:11
Job scheduling check OK 17/11/2010 13:05
Flash Recovery Area Usage OK 17/11/2010 13:10
Free extents check OK 17/11/2010 11:35
Segment size status ("old style" tablespaces) OK 17/11/2010 11:33
Tablespace free space check OK 17/11/2010 11:45
CPU load OK 17/11/2010 13:09
RMAN backup status WARNING 17/11/2010 11:34
Blocking detector OK 17/11/2010 13:09

1.2. Last 10 Warnings/Alarms


The following table lists the 10 last occured warnings and alarms.

Check Status Occured (date)


RMAN backup status WARNING 17/11/2010 11:34
Alert log check 10g WARNING 17/11/2010 11:10

Page 3
Health check report for Oracle 10g database

2. System overview
The sections shows overall information concerning the database.

2.1. Database information


The table below lists the identification information for the database.

SID DBMS Type (vendor) Version (#) Database Host OS


ora10g3 Oracle 10.2.0.1.0 ORA10G3 MAREKSPC 32-bit Windows:

2.2. Database version


The table below shows the Oracle version information.

Banner
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE10.2.0.1.0Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

2.3. Database Components


The table below shows information from DBA_REGISTRY dictionary view which displays information about the components loaded into the database.

Component ID Status Version Component Name


AMD VALID 10.2.0.1.0 OLAP Catalog
APS VALID 10.2.0.1.0 OLAP Analytic Workspace
CATALOG VALID 10.2.0.1.0 Oracle Database Catalog Views
CATJAVA VALID 10.2.0.1.0 Oracle Database Java Packages
CATPROC VALID 10.2.0.1.0 Oracle Database Packages and Types

Page 4
Health check report for Oracle 10g database

CONTEXT VALID 10.2.0.1.0 Oracle Text


EM VALID 10.2.0.1.0 Oracle Enterprise Manager
EXF VALID 10.2.0.1.0 Oracle Expression Filter
JAVAVM VALID 10.2.0.1.0 JServer JAVA Virtual Machine
ODM VALID 10.2.0.1.0 Oracle Data Mining
ORDIM VALID 10.2.0.1.0 Oracle interMedia
OWM VALID 10.2.0.1.0 Oracle Workspace Manager
RUL VALID 10.2.0.1.0 Oracle Rules Manager
SDO VALID 10.2.0.1.0 Spatial
XDB VALID 10.2.0.1.0 Oracle XML Database
XML VALID 10.2.0.1.0 Oracle XDK
XOQ VALID 10.2.0.1.0 Oracle OLAP API

2.4. Availability statistics


The table below shows availability information about the monitoring session.

DBMS uptime Monitored Down Uptime (%)


3 days 16 hours 44 min 0 days 2 hours 9 min 0 days 0 hours 0 min 100.0

2.5. DBMS uptime periods


The table below shows the periods of time when the database was started/stopped etc. It gives a good indication of the restart frequency of the database.

Period (#) DBMS startup Last sampled date Period span (in days, hours and minutes)
1 13-11-2010 20:27 17-11-2010 13:11 3 days 16 hours 44 min

Page 5
Health check report for Oracle 10g database

2.6. Database growth rate


The table below shows the total size of the database, space used and growth rate.

Total size of DB (GB) Space used (GB) Growth rate (GB/year)


1.5 1.1 3.39

2.7. Database growth


The chart below shows the current growth rate of the database.

Page 6
Health check report for Oracle 10g database

3. Space usage statistics


All database data are organized in units called segments. Segments are grouped by object types such as tables, indexes, clusters etc. Each segment consists of
blocks (the smallest storage unit in Oracle). The blocks are connected to the file system blocks. A database usually consists of thousands of segments, so each
cannot be monitored individually. We therefore retrieve detailed information about the segments that need to be monitored more closely, such as the largest
segments in the database. This section displays information on all segment types and more detailed information on the largest segments.

3.1. Schemas
The following table provides an overview of the object count and size in the monitored database environment. (the 15 largest schemas are shown)

Schema Segment count (#) Segment size (MB)


SYS 1,705 707.6
XDB 753 48.1
SYSMAN 760 48.1
MDSYS 125 32.4
SYSTEM 355 22.2
DBW_7434_C 94 16.4
OLAPSYS 249 15.6
DBW_7434_A 99 15.1
DBWATCH 99 14.6
DBW_7520 97 10.6
DBW_7434_B 60 7.0
DBW_ALAN 101 6.9
WMSYS 110 6.9
DBW_7434_D 59 6.8
DBW_7434_E 59 6.8

Page 7
Health check report for Oracle 10g database

3.2. Segment count and segment size


The following chart visualizes the populated table above. (the 15 largest schemas are shown)

Page 8
Health check report for Oracle 10g database

3.3. Growth rate - schemas


The following chart visualizes the growth rate for the top 5 largest schemas.

Page 9
Health check report for Oracle 10g database

3.4. Growth rate - segment types per owner


The following chart visualizes the growth rate for the largest segments types (3 largest schemas).

3.5. Largest segments


The table below lists the largest segments in the database. It is important to monitor these according to disk usage.

Owner Segment Segment type Tablespace Extents (#) Total segment size (MB)
MDSYS SYS_LOB0000046123C00006$$ LOBSEGMENT SYSAUX 33 18
SYS SOURCE$ TABLE SYSTEM 64 49
SYS TEST_TAB TABLE TEST 56 41
SYS BIN$1J/kbgsxQkiOOxy9JhN5BA==$0 TABLE TEST 55 40
SYS IDL_UB2$ TABLE SYSTEM 35 20
SYS PK_CT INDEX SYSTEM 10 10
SYS C_TOID_VERSION# CLUSTER SYSTEM 31 16
SYS WRI$_OPTSTAT_HISTGRM_HISTORY TABLE SYSAUX 28 13

Page 10
Health check report for Oracle 10g database

SYS C_OBJ#_INTCOL# CLUSTER SYSTEM 11 11


SYS IDL_UB1$ TABLE SYSTEM 93 175
SYS I_WRI$_OPTSTAT_H_OBJ#_ICOL#_ST INDEX SYSAUX 35 20

3.6. Growth rate of the largest segments


The chart below shows the growth rate of the largest segments. Typically it will be a few segments which make up most of the size development in a schema.
The chart contains all elements that have been in the ‘top largest segments’ list

Page 11
Health check report for Oracle 10g database

4. Memory usage statistics


This chapter shows memory statistics.

4.1. Initialization file


The following table indicates whether a spfile is used or not. (for oracle 8 the table is empty)

Parameter Path
spfile E:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORA10G3.ORA

4.2. Memory initialization parameters


The following table shows relevant parameters and their values. Please note that pga_aggregate_target (> 9i) and sga_target (> 10g) settings will cause Oracle
to dynamicaly allocate memory resources. Dynamically allocated memory values are not visible to users and will be shown as zero values in the table below.

Parameter Value (MB)


sga_max_size 300.0
shared_pool_size 152.0
pga_aggregate_target 50.0
java_pool_size 32.0
db_cache_size 8.0
log_buffer 6.7
sort_area_size 0.1
(db _block_buffers * db_block_size) 0.0
large_pool_size 0.0
sga_target 0.0

Page 12
Health check report for Oracle 10g database

4.3. User memory statistic history


The following chart shows the history of user memory allocation during the last 48 hours.

Page 13
Health check report for Oracle 10g database

4.4. SGA pool size.


The following chart shows SGA pool components' sizes in MB.

Page 14
Health check report for Oracle 10g database

4.5. SGA pools(shared, large, java) statistic history


The following chart shows the history of buffer size variations for the largest buffers in the system global area during the last 48 hours.

Page 15
Health check report for Oracle 10g database

4.6. Data cache statistics.


The graph below shows the hit ratios for buffer cache versus the number of buffer gets (logical Buffer Gets. The relationship between these statistics is good
indication of the IO efficiency of the database and the applications using the system.

Page 16
Health check report for Oracle 10g database

5. Session statistics
5.1. Logon history
Shows logon history collected from v$session performance view.

5.2. Current connections from hosts.


Shows which host have the highest number of sessions. (Top 10)

Hostname Sessions
marekspc 9

Page 17
Health check report for Oracle 10g database

5.3. Current connection per username (schema)


Shows which users (schemas) have the highest number of sessions. (Top 10)

Username Sessions
DBW_7534 5
DBW_7520 4

5.4. Current application types.


Shows which programs (applications) have the highest number of connections. (Top 10)

Program Sessions
dbWatch 9.2 (engine) 8
dbWatch 9.2 (sql worksheet) 1

5.5. Current connections.


Shows top 50 current sessions. Active and newest first.

Username Login time Schema Status Hostname Program name


DBW_7534 2010-11-17 11:01:42.0 DBW_7534 ACTIVE marekspc dbWatch 9.2 (engine)
DBW_7534 2010-11-17 13:10:42.0 DBW_7534 INACTIVE marekspc dbWatch 9.2 (sql worksheet)
DBW_7534 2010-11-17 11:01:40.0 DBW_7534 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7534 2010-11-17 10:59:53.0 DBW_7534 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7534 2010-11-17 10:59:48.0 DBW_7534 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7520 2010-11-17 10:38:10.0 DBW_7520 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7520 2010-11-17 10:38:10.0 DBW_7520 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7520 2010-11-17 10:37:38.0 DBW_7520 INACTIVE marekspc dbWatch 9.2 (engine)
DBW_7520 2010-11-17 10:37:04.0 DBW_7520 INACTIVE marekspc dbWatch 9.2 (engine)

Page 18
Health check report for Oracle 10g database

5.6. Aggregated Logon history


Shows aggregated logon history collected from v$session performance view.

Page 19
Health check report for Oracle 10g database

6. File IO statistics
Oracle maintains the information regarding the different types of files (data files, temporary files etc.); each of these statistics requires its own interpretation to
understand the use of the disk resources on the host machine. This chapter shows information concerning data files. The data files are physically located in the
file system of the Oracle server and they contain all data stored in the database, including metadata. The data files are grouped in the logical storage unit
tablespace. Looking at the tablespace growth directly gives a more correct insight into how much disk resources particular applications (which typically have
their own tablespaces) consume.

6.1. Physical reads and writes


The chart below shows physical reads and writes for all data files.

Page 20
Health check report for Oracle 10g database

6.2. Statistics for data files with the highest average physical reads
The chart below shows data files with the highest average physical reads, i.e. how many times the database has had to read from that particular file in order to
satisfy a request. Disk reads can be alleviated by buffering tables in memory or by reducing transaction loads. If some particular data file needs to be read often
it may be beneficial to store this file on its own disk.

6.3. Datafiles with the highest average physical reads


File ID (#) Name Tablespace Size (MB)
1 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\SYSTEM01.DBF SYSTEM 550
5 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBWATCH_01.DBF DBWATCH 120
3 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\SYSAUX01.DBF SYSAUX 360
15 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBW_7534_01.DBF DBW_7534 100

Page 21
Health check report for Oracle 10g database

6.4. Statistics for data files with the highest average physical writes
The chart below shows data files with the highest average physical writes for each data file. Write operations are caused by transactions that update tables in the
database. Depending on the type of database you will see a lot of write activity or very little. If both read and write activity is high and you experience lag your
safest bet is either to reduce the load on the database (by optimizing SQL statements or rescheduling regular tasks) or moving the data file to another disk.

6.5. Datafiles with the highest average physical writes


File ID (#) Name Tablespace Size (MB)
3 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\SYSAUX01.DBF SYSAUX 360
5 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBWATCH_01.DBF DBWATCH 120
2 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\UNDOTBS01.DBF UNDOTBS1 40
6 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\GRIDCONTROL01.DMF GRIDCONTROL 30

Page 22
Health check report for Oracle 10g database

6.6. Aggregate IO history


Shows aggregated reads and writes values per day.

6.7. File statistics


The table below lists all data files in the database. The column "Auto" refer to AUTOEXTENSIBLE column in DBA_DATA_FILES dictionary view, while
"Max" refer to MAXBYTES column.

Tablespace Name Size (MB) Max (GB) Auto


DBWATCH E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBWATCH_01.DBF 120.0 0.5 YES
DBWATCH7474 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBWATCH.DBF 50.0 0.5 YES
DBW_7434_D E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBW_7434_D_01.DBF 40.0 0.3 YES
DBW_7534 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\DBW_7534_01.DBF 100.0 0.5 YES
GRIDCONTROL E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\GRIDCONTROL01.DMF 30.0 0.0 NO
JORAPTHNODE1 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\JORAPHNODE1.DBF 50.0 0.2 YES
SYSAUX E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\SYSAUX01.DBF 360.0 32.767984375 YES

Page 23
Health check report for Oracle 10g database

SYSTEM E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\SYSTEM01.DBF 550.0 32.767984375 YES


TEST E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEST_01.DBF 2.0 0.0 NO
TEST E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEST_03.DBF 81.0 0.0 NO
TEST E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEST_02.DBF 1.0 0.0 NO
TEST2 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEST2_01.DBF 2.0 0.0 NO
TEST3 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEST3_01.DBF 3.0 0.0 NO
UNDOTBS1 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\UNDOTBS01.DBF 40.0 32.767984375 YES
USERS E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\USERS01.DBF 5.0 32.767984375 YES

Page 24
Health check report for Oracle 10g database

7. Redolog analysis
Redolog files contain information about transactions in the database. This information is used under 'media recovery' and 'instance recovery' (to rebuild
corrupted/deleted data files or reinstall a terminated instance). This chapter reviews the configuration and efficiency of the redolog files. Archive files are
backups of redolog files. When a redolog file is full or a redolog switch is performed, the content of the redolog files is copied to an archive file (each archive
activity generates 1 archive file pr. redolog file). A corrupt redolog will lead to loss of data. Switching is an automatic activity which is performed when the
redolog file is full. The number of switches is a function of the transaction count and size plus the file size. You can also activate automatic redolog switching
so that switching can be performed regularly independent of the transactions.

7.1. Redolog files


The table below lists existing redolog files. If several members (physical redolog files) belong to the same group they are mirrored (something which gives
better protections and is highly recommended). In additon the table lists the redolog files sizes. The following charts shows statistics regarding log swithces.

Thread (ID) Group (ID) Member (path) Size (MB) Status


1 1 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\REDO01.LOG 50 CURRENT
1 2 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\REDO02.LOG 50 INACTIVE
1 3 E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\REDO03.LOG 50 INACTIVE

Page 25
Health check report for Oracle 10g database

7.2. Redolog switch frequency pr. day


The chart below shows the number of redolog switches pr. day. This chart gives and insigth into the databases transaction rate. Since switching is a resource
demanding task, it is recommended that switching occurs every 5-20 minutes. However, this should be done according to the specific environment.

Page 26
Health check report for Oracle 10g database

7.3. Redolog switch frequency per hour


The chart below shows the number of redolog switches per hour. Even if statistics over number of redologs switches pr. day is satisfying you should make sure
check that they are evenly distributed across the day.

Page 27
Health check report for Oracle 10g database

7.4. Transaction frequency


The chart below shows the transaction frequency.

Page 28
Health check report for Oracle 10g database

8. Tablespace statistics
8.1. Tablespaces
The following table presents general statistics for the largest tablespaces (maximum 20 tablespaces will be shown). The “Free extents#” column may indicate
defragmentation of the tablespace.

Name Size (MB) Free space (MB) Free extents (#) Percent free (%)
SYSTEM 550 28 2 5.1
SYSAUX 360 33 104 9.2
DBWATCH 120 10 9 8.3
DBW_7534 100 95 1 95.0
TEST 84 42 58 50.0
JORAPTHNODE1 50 44 2 88.0
DBWATCH7474 50 44 2 88.0
UNDOTBS1 40 13 11 32.5
DBW_7434_D 40 26 2 65.0
GRIDCONTROL 30 16 3 53.3
TEMP 20 20 1 100.0
USERS 5 5 1 100.0
TEST3 3 1 1 33.3
TEST2 2 2 1 100.0

Page 29
Health check report for Oracle 10g database

8.2. Tablespace size


Used and free space in each of the 10 largest tablespaces.

Page 30
Health check report for Oracle 10g database

8.3. Tablespace growth rate


The following chart visualizes the growth rate for the 5 largest tablespaces.

Page 31
Health check report for Oracle 10g database

9. Sorting and temporary space


9.1. Temporary data files
The following table presents storage configuration for temporary files.

Tablespace Filename Size (MB) Autoextensible Max size (GB) Inbrement by (bytes)
TEMP E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G3\TEMP01.DBF 20.0 YES 33.0 80.0

9.2. Sorts statistics for memory and disk.


The following chart shows the relationship between sorts in memory vs. sorts to disk for the last 48 hours. .

Page 32
Health check report for Oracle 10g database

9.3. Sort statistics by rows


The following chart shows the number of rows sorted over the last 48 hours.

Page 33
Health check report for Oracle 10g database

9.4. Physical reads/writes for temporary tablespaces.


The following chart shows read and write statistics for temporary tablespaces defined with temporary data files (using temp file option in tablespace creation)
over the last 48 hours.

Page 34
Health check report for Oracle 10g database

10. SQL statements analysis


The following section lists statistics from V$SQLAREA dynamic performance view. The statistics are divided into four tables sorted by the following
categorys/values: "rows processed", "buffer gets", "disk reads" and "most executed".

10.1. Statistics for cursors with the highest value of rows processed
The following table lists statistics for cursors with the highest value of records processed.

Rows processed Average rows processed Average buffer gets Hit Average CPU (sec) SQL text
ratio
56,920 15 3 93.02 0.45 select /*+ rule */ bucket, endpoint, col#, epvalue from histgrm$ where
obj#=:1 and intcol#=:2 and row#=:3 order by bucket
49,657 1 2 99.99 0.062 SELECT EXECUTION_COUNTER FROM DBW_TASKS WHERE
TASK_ID=:B1
49,365 98 112 100.0 1.845 DELETE FROM DBW_INSTANCEMEM WHERE H_DATE < :B1
47,766 1 7 100.0 0.094 SELECT NVL(MAX(VALUE),0) FROM DBW_INSTANCEMEM
WHERE H_DATE=:B2 AND STATISTIC#=:B1
47,766 1 3 99.44 0.075 INSERT INTO DBW_INSTANCEMEM VALUES ( :B3 , :B2 , :B1 )
47,766 1 3 99.27 0.082 INSERT INTO DBW_INSTANCEMEM_HISTR VALUES (:B2 ,
:B6 +1, :B5 , :B4 , :B4 -:B3 , ROUND((:B2 -:B1 )*(24*60*60)) )
38,474 1 1 100.0 0.073 select count(*) from sys.job$ where (next_date > sysdate) and
(next_date < (sysdate+5/86400))
33,652 1 0 76.81 0.197 BEGIN dbw_7520.dbw_getEngineTime(:1); END;
26,825 1 1 99.97 0.058 SELECT TASK_ID FROM DBW_TASKS WHERE TASK_ID=:B1
26,601 1 1 100.0 0.044 SELECT TASK_ID FROM DBW_TASKS WHERE TASK_ID =:B1

Page 35
Health check report for Oracle 10g database

10.2. Statistics for cursors with the highest value of buffer gets
The following table lists statistics for cursors with the highest value of buffer gets.

Buffer gets Average buffer gets Hit ratio Average CPU (sec) SQL text
6,597,577 391 96.69 26.754 BEGIN dbw_7520.dbw_executeTask(:1,:2); END;
2,757,404 9,608 98.84 284.395 BEGIN dbms_waits(23);END;
1,514,730 81 98.47 3.041 SELECT MAX(NVL(EXECUTION_COUNTER,0)) FROM DBW_WAITS_HISTR
1,433,873 4,961 98.76 167.499 BEGIN latch_stat(26);END;
1,371,824 1,371,824 95.49 43,892.488 call dbms_stats.gather_database_stats_job_proc ( )
1,177,648 130 90.97 20.692 BEGIN dbw_test09.dbw_executeTask(:1,:2); END;
927,346 927,346 69.66 12,187.5 call dbms_space.auto_space_advisor_job_proc ( )
904,500 11,030 69.37 131.539 SELECT OWNER, SEGMENT_NAME, PARTITION_NAME, SEGMENT_TYPE,
TABLESPACE_NAME, TABLESPACE_ID FROM SYS_DBA_SEGS WHERE
SEGMENT_OBJD = :B1
701,280 241 99.98 0.729 SELECT SU.NAME, SO.NAME, A.STATSTYPE#, C.INTCOL# FROM
ASSOCIATION$ A, OBJ$ O, USER$ U, COL$ C, OBJ$ SO, USER$ SU,
COLTYPE$ CT, OBJ$ TY WHERE O.OWNER#=U.USER# AND
A.OBJ#=TY.OBJ# AND O.OBJ#=C.OBJ# AND C.INTCOL#=CT.INTCOL# AND
O.OBJ#=CT.OBJ# AND CT.TOID=TY.OID$ AND A.STATSTYPE#=SO.OBJ#
AND SO.OWNER#=SU.USER# AND O.TYPE#=2 AND O.NAME=:B3 AND
U.NAME=:B2 AND C.NAME=:B1
599,781 54 97.65 2.387 SELECT MAX(NVL(EXECUTION_COUNTER,0)) FROM
DBW_LATCHSTAT_HISTR

10.3. Statistics for cursors with the highest value of disk reads
The following table lists statistics for cursors with the highest value of disk reads.

Disk reads Average disk reads Hit ratio Average CPU (sec) SQL text
403,911 403,911 69.66 12,187.5 call dbms_space.auto_space_advisor_job_proc ( )
399,338 4,870 69.37 131.539 SELECT OWNER, SEGMENT_NAME, PARTITION_NAME, SEGMENT_TYPE,
TABLESPACE_NAME, TABLESPACE_ID FROM SYS_DBA_SEGS WHERE
SEGMENT_OBJD = :B1
226,015 13 96.69 26.754 BEGIN dbw_7520.dbw_executeTask(:1,:2); END;

Page 36
Health check report for Oracle 10g database

117,895 39,298 71.05 1,308.539 BEGIN free_extents(10);END;


116,890 13 90.97 20.692 BEGIN dbw_test09.dbw_executeTask(:1,:2); END;
107,942 750 50.95 36.96 select OBJOID, CLSOID, RUNTIME, PRI, JOBTYPE, SCHLIM, WT, INST,
RUNNOW, ENQ_SCHLIM from ( select a.obj# OBJOID, a.class_oid CLSOID,
decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) RUNTIME,
(2*a.priority + decode(bitand(a.job_status, 4), 0, 0,
decode(a.running_instance, :1, -1, 1))) PRI, 1 JOBTYPE, a.schedule_limit SCHLIM,
a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST,
decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status,
8388608), 0, 0, 1) ENQ_SCHLIM from sys.scheduler$_job a where
bitand(a.job_status, 515) = 1 and ((bitand(a.flags, 134217728 + 268435456) = 0) or
(bitand(a.job_status, 1024) <> 0)) and bitand(a.flags, 4096) = 0 and
(a.next_run_date <= :2 or bitand(a.flags, 16384) <> 0) and (a.class_oid is null
or (a.class_oid is not null and a.class_oid in (select b.obj# from
sys.scheduler$_class b where b.affin
86,233 129 80.22 27.422 BEGIN dbw_7534.dbw_executeTask(:1,:2); END;
64,805 64,805 95.49 43,892.488 call dbms_stats.gather_database_stats_job_proc ( )
62,786 31,393 75.1 1,125.028 BEGIN free_extents(13);END;
58,455 1,083 50.12 23.252 select o.obj#, u.name, o.name, t.spare1, DECODE(bitand(t.flags, 268435456),
268435456, t.initrans, t.pctfree$) from sys.obj$ o, sys.user$ u, sys.tab$ t where
(bitand(t.trigflag, 1048576) = 1048576) and o.obj#=t.obj# and o.owner# =
u.user#

10.4. Statistics of most executed cursors


The following table lists statistics for most executed cursors.

Executions Average buffer gets Hit ratio Average CPU (sec) SQL text
49,657 2 99.99 0.062 SELECT EXECUTION_COUNTER FROM DBW_TASKS WHERE
TASK_ID=:B1
47,766 3 99.27 0.082 INSERT INTO DBW_INSTANCEMEM_HISTR VALUES (:B2 , :B6 +1, :B5 ,
:B4 , :B4 -:B3 , ROUND((:B2 -:B1 )*(24*60*60)) )
47,766 7 100.0 0.094 SELECT NVL(MAX(VALUE),0) FROM DBW_INSTANCEMEM WHERE
H_DATE=:B2 AND STATISTIC#=:B1
47,766 3 99.44 0.075 INSERT INTO DBW_INSTANCEMEM VALUES ( :B3 , :B2 , :B1 )

Page 37
Health check report for Oracle 10g database

38,479 2 100.0 0.125 select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and
(next_date < :2)) or ((last_date is null) and (next_date < :3))) and (field1 = :4 or
(field1 = 0 and 'Y' = :5)) and (this_date is null) order by next_date, job
38,474 1 100.0 0.073 select count(*) from sys.job$ where (next_date > sysdate) and (next_date <
(sysdate+5/86400))
33,652 0 76.81 0.197 BEGIN dbw_7520.dbw_getEngineTime(:1); END;
26,828 1 99.97 0.058 SELECT TASK_ID FROM DBW_TASKS WHERE TASK_ID=:B1
26,601 1 100.0 0.044 SELECT TASK_ID FROM DBW_TASKS WHERE TASK_ID =:B1
26,593 7 99.85 0.482 SELECT T.TASK_ID, LAST_RUN, CASE WHEN C.SUSPENDED IS NULL
THEN -1 ELSE C.SUSPENDED END AS SUSPENDED, CASE WHEN
C.STATUS IS NULL THEN -1 ELSE C.STATUS END AS STATUS,
DBW_HASUNACKNOWLEDGED ( :B1 ) AS HAS_UNACKNOWLEDGED,
T.EXECUTION_DETAILS FROM DBW_TASKS T LEFT OUTER JOIN
DBW_CHECKS C ON T.TASK_ID=C.TASK_ID WHERE T.TASK_ID=:B1

10.5. History of resource demanding cursors


The following table lists statistics for most resource demanding cursors.

Collected Executions Average rows processed Average buffer gets Hit ratio Average CPU (sec) Average elapsed time (sec) SQL text

Page 38
Health check report for Oracle 10g database

11. Flash recovery area usage


11.1. Flash recovery area usage
The following table lists information from V$FLASH_RECOVERY_AREA_USAGE dictionary view.

File Type Percent Space Used Reclaimable Number of files


CONTROLFILE 0.0 0.0 0
ONLINELOG 0.0 0.0 0
ARCHIVELOG 27.17 0.0 32
BACKUPPIECE 0.0 0.0 0
IMAGECOPY 0.0 0.0 0
FLASHBACKLOG 0.0 0.0 0

11.2. Initialisation parameters


The following table lists Oracle initialisation parameters related to Flash Recovery Area. The db_recovery_file_dest_size parameter value is a user-specified
limit on the amount of space that will be used by this database for recovery-related files, and does not reflect the amount of space available in the underlying
filesystem.

Name Value
db_recovery_file_dest E:\oracle\product\10.2.0\flash_recovery_area
db_recovery_file_dest_size 5 GB

Page 39
Health check report for Oracle 10g database

11.3. RMAN Crosscheck


You can free up space from flash recovery area by deleting unnecessary files using RMAN DELETE command. If an operating system command was used to
delete files, then use RMAN CROSSCHECK and DELETE EXPIRED commands.

RMAN command
run
{
DELETE OBSOLETE;
CROSSCHECK ARCHIVELOG ALL;
DELETE EXPIRED ARCHIVELOG ALL;
}

Page 40
Health check report for Oracle 10g database

12. RMAN backup statistics


12.1. RMAN Backup History
The table below shows history of RMAN backups.

Backup Started Backup ended status Elaps time Output (MB) (MB) Input (MB) (MB)
25/10/2010 13:14 25/10/2010 13:21 COMPLETED 00:07:18 3,284 3,714
2/9/2010 14:52 2/9/2010 14:55 COMPLETED 00:02:48 1,099 1,508
30/8/2010 12:33 30/8/2010 12:35 COMPLETED 00:02:39 1,012 1,430
28/8/2010 15:41 28/8/2010 15:44 COMPLETED 00:02:46 992 1,410
27/8/2010 11:23 27/8/2010 11:25 COMPLETED 00:02:23 887 1,307
26/8/2010 05:30 26/8/2010 05:33 COMPLETED 00:02:15 875 1,294
25/8/2010 23:27 25/8/2010 23:29 COMPLETED 00:02:09 858 1,278
25/8/2010 23:12 25/8/2010 23:14 COMPLETED 00:02:18 861 1,280
25/8/2010 23:00 25/8/2010 23:02 COMPLETED 00:01:56 882 1,302
25/8/2010 22:55 25/8/2010 22:55 FAILED 00:00:06 7 7

Page 41
Health check report for Oracle 10g database

12.2. Backup size history


The chart below shows history of backup size.

12.3. RMAN Backup pieces


The table below shows history of RMAN backup pieces from V$BACKUP_PIECE dictionary view.

Backup ended Elapsed time (sec.) handle recid Device type tag status
25/10/2010 13:21 82 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK- 48 DISK TAG20101025T131647 A
S49-P1.ARC
25/10/2010 13:19 87 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK- 47 DISK TAG20101025T131647 A
S48-P1.ARC
25/10/2010 13:18 81 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK- 46 DISK TAG20101025T131647 A
S47-P1.ARC
25/10/2010 13:16 0 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK_ 45 DISK TAG20101025T131639 A
U1ELRB99N.SPFILE
25/10/2010 13:16 0 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK_ 44 DISK TAG20101025T131636 A
U1DLRB99L.CTL

Page 42
Health check report for Oracle 10g database

25/10/2010 13:16 1 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK_ 43 DISK TAG20101025T131431 A


U1CLRB993_S44_P1_T733324579.DB
25/10/2010 13:16 103 E:\ORACLE\BACKUP\RMAN\ORA10G3\25.10.2010_1314\BK_ 42 DISK TAG20101025T131431 A
U1BLRB95N_S43_P1_T733324471.DB
2/9/2010 14:55 21 E:\ORACLE\BACKUP\RMAN\ORA10G3\02.09.2010_1452\BK- 41 DISK TAG20100902T145510 A
S42-P1.ARC
2/9/2010 14:55 1 E:\ORACLE\BACKUP\RMAN\ORA10G3\02.09.2010_1452\BK_ 39 DISK TAG20100902T145459 A
U18LMT2Q3.CTL
2/9/2010 14:54 104 E:\ORACLE\BACKUP\RMAN\ORA10G3\02.09.2010_1452\BK_ 37 DISK TAG20100902T145259 A
U16LMT2MC_S38_P1_T728664780.DB

12.4. RMAN Configuration


The table below shows configuration values for RMAN parameters.

name value
RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS

Page 43

Das könnte Ihnen auch gefallen