Health Check Report For Oracle 10g Database
Health Check Report For Oracle 10g Database
www.dbwatch.no
November 17, 2010 1:11:35 PM
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.
Page 3
Health check report for Oracle 10g database
2. System overview
The sections shows overall information concerning the database.
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
Page 4
Health check report for Oracle 10g 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
Page 6
Health check report for Oracle 10g database
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)
Page 7
Health check report for Oracle 10g database
Page 8
Health check report for Oracle 10g database
Page 9
Health check report for Oracle 10g database
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
Page 11
Health check report for Oracle 10g database
Parameter Path
spfile E:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORA10G3.ORA
Page 12
Health check report for Oracle 10g database
Page 13
Health check report for Oracle 10g database
Page 14
Health check report for Oracle 10g database
Page 15
Health check report for Oracle 10g database
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.
Hostname Sessions
marekspc 9
Page 17
Health check report for Oracle 10g database
Username Sessions
DBW_7534 5
DBW_7520 4
Program Sessions
dbWatch 9.2 (engine) 8
dbWatch 9.2 (sql worksheet) 1
Page 18
Health check report for Oracle 10g database
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.
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.
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.
Page 22
Health check report for Oracle 10g database
Page 23
Health check report for Oracle 10g database
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.
Page 25
Health check report for Oracle 10g database
Page 26
Health check report for Oracle 10g database
Page 27
Health check report for Oracle 10g database
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
Page 30
Health check report for Oracle 10g database
Page 31
Health check report for Oracle 10g database
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
Page 32
Health check report for Oracle 10g database
Page 33
Health check report for Oracle 10g database
Page 34
Health check report for Oracle 10g database
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
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
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
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
RMAN command
run
{
DELETE OBSOLETE;
CROSSCHECK ARCHIVELOG ALL;
DELETE EXPIRED ARCHIVELOG ALL;
}
Page 40
Health check report for Oracle 10g database
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
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
name value
RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS
Page 43