Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Classic ASP not connecting to Oracle Database

$
0
0

Hi there,

I was wondering if anyone would be able to assist. We've recently upgraded our website runs on classic ASP onto a Windows Server 2016 Standard (IIS version 10.0). It then connects to a separate Oracle database in order to do an address lookup. However since moving it onto the new Application server, it does not complete and just hangs.

This is unusual as we have installed the Oracle ODBC drivers and have made sure the tnsnames.ora file is included in the file path.


When we connect to the database using either Oracle ODBC driver configuration, SQL+ or the tnsping command, we are able to successfully connect and a check of the database server shows the connection being received.

However when we try to connect via the website on the server, the website hangs when connecting. We get no error messages and it requires a refresh of the app pools in order to use the website again.

The ASP script relating to this is:

Function CreateConnection()
set dbConn = server.createobject("adodb.connection")
dbConn.open "Provider=OraOLEDB.Oracle;User ID=USERNAME;Password=PASSWORD;Server=SERVER;Data Source=DS;"
 set CreateConnection = dbConn
end function

Would anyone have ideas what may be causing this? I've looked at previous posts similar to this  but all the fixes it mentions  we've tried and no joy.

Thanks in advance,

Jamie


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>