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 > asp to oracle(9.2.0)database connectivity

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-04, 09:21
ramesh_abothula ramesh_abothula is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
asp to oracle(9.2.0)database connectivity

" Microsoft OLE DB Provider for Oracle (0x80004005)
Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed."
Reply With Quote
  #2 (permalink)  
Old 02-12-04, 17:17
shankarbose shankarbose is offline
Registered User
 
Join Date: Feb 2004
Location: Mumbai, India
Posts: 1
You must install an Oracle client or server before you can use this.
Is your oracle database on the same server as IIS? If so, then set up the listener.
If on a different server, then install Oracle client, create the listener link (use Easy Config).

Then for your ASP pages, use the following

<!-- #include file=adovbs.inc -->

<%

Dim myCon
Dim myRS

set myCon = server.createobject("ADODB.connection")
set myRS = server.createObject("ADODB.recordset")
myCon.ConnectionString = "Provider=MSDAORA;Persist Security Info=False;User ID=<user>; password = <pwd>;Data Source= <listener name >"
myCon.CursorLocation = 3
myCon.Open

set myRs = myCon.execute("select * from tab")
' this will return a recordset of tables
%>
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