|
NAMEOracle::Instances - Lib for Oracle instances and versions retrieval DESCRIPTIONThis module provides a function to retrieve information about Oracle instances on the current server. To do so, the function reads the /etc/oratab file to find instances and then:
Optionally, you can call getInstances() to return only the hash of versions and bundles, instead of the complete instances hash: {
'/home/oracle/oracle/product/11.2.0' => {
'BUNDLE' => 'Standard',
'VERSION' => '11.2.0.4.0'
}
};
In that case, you just have to pass parameter 1 (integer one) when calling the function. ExportsThe module exports the getInstances() function. getInstances()Synopsis getInstances($version_only) where $versions_only is a integer (tested as a bool) my $database = getInstances()
my $versions = getInstances(1)
Return values The function returns a hash reference containing the instances or versions.
|