473,386 Members | 1,790 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,386 software developers and data experts.

ASP ORACLE Connectivty issues

2
Hi,
I was devloping on a remote corporate web server(MS XP) building webapps using simple asp. I then moved the code to my desktop(MS 2000) which also has a webserver and encountered connectivity errors. This is connecting to Oracle (9.2 on a solaris sparc 5.8) using MSDAORA. As far as I can tell both the remote webserver and the desktop use the same tnsnames file (on the lan). The databases being accessed are remote to both webservers.

Initially I tried these connection strings on the remote server
1. strConnect = "Driver={Microsoft ODBC for Oracle}; CONNECTSTRING=dbname; uid=userid;pwd=password;"

2. strConnect = "Provider= MSDAORA; Data Source=dbname; User id=Userid; password=password"

3. strConnect = "Provider= MS REMOTE; Remote_Provider =MSDAORA Data Source=dbname; remote server= IP; User id= userid; password= password"

4. strConnect = "Provider= MS REMOTE; Remote_Provider =MSDAORA Data Source= dbname; User id= userid; password= password"

I use the following code to connect and execute a query:
''on error resume next
set DBH = Server.Createobject ("ADODB.connection")
DBH.Open strConnect
if DBH.state <> 1 then
response.write "daggone cannt connect!<BR>"
else
response.write "ok we gotta conection <BR>"
objCommand.CommandText = Query
objCommand.ActiveConnection = DBH
set objRS = objCommand.execute
if objRS.eof then

1 and 2 work on the remote server
3 connects but gets the following error on objCommand.execute:
Error Type:
Microsoft ADO/RDS (0x800A1003)
Cannot connect to server.

4 connects but gets a different errro on objCommand.execute
Error Type:
RDSServer.DataFactory (0x80070005)
RDS Server Error: The server has denied access to the default RDS Handler used to access this page. See the Server Administrator for more information about server security settings.

On theDesktop none of them work:
1 cannot connect
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve service name
2 cannot connect
Microsoft OLE DB Provider for Oracle (0x80004005)
ORA-12154: TNS:could not resolve service name
3 DOES COnnect but at objCommand.execute is loses connection
Microsoft ADO/RDS (0x800A1003)
Cannot connect to server.
4 Connects but at objCommand.execute
RDSServer.DataFactory (0x80070005)
RDS Server Error: The server has denied access to the default RDS Handler used to access this page. See the Server Administrator for more information about server security settings.


Any suggestions would be appreciated
Sep 28 '06 #1
1 4902
Provider=MSDAORA.1;User ID=urdid;Password=urpwd;Data Source=urdatasource;Persist Security Info=False

Tha above connection string works fine windows 2003 server when the sqlnet.ora removed from the oracle folder and service pack 2 of win2k3 is installed on that machine. install service pack2 and restart the machine
Sep 12 '07 #2

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

Similar topics

3
by: Jake McDermott | last post by:
We have a few developers that use Oracle 9i (9.2.0.4.0) on their personal workstations for testing purposes. Recently, weve made the decision to upgrade them to WinXP so that they are able to use...
1
by: RAK | last post by:
A client is testing a system on Oracle 9i and Win 2000 (why not 10g and 2003 etc? dont ask, long story). Performance was poor. Among other issues, we discovered that the Oracle datafiles are...
133
by: jonathan | last post by:
hey all, I realize that this question might pop up from time to time, but I haven't seen it a while and things might of changed, so - Right now (July 2004) how does mysql stand up in...
1
by: Cliff Cooley | last post by:
Can anybody suggest what may be causing the following problem ? I have an ASP script that opens a connection to an Oracle database using a DSN connection string, such as : Set dbConn=...
5
by: NormaJean Sebastian via DBMonster.com | last post by:
Hi, I almost read all of the "DB2 vs Oracle" thread... The summary I got from that was all databases essentially do the same things, the decision of which one you use primarily depends on...
13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
4
by: ljubo lecic via AccessMonster.com | last post by:
I am an experienced ORACLE software developer who met ACCESS few months ago and I must say that ,so far, I am delighted. I rapidly developed a few aplications and everything is working extremly...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
9
by: Steve Kershaw | last post by:
I need your help! I'm working at a company that is considering changing from Oracle to SQL Server 2005. The debate goes on and on and on.... I need some arguments that will help me convince...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.