This AIX custom inventory has two scripts. The first one calls the second one which logs into the oracle database for each sid found after referencing the tnsnames.ora and returns the sids found, type (Enterprise or Standard), version, and if RAC is enabled or not. Returning control to the first script, which parses the output for the proper values.