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;U
ID=MyUserI
D;PWD=MyPa
ssword;"
2. ConnectionString = "Driver={Microsoft ODBC for Oracle};Server=MyOracleDat
a;UID=MyUs
erID;PWD=M
yPassword;
"
3. ConnectionString = "Driver={Microsoft OLE DB for Oracle};Data Source=MyOracleData;UID=My
UserID;PWD
=MyPasswor
d;"
4. ConnectionString = "DRIVER={Oracle ODBC Driver};DSN=MyOracleData;U
ser ID=MyUserID;Password=MyPas
sword;"
5. ConnectionString = "Provider=msdaora;Data Source=MyOracleData.ode.st
ate.oh.us;
User ID=MyUserID;Password=MyPas
sword;"
6. ConnectionString = "Provider=MSDAORA;Data Source=MyOracleData;User ID=MyUserID;Password=MyPas
sword;"
7. ConnectionString = "Provider=MSDASQL;DSN=MyOr
acleData;U
ID=MyUserI
D;PWD=MyPa
ssword;"
8. ConnectionString = "Provider=MSDASQL;DSN=MyOr
acleData;U
ser ID=MyUserID;Password=MyPas
sword;"
9 .ConnectionString = "Provider=OraOLEDB.Oracle;
Data Source=MyOracleData;User ID=MyUserID;Password=MyPas
sword;PLSQ
LSet=1"
10.ConnectionString = "Provider=Provider=MSDAORA
.1;Data Source=MyOracleData;UID=My
UserID;PWD
=MyPasswor
d;"
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