473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Connecting to an Oracle Database using ASP

Hi Oracle Gurus!!

Before I proceed, as per the moderators request, I would like to mention that I have already taken a look at the other threads pertaining to a similar issue which I am having and have not found a feasible answer. I would like to apologize if there is an answer out there (I've looked at quite a few threads).

So here is the situation:

Currently, I have been using Oracle Toad from Quest Software to connect to the production database to run all my sql queries without a problem. My objective now is that I would like to query all the sql via an ASP page instead of Oracle Toad.

After creating my asp page in C:\Inetpub\wwwroot with the following code:

<html>
<head>
<title> Time Check </title>
</head>
<body>
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection") ' This line creates the ActiveX Database Object

objConn.ConnectionString = "Data Source=GTMSP;User Id=PLATEAU;Password=abcde;Integrated Security=no"

objConn.Open 'This commands the database to open

%>
</body>
</html>

I receive the following error when I run my page from http://localhost/asptestpa.asp -

------------------------------------------------------------------------------------------------------------------
Error Type:
Microsoft OLE DB Service Components (0x80040E21)
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/asptestpa.asp, line 20


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Guidant; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)

Page:
GET /asptestpa.asp

----------------------------------------------------------------------------------------------------------------

Here are the configurations I have made on my machine:

(1) I went to the Microsoft ODBC Administrator and added a DSN with the following attributes under the User DSN and System DSN tab :

DataSource Name: GTMSP
Description: GTMS Production
Username: PLATEAU
Server: GTMSP.world

(2) Under the file DSN tab in Microsoft ODBC Adminstrator, I included GTMSP.dsn

(3) I know I have Ora9 components because I am able to successfully connect via Oracle Toad (thats how I do all my queries ex. Select * from pa_student...) using the following properties in Oracle Toad:

Database: GTMSP.WORLD
User/Schema: PAGGARWA
PASSWORD: *******
Connect Using Ora9

Note: I am also able to successfully connect using SQL* Plus

Note2: Initially I had the windows components error message (Oracle 0x80004005) but after speaking to the developers on our team, they mentioned that I already have the windows components.

Note3: I did install IIS on my machine and our developers told me that you can easily connect using .asp pages to the database from my machine. I do not need to have access on the production database to connect (which makes sense)

Final note: From one of the other threads, I took a look at http://www.connectionstrings.com for assistance for which my asp code is coded/constructed the way it is.

Any assistance is GREATLY appreciated. I have a report for senior management to turn in very shortly and without being able to connect to the database I can't query!!

I look forward to hearing from you soon. I'll be checking this site often for responses. Thank you
Aug 9 '07 #1
0 2699

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: yahibble | last post by:
Now, I am no Python expert but I have dabbled and I have spent a couple of days with another engineer unsuccessfully installing oracle drivers for MS ODBC on the win XP machine. It looked to me...
2
by: Mahesh.V | last post by:
Hi All I get the following error while connecting to the oracle database using ODBC. in my VB.NET application. Can any one help me out solving this problem server message (if any):...
2
by: python_eager | last post by:
Hi i am connecting my database oracle 9i. While connecting i am getting the following error connection = cx_Oracle.connect("myusername", "mypassword", "python") RuntimeError: Unable to acquire...
0
by: antonyliu2002 | last post by:
I am having a hard time connecting to an oracle database from within Visual Web Developer (VWD) 2005 Express Edition. Check out the screen snap shot here: ...
2
by: rcc.gamer | last post by:
Hello All, I am trying to connect a GridView to an Oracle table using the standard SqlDataSource. The process is fairly simple and there are detailed instructions from Microsoft ......
3
by: hakiran | last post by:
Hello all, I have been using Perl DBI the last 6months or so. I use it extensively with MySQL. But recently i tried to access Oracle DB with it and was having trouble. Any help would be...
7
by: cyberbilly1 | last post by:
Hi All! I'm trying to connect to a remote oracle database using the OracleConnection within VB.net . Whenever I try connecting I get a SocketException:No connection could be made because the...
0
by: Temporary | last post by:
C# Web Service in IIS Stops Connecting to Oracle (via ADO.NET) Over Time I have a Web Service, written in C#, published on a Windows XT Web Server under IIS, which repeatedly connects to an...
1
by: kinnu | last post by:
hi, could any one help me with the steps of connecting the vb form with the oracle database/table. I could connect vb to access. as my collage project requires connecting of vb with oracle...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.