This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.
The ovosysdetect_oraspi.sh uses dbspi_detect_ora.pl script.
For any Unix/Linux node, the problem should be resolved as long as the Oracle instance name is part of the /etc/oratab file. Then the license script will not even check the listener alias and the host it corresponds to.
Normally the instance should be part of the /etc/oratab file and when it is the spi knows directly this is a local instance.
By this way, we should avoid trying to resolve through the tnsnames.ora file as the host will very likely be virtual.