Advertisement

04.16.2003 at 01:01PM PDT, ID: 20587469
[x]
Attachment Details

Oracle Database with ASP/VB

Asked by srimanth in Btrieve 4GL Database

Tags: oracle, asp

Hi,

I've been searching various sites and have come upon various solutions to connect to Oracle from ASP. But, unfortunately none of them work and all i am left behind is frustration. I have provided all the versions of drivers used, various connection strings used, and the various steps taken to connect.

Environment: Windows 2000/IIS5
Oracle 9i Client: 9.2.0.1.0
Oracle 9i ODBC Driver: 9.2.0.4.0
Oracle Provider for OLE DB: 9.2.0.2.0
Microsoft ODBC for Oracle (MSORCL32.DLL): 2.573.9001.0
MDAC: 2.7

1. Changed system environment variables to "C:\Winnt\Temp" and have given full rights access to IUSR_M/C and IWAM_M/C.
2. Given full access rights to to the users IUSR & IWAM to the Oracle Directory.
3. Path for Oracle Bin directory exists.
4. Created a DNS by the name "MyOracleData" in ODBC Data Sources.
5. Created an entry in TNS "MyOracleData".
6. Changing the ODBC DSN Name and TNS name didn't make a difference. So, kept them same for easier testing.
7. Created a Database project from Visual Interdev using the DSN created. I am able to see all the tables, SPs and all data.

Following are the list of connection strings used:
1. ConnectionString = "Driver={Microsoft ODBC for Oracle};DSN=MyOracleData;UID=MyUserID;PWD=MyPassword;"
2. ConnectionString = "Driver={Microsoft ODBC for Oracle};Server=MyOracleData;UID=MyUserID;PWD=MyPassword;"
3. ConnectionString = "Driver={Microsoft OLE DB for Oracle};Data Source=MyOracleData;UID=MyUserID;PWD=MyPassword;"
4. ConnectionString = "DRIVER={Oracle ODBC Driver};DSN=MyOracleData;User ID=MyUserID;Password=MyPassword;"
5. ConnectionString = "Provider=msdaora;Data Source=MyOracleData.ode.state.oh.us;User ID=MyUserID;Password=MyPassword;"
6. ConnectionString = "Provider=MSDAORA;Data Source=MyOracleData;User ID=MyUserID;Password=MyPassword;"
7. ConnectionString = "Provider=MSDASQL;DSN=MyOracleData;UID=MyUserID;PWD=MyPassword;"
8. ConnectionString = "Provider=MSDASQL;DSN=MyOracleData;User ID=MyUserID;Password=MyPassword;"
9 .ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=MyOracleData;User ID=MyUserID;Password=MyPassword;PLSQLSet=1"
10.ConnectionString = "Provider=Provider=MSDAORA.1;Data Source=MyOracleData;UID=MyUserID;PWD=MyPassword;"

Following are the different errors i get:
1. [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
2. Specified driver could not be loaded due to system error 5 (Oracle in OraHome92)
3. [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
4. Provider cannot be found. It may not be properly installed
5. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.

The following was the error matchup:
1 - 1, 2 - 1, 3 - 2, 4 - 3, 5 - 5, 6 - 5, 7 - 2, 8 - 2, 9 - 4, 10 - 4.

I have worked extensively on ASP/VB/SQL Server. But, i am completely new to Oracle. I am just unable to connect to the server via IIS. I have a DLL which contains all the database access and Business Logic. All my VB applications work perfect on the same machine on which the Web Server is running. But somehow goofs up when using with IIS5. Please Help!!!
Start Free Trial
[+][-]04.17.2003 at 02:42PM PDT, ID: 8351230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.22.2003 at 08:03AM PDT, ID: 8373818

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2003 at 01:13PM PDT, ID: 8375988

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Btrieve 4GL Database
Tags: oracle, asp
Sign Up Now!
Solution Provided By: bhess1
Participating Experts: 1
Solution Grade: C
 
 
[+][-]04.23.2003 at 04:13AM PDT, ID: 8379097

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.23.2003 at 04:19PM PDT, ID: 8384248

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32