Check out the scripts section of dbasupport.com http://www.dbasupport.com/oracle/scr...nt/Management/

HTH.