Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2006, 02:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default Oracle Database Connection

Can someone please guide me in making a connection to an Oracle database on another server? I have installed Oracle 8i in our web server hoping that I can get connection.

I am getting the following error message:

Oracle Automation error '800a01b8'

Unable to make connection, ORA-12560: TNS:protocol adapter error

/development/Connection.asp, line 21


Below is my connection code:

'Declare variables as OLE Objects.
 Dim OraSession
 Dim OraDatabase
 Dim OraDynaset


'Create the OraSession Object.
 Set OraSession = CreateObject("OracleInProcServer.XOraSession")

'Create the OraDatabase Object by opening a connection to Oracle.
' Be sure your own username and password to access your Oracle db
 Set OraDatabase = OraSession.OpenDatabase("", "bendev/bendev",Cint(0)) ---->> THIS IS LINE 21

'Create the OraDynaset Object to execute SQL statement
 Set OraDynaset = OraDatabase.DbCreateDynaset(_
     "select * from dbo.disburse_schedule", cint(0))



Thanks

 
Old October 18th, 2006, 02:44 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont use Oracle but this link may help you:

http://www.asp101.com/articles/colin/oracle/default.asp

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old October 18th, 2006, 03:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

I see where I went wrong, I forgot to put in the database name.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Connection teddyk ASP.NET 2.0 Basics 1 October 6th, 2008 06:08 PM
Connection to Network based Oracle Database soft4net ADO.NET 0 December 22nd, 2006 01:32 AM
oracle connection silvia C# 4 January 17th, 2006 08:12 AM
Connection string to Oracle Database phudong3da Dreamweaver (all versions) 2 May 2nd, 2005 07:13 PM
connection for Oracle 8i kosla78 ADO.NET 1 September 3rd, 2003 02:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.