ASP - Show oracle table with ODBC

I am trying like a crazy man to make this work, but it just doesn't want. The problem I have, is that the web server and the oracle server are two different servers. The web server is a NT 4.0 and the oracle one is a Unix server. I am unable to establish a connection between those two. Is there someone who knows???

Here is the code i created and the error it generate.
 Dim OraSession
 Dim OraDatabase
 Dim OraDynaset

 set OraSession = server.createobject("ADODB.Connection")
 OraDatabase = "Driver={Microsoft ODBC for Oracle};" & "Server=dndp;uid=testing;pwd=hiver;" OraDatabase

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

/202daint/ASP_TEST/Oracle.asp, line 35
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you have the Oracle client installed on the NT machine?  If not, install the Oracle client software, and set up your client networking to connect to the database instance on the UNIX server.
Bruce CadizQuality SpecialistCommented:
Try Microsoft's OLE provider Driver for Oracle (I think it's in MDAC 2.5 or 2.6)

Try this:

Set conn = Server.CreateObject("ADODB.Connection")
    conn.ConnectionTimeout = 85
    conn.CommandTimeout = 85 "Provider=MSDAORA;Data Source=dndp;User ID=testing; Password=testing;"
    Set Session("ado_conn1") = conn
Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open "Select USER from Dual", conn , 3, 3
    response.write "USER IS:" & rs.fields("USER").value
Set rs = nothing

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bruce CadizQuality SpecialistCommented:
Also ensure you can access the oracle datbase from your NT machine by using the following command in a dos window "tnsping.exe dndp" or "tnsping80.exe dndp"
Your result should look like this:

TNS Ping Utility for 32-bit Windows: Version - Production on 06-MAR-03

(c) Copyright 1997 Oracle Corporation.  All rights reserved.

Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=server)
OK (10 msec)

if you get this:
TNS-03505: Failed to resolve name

or you can't find the executable, you may need to load the sqlnet / net8 client.

hmmm... wish I would have said that.
Bruce CadizQuality SpecialistCommented:

Guess It would have helped if I reloaded the page before posting... sorry i014354
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.