This is a known issue with the interaction of the driver with the OCI libraries. You should change your application to allocate only one environment handle and only free this handle once all the processing is done. If you are using unixODBC, instead of changing your code, you can set DontDLClose = 1
for the driver in the odbcinst.ini file.