Ask a Question related to ASP Database, Design and Development.
-
John #1
Oracle connection problem
I'm having some grief connecting to an Oracle database that I
previously was able to connect to.
The difference is that my web app now lives on a freshly setup server
with a new install of the Oracle client files/drivers.
My web server has both:
Oracle 9 client files (SQL Plus and other annoyances)
WinXP Pro (its a test server)
The web server also has valid TNSNAMES.ORA file in the default
location
I have created a .UDL file on the server that can successfully connect
to the remote Oracle database so it is finding my TNSNAMES.ORA and the
relevant entry with no problem.
The problem is that my ASP 3 application can't connect to the Oracle
DB. I'm assuming its because it (or IIS) can't find the .ORA file.
I don't think i had any worries when i configured the ASP application
on the old server.
The code I'm using to connect is unchanged and is as follows:
'This is in my global.asa
Application("DSNOracle") = "Provider=MSDAORA.1;Data
Source=MyDataSource;User ID=myid;Password=mypasswd"
' this is the page that connects to oracle
Dim objConn, rsOracle
Dim sqlStatement
sqlStatement = "SELECT Fname, Lname FROM DumbTable Where Lname =
'smith'"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open (Application("DSNOracle"))
Set rsOracle= objConn.Execute(sqlStatement)
John Guest
-
Oracle JDBC oci drive connection problem
To get the OCI driver to work on an Linux OS you have add the Oracle library to enviroment variable LD_LIBRARY_PATH. The easiest way to do this... -
Oracle 8i problem connection with pear
Hello, mailing-list people, I need help about connect the RDBMS Oracle8i through PEAR library, look this code <html><head><title>Test DB Class -... -
Oracle Odbc Connection Problem
I'm trying to connect to a oracle database using the " Microsoft ODBC for Oracle " driver with the followin script: <?php $user= "user";... -
#23668 [Opn->Fbk]: oracle<defunct> problem apache2+php+oracle
ID: 23668 Updated by: sniper@php.net Reported By: thecluster at argentina dot com -Status: Open +Status: ... -
Oracle ADO connection
Sorry about being so slow about all this. I found my installer that is only called 'Oracle Installer' and it will only choose files that have the... -
Tracey #2
Oracle connection problem
Hi John
I recently ran into a similar problem, the work around
ended up being: to remove the Oracle 9 client and install
the Oracle 8 client. We needed a quick fix and this
resolved it ... Good Luck!
that I>-----Original Message-----
>I'm having some grief connecting to an Oracle databasesetup server>previously was able to connect to.
>
>The difference is that my web app now lives on a freshlydefault>with a new install of the Oracle client files/drivers.
>
>My web server has both:
>Oracle 9 client files (SQL Plus and other annoyances)
>WinXP Pro (its a test server)
>
>The web server also has valid TNSNAMES.ORA file in thesuccessfully connect>location
>
>I have created a .UDL file on the server that canTNSNAMES.ORA and the>to the remote Oracle database so it is finding mythe Oracle>relevant entry with no problem.
>
>The problem is that my ASP 3 application can't connect tothe .ORA file.>DB. I'm assuming its because it (or IIS) can't findapplication>
>I don't think i had any worries when i configured the ASPfollows:>on the old server.
>
>The code I'm using to connect is unchanged and is asLname =>
>'This is in my global.asa
>Application("DSNOracle") = "Provider=MSDAORA.1;Data
>Source=MyDataSource;User ID=myid;Password=mypasswd"
>
>
>' this is the page that connects to oracle
>Dim objConn, rsOracle
>Dim sqlStatement
>
>sqlStatement = "SELECT Fname, Lname FROM DumbTable Where>'smith'"
>
>Set objConn = Server.CreateObject("ADODB.Connection")
>objConn.Open (Application("DSNOracle"))
>Set rsOracle= objConn.Execute(sqlStatement)
>
>.
>Tracey Guest
-
Turkbear #3
Re: Oracle connection problem
On Wed, 17 Sep 2003 20:33:14 +0930, John <jnode55@icqmail.com> wrote:
What version of Oracle is the database you are trying to reach?>I'm having some grief connecting to an Oracle database that I
>previously was able to connect to.
>
>The difference is that my web app now lives on a freshly setup server
>with a new install of the Oracle client files/drivers.
>
>My web server has both:
>Oracle 9 client files (SQL Plus and other annoyances)
>WinXP Pro (its a test server)
>
>The web server also has valid TNSNAMES.ORA file in the default
>location
>
>I have created a .UDL file on the server that can successfully connect
>to the remote Oracle database so it is finding my TNSNAMES.ORA and the
>relevant entry with no problem.
>
>The problem is that my ASP 3 application can't connect to the Oracle
>DB. I'm assuming its because it (or IIS) can't find the .ORA file.
>
>I don't think i had any worries when i configured the ASP application
>on the old server.
>
>The code I'm using to connect is unchanged and is as follows:
>
>'This is in my global.asa
>Application("DSNOracle") = "Provider=MSDAORA.1;Data
>Source=MyDataSource;User ID=myid;Password=mypasswd"
>
>
>' this is the page that connects to oracle
>Dim objConn, rsOracle
>Dim sqlStatement
>
>sqlStatement = "SELECT Fname, Lname FROM DumbTable Where Lname =
>'smith'"
>
>Set objConn = Server.CreateObject("ADODB.Connection")
>objConn.Open (Application("DSNOracle"))
>Set rsOracle= objConn.Execute(sqlStatement)
The V9 client cannot connect to any Oracle database older than v8.
Turkbear Guest
-
Abbey #4
Oracle connection problem
John, Do you have MDAC_TYP.EXE, (The Microsoft Data Access
Components 2.8) on the new server? I ran into this
recently where I could connect on one box and not
another. It ended up being the lack of the exe above on
the new box that was preventing the connection from taking
place.
Best of Luck!
Abbey
that I>-----Original Message-----
>I'm having some grief connecting to an Oracle databasesetup server>previously was able to connect to.
>
>The difference is that my web app now lives on a freshlydefault>with a new install of the Oracle client files/drivers.
>
>My web server has both:
>Oracle 9 client files (SQL Plus and other annoyances)
>WinXP Pro (its a test server)
>
>The web server also has valid TNSNAMES.ORA file in thesuccessfully connect>location
>
>I have created a .UDL file on the server that canTNSNAMES.ORA and the>to the remote Oracle database so it is finding mythe Oracle>relevant entry with no problem.
>
>The problem is that my ASP 3 application can't connect tothe .ORA file.>DB. I'm assuming its because it (or IIS) can't findapplication>
>I don't think i had any worries when i configured the ASPfollows:>on the old server.
>
>The code I'm using to connect is unchanged and is asLname =>
>'This is in my global.asa
>Application("DSNOracle") = "Provider=MSDAORA.1;Data
>Source=MyDataSource;User ID=myid;Password=mypasswd"
>
>
>' this is the page that connects to oracle
>Dim objConn, rsOracle
>Dim sqlStatement
>
>sqlStatement = "SELECT Fname, Lname FROM DumbTable Where>'smith'"
>
>Set objConn = Server.CreateObject("ADODB.Connection")
>objConn.Open (Application("DSNOracle"))
>Set rsOracle= objConn.Execute(sqlStatement)
>
>.
>Abbey Guest
-
John #5
Re: Oracle connection problem
Well thanks for the replies folks.
The problem has been solved.
For some reason the instance name in my TNSNAMES.ORA file was the
problem.
It used to be "MyDataSource.World" but for some reason, I can only
access it now by removing the ".world" part of the instance name so
that it is just "MyDataSource".
I have no idea why the same verson of the Oracle client should need
that modification in the .ora file. I'm writing it off as "just one
of those things" :-).
John Guest



Reply With Quote

