You are on page 1of 2

ORACLE HEALTH CHECK

Adopted By Lodh Biswajitt for ST WWDC

Purpose : Pro-actively detecting common data dictionary problems. Abstract : This a platform independent script and will report various dictionary related issues which may or may not be a problem. The script can be used with Oracle versions 8.1, 9.0, 9.2, 10.1, 10.2, 11.1 and 11.2. It checks consistency of certain dictionary relationships and looks for certain known issues - certain reported "problems" will be normal and expected. Reference : Oracle Note ID 136697.1 Instructions: 1. Connect as SYS schema in sqlplus 2. Create package hOut first by running the sql eux000:/depot/oracle/tools/hcheck/hout_create.sql. ================================================================= eux1o2{orai2dm3}# sqlplus SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 5 14:31:30 2011 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Enter user-name: / as sysdba Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning and Data Mining options SQL> SQL> @hout_create.sql Package created. No errors. Package body created. SQL> ==================================================================== 3. Run the script eux000:/depot/oracle/tools/hcheck/hcheck.sql . ==================================================================== eux1o2{orai2dm3}# sqlplus SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 5 14:31:30 2011 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Enter user-name: / as sysdba Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning and Data Mining options SQL> spool hcheck.log SQL> @hcheck.sql Package created. No errors. Package body created.

No errors. HCheck Version 8i-11/2.00 Found 0 potential problems and 0 warnings PL/SQL procedure successfully completed. SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning and Data Mining options =======================================================================

Note :Also in the database background dump destination you will find the trace files, viz :-

eux1o2{orai2dm3}# more i2dm3_ora_525.trc /ora_i2dm3/dump/i2dm3/i2dm3_ora_525.trc Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production With the Partitioning and Data Mining options ORACLE_HOME = /ora_i2dm3/software System name: HP-UX Node name: eux1o2 Release: B.11.23 Version: U Machine: ia64 Instance name: i2dm3 Redo thread mounted by this instance: 1 Oracle process number: 27 Unix process pid: 525, image: oracle@eux1o2 (TNS V1-V3) *** 2011-04-05 10:16:12.022 *** SERVICE NAME:(SYS$USERS) 2011-04-05 10:16:12.011 *** SESSION ID:(402.1044) 2011-04-05 10:16:12.011 HCheck Version 8i-11/2.00 Found 0 potential problems and 0 warnings eux1o2{orai2dm3}#

Liability :- Please report to bswajit.lodh@st.com for any issues found with this document.

You might also like