If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Catastophic failure while opening ADO connection to Oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-02, 18:33
nik_sam nik_sam is offline
Registered User
 
Join Date: Dec 2002
Posts: 4
Catastophic failure while opening ADO connection to Oracle

Win2K server connecting to Oracle 9i through ODBC using Oracle ODBC driver (not Microsoft Oracle Driver). DSN is created in ODBC control panel. When multiple users access the page we once in a while get "Catastrophic Failure" message while connecting and then subsequent connection attempts hang with DLLHOST.exe occuping 100% CPU. ASP page has following code -

Dim conn as ADODB.Connection
Dim conn as ADODB.Recordset

set conn = CreateObject("ADODB.Connection")
conn.ConnectionTimout = 30
conn.CommandTimout = 30
conn.CursorLocation = adUseClient
conn.open sDSN, sUID, sPWD --HERE IS WHERE IT HAPPENS

set rs = conn.Execute sSQL

rs.Close
set rs = nothing
conn.Close
conn = nothing
Reply With Quote
  #2 (permalink)  
Old 12-10-02, 22:35
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Have you tried the oledb provider for oracle ?
Reply With Quote
  #3 (permalink)  
Old 12-11-02, 10:45
nik_sam nik_sam is offline
Registered User
 
Join Date: Dec 2002
Posts: 4
Not yet. We were exploring that option. How different it is from going through ODBC. Can you please provide sample code on how to do it...

Any help is appreciated. Thanks.
Reply With Quote
  #4 (permalink)  
Old 12-11-02, 12:28
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Going through oledb is faster than odbc. Use a dsnless connection and supply the connectionstring. Do you have visual basic ?
Reply With Quote
  #5 (permalink)  
Old 12-11-02, 13:47
nik_sam nik_sam is offline
Registered User
 
Join Date: Dec 2002
Posts: 4
Yes. We do have Visual basic.

Can you please provide a sample of "connection string" for Oracle 9i OLE DB provider.
Oracle server - ORDER.US.COM
Username - trader
Password - trader
Reply With Quote
  #6 (permalink)  
Old 12-11-02, 20:24
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
The simplest way is to add an ado data control to your form in visual basic. Go to the properties of the ado data control and select connection string - follow the prompts selecting the oledb oracle driver. After you have completed it, copy the connection string and paste it into your asp code.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On