Problem: Error occurred when the following code is attempting to connect using Oracle connection string; Environment variables for oracle connection has been set but the problem is persistent; how to fix this issue; your help is highly appreciated
Environment Variables: E:\Oracle\product\11.2.0\client_1\BIN;E:\Oracle64\product\11.2.0\client_1\BIN;....
Code: The following code lines is written in classic asp to display the cafe name; simple code.
set strtemp=Server.CreateObject("adodb.connection") strtemp.open="Connection Timeout=10;Provider=OraOLEDB.Oracle;Data Source=Mocha;User Id=XXXX;Password=XXXXX;" Call uga_ConnOpen(cnnBFSG,strtemp,"","") strSQL="Select coffee_name from LuLu.Mochalaka where LuLu.Mochalaka_VW.cafe_ID=16051" call uga_RecSetOpen(cnnBFSG,rstSG,strSQL) Cafe="" Do While Not rstSG.EOF Cafe=rstSG("coffee_name") rstSG.MoveNext Loop rstSG.close response.write("Coffee is "& Cafe) response.end
Error:
OraOLEDB error '80004005'
ORA-12557: TNS:protocol adapter not loadable