In a Citrix environment, when connecting to the database using a direct connection, the following error appears:
'An error has occurred while loading the Oracle Call Interface (OCI). The OCIDLL parameter may be incorrect, or there may be a corruption in TNSNAMES.ORA or an OCI-related DLL. The following error has been reported:
Range check error'
After this message, the connection still proceeds normally.
If there is an empty tnsnames.ora file on the server, this can cause the error.
Please add a header into the empty tnsnames.ora file, so that it is not completely empty.
For example:
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.