473,509 Members | 2,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP / ADO / Oracle connection problem

Can anybody suggest what may be causing the following problem ?

I have an ASP script that opens a connection to an Oracle database using a
DSN connection string, such as :

Set dbConn= Server.CreateObject("ADODB.Connection")
dbConn.Open "DSN=somedsn; UID=someuser; PWD=somepassword"

With the ASP running on an IIS 5 server, using the Oracle 8 driver to
connect to an Oracle 9 database, there are no connection problems, and
everything works fine.

However, when the ASP script is run in IIS 6, using the Oracle 9 driver, the
ASP 'hangs' in the dbConn.Open statement if a valid connection string is
supplied. If an invalid string is supplied (e.g., the DSN doesn't exist), the
dbConn.Open statement returns immediately, with appropriate error messages.
If a valid string is supplied, it hangs (eventually the ASP times out).

If connection is attempted outside of the IIS environment (e.g., by some
other VB application) using the same connection methods, no problems are
encountered.

Can anyone think of anything that may be contributing to the problem - e.g.,
IIS configuration issues, Oracle driver issues, etc. ?

Many thanks,

Cliff Cooley
Jul 21 '05 #1
1 4703
In my experience the oracle ODBC drivers are trash! Every release they break
something different.

We are currently testing our app against oracle 9.0, 9.2 and 10 and have
found that the oracle 9 and 9.2 ODBC drivers did not work (can't remember
exactly what the error was). Try using the oracle OLEDB drivers instead of
the ODBC ones (see
http://www.able-consulting.com/MDAC/...cleFromOracle).
Or get the Oracle 10 ODBC driver and network software. Then text your
application thoroughly

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Cliff Cooley" <Cl*********@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
Can anybody suggest what may be causing the following problem ?

I have an ASP script that opens a connection to an Oracle database using a
DSN connection string, such as :

Set dbConn= Server.CreateObject("ADODB.Connection")
dbConn.Open "DSN=somedsn; UID=someuser; PWD=somepassword"

With the ASP running on an IIS 5 server, using the Oracle 8 driver to
connect to an Oracle 9 database, there are no connection problems, and
everything works fine.

However, when the ASP script is run in IIS 6, using the Oracle 9 driver, the ASP 'hangs' in the dbConn.Open statement if a valid connection string is
supplied. If an invalid string is supplied (e.g., the DSN doesn't exist), the dbConn.Open statement returns immediately, with appropriate error messages. If a valid string is supplied, it hangs (eventually the ASP times out).

If connection is attempted outside of the IIS environment (e.g., by some
other VB application) using the same connection methods, no problems are
encountered.

Can anyone think of anything that may be contributing to the problem - e.g., IIS configuration issues, Oracle driver issues, etc. ?

Many thanks,

Cliff Cooley

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
14494
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there...
5
102498
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
4
5185
by: Ellen K. | last post by:
Hi all, Being that so far I didn't get an answer to my below problem on the Oracle newsgroup, I figured it couldn't hurt to try here. While at my current job I've been working with mostly SQL...
9
17003
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
0
5761
by: ʹÃûÑï | last post by:
ORA-03114: not connected to ORACLE && MS's Bug?? DataBase:Oracle 817 using OracleClient,net framework 1.1 I'm using ADO.Net in C# with Oracle 817. and following is my public data access...
2
6799
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem...
2
10243
by: Ben | last post by:
Hi, I have a problem connecting to Oracle using and ODBC connection in a ASP.Net web page. The TNS Names works fine because when I create a DSN it works, and it works in SQL Plus. Here are...
7
20287
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Run multiple SQL statements from ASP/ADO to an Oracle 10g. Please help, I'm trying to write an ASP page to use ADO to run a long query against an Oracle 10g database, to create tables,...
0
2580
by: | last post by:
Hi All, I have a client connection problem with Oracle. The exe which i did with C# (vs.net 2005) and Oracle XE , works well on my developer machine but i am getting a connection string error on...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.