Author:: Vince Montalbano ([email protected])
There is a better way to do the hostname grabs. Look into Ohai
http://www.thegeekstuff.com/2009/01/oracle-database-startup-and-shutdown-procedure/
http://www.thegeekstuff.com/2009/05/oracle-lsnrctl-listener-shutdown-and-startup-procedures/
http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#BABCCGCF
http://docs.oracle.com/cd/B19306_01/network.102/b14212/connect.htm
http://www.oracle.com/technetwork/community/developer-vm/index.html