| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle and Personal Web Server
I am connecting to oracle via IIS4, successfully. However, when I try to
connect to Oracle 7.3 via Personal Web Server 4 I get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-03121
Are there settings for PWS or Oracle I should be aware of to connect to my oracle databases. Any suggestions or web pages example would be greatly appreciated.
Please forgive the cross post....
Thank you in advance:
Here is the code I am using:
<%@ Language=VBScript %>
<html>
<head>
<title>Oracle Test</title>
</head>
<body>
<center>
<%
DIM CNNSTR
Set objConn = Server.CreateObject("ADODB.Connection")
Response.Write "connection string0 " & "<BR>"
'objConn.Open "dsn=OracleDSN73;uid=w951rsu;pwd=help99;"
'objConn.Open "dsn=OracleDSN_ms;UID=;PWD=help99;"
'objConn.Open "PROVIDER=MSDAORA;DRIVER={Microsoft ODBC for Oracle};" & _
'CNNSTR = "PROVIDER=MSDAORA;DRIVER={Microsoft ODBC for Oracle};" & _
CNNSTR = "DRIVER={Microsoft ODBC for Oracle};" & _
"SERVER=DWTST01.world;" & _
"UID=w951rsu;PWD=help99;"
Response.Write CNNSTR
Response.Write "connection string2 " & "<BR>"
objConn.Open CNNSTR
Response.Write "connection string1 "
Set objRs = objConn.Execute("SELECT * FROM DEMO.EMPLOYEE")
Response.Write "<table border=1 cellpadding=4>"
Response.Write "<tr>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<td><b>" & objRS(I).Name & "</b></td>"
Next
Response.Write "</tr>"
Do While Not objRS.EOF
Response.Write "<tr>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<td>" & objRS(I) & "</td>"
Next
Response.Write "</tr>"
objRS.MoveNext
Loop
Response.Write "</table>"
objRs.Close
objConn.Close
![]() |
![]() |