DESCRIPTION
        This command lists all the Oracle Homes pertaining to logical
        entities such as Host or Domain. For a Host, the list of Oracle
        Homes is obtained from the machine's central inventory. For a
        WebLogic domain, the list of homes is limited to product Oracle
        Homes that are installed within a top-level Middleware Home.
        If the 'domain' or 'domaindir' option is used the command lists
        the Oracle Homes that have been used to create or extend the
        WebLogic domain. If the 'domain' or 'domaindir' option is not 
        given, all the homes registered with the machine's central inventory
        or the inventory location specified using the 'invPtrLoc' are listed.
	The Middleware Home can be specified by using the 'mw_home'
        command-line option or by using MW_HOME environment variable.
        When the Middleware Home is specified and the 'domain' or 'domaindir'
        option is not specified this command will list all the Oracle Homes
        within the Middleware Home that are registered with the machine's
        central inventory or the specified inventory location.

SYNTAX
	opatch lshomes  [-domain <Name of the domain> | 
	                 -domaindir <Path to the WebLogic domain> ] 
                        [-invPtrLoc <Path to oraInst.loc> ]                     
                        [-mw_home <Path of the Middleware home> ]
                        [-oh <Reference Oracle Home> ]

OPTIONS
           -domain
               The name of the domain. 

           -domaindir
               The path to the location of the Weblogic domain. 
           
           -invptrloc
                Used to locate the oraInst.loc file. Needed when the
                installation uses the -invPtrLoc flag. This should be
                the path to the oraInst.loc file.

           -mw_home
                Path of the Middleware Home. This takes precedence over
                MW_HOME environment variable.

           -oh
                The reference Oracle Home to work on. This takes precedence
                over the environment variable ORACLE_HOME.


PARAMETERS
        There are no mandatory parameters for this command.
