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 connection to oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-01-03, 14:46
nahmed nahmed is offline
Registered User
 
Join Date: Mar 2003
Location: Stoke on Trent
Posts: 8
Unhappy ASP connection to oracle

Hello there

ASP connction to oracle database

could some one advise me please
Reply With Quote
  #2 (permalink)  
Old 05-02-03, 01:35
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
Code:
OLE DB Provider for Oracle (from Microsoft)

oConn.Open "Provider=msdaora;" & _
                  "Data Source=OracleServer.world;" & _ 
                  "User Id=;" & _
                  "Password=;"


OLE DB Provider for Oracle (from Oracle)

For Standard Security

oConn.Open "Provider=OraOLEDB.Oracle;" & _
                  "Data Source=MyOracleDB;" & _ 
                  "User Id=;" & _
                  "Password=;"

For a Trusted Connection

oConn.Open "Provider=OraOLEDB.Oracle;" & _
                  "Data Source=MyOracleDB;" & _ 
                  "User Id=;" & _
                  "Password=;"
Or

oConn.Open "Provider=OraOLEDB.Oracle;" & _
                  "Data Source=MyOracleDB;" & _ 
                  "OSAuthent=1;"
Reply With Quote
  #3 (permalink)  
Old 05-02-03, 10:10
nahmed nahmed is offline
Registered User
 
Join Date: Mar 2003
Location: Stoke on Trent
Posts: 8
Unhappy asp error message

Hello there

after using following code

OLE DB Provider for Oracle (from Microsoft)[/B]

oConn.Open "Provider=msdaora;" & _
"Data Source=bsntora;" & _
"User Id=;" & _
"Password=;"


I am getting this error message

Microsoft OLE DB provider for oracle (0*80004005)
ora-12514: TNS:listener could not resolve SERVICES_Name given
in connection descriptor

I am working on uni server
Reply With Quote
  #4 (permalink)  
Old 05-02-03, 13:18
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
nas your going to have to ask uni to let you play with the settings. I think most of uni computers are not set up to allow you to connect like this.

Go and ask your FYP tutor, he will be able to tell you what to do. But your cutting it fine leaving it this late: its due friday!
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