Error establishing ODBC connection to Oracle database from Access 2007

I am trying to access via linked tables from Access 2007 my ODBC connections.
I am able to setup and test successfully in the ODBC Data Source Administrator my Data source, and Driver(Oracle in OraHome92), and I used this successfully when I had Access 2003 on this PC.
system details: Oracle 9i, MS Access 2007 on Windows XP
error - call failed:
detailed error from sqlnet.log:
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE)(HOST=USRN4WNCNH6DDQG)(USER=fznp29))))
VERSION INFORMATION:
     TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
     Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
Time: 05-DEC-2008 11:38:05
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 126
nt OS err code: 0
Any ideas?

Hi,
Please can you specify how you create your DSN for Oracle connection in ODBC Data Source Administrator?
What did you specify for the TNS Service Name?
What is the content of your TNSNAMES.ORA file?
Thx
Mireille

Similar Messages

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • Problem calling Oracle function from Access 2007 / ADO

    Hopefully, I'm posting this in the correct forum. I'm also posting on an Access forum as I'm not entirely sure where the issue lies.
    I'm calling an Oracle function from Access 2007 using an ADO Command object.
    The function takes three input parameters and has a return value and an output parameter. The output parameter is a BLOB, and the return value is varchar2 (either "T" or "N") based on the outcome of the function.
    If I pass correct values to the function, I get the following error message (errs out on the command.execute line):
    Run-time error '-2147467259 (80004005)':
    [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 1
    Here's the function:
    FUNCTION GET_ITEMREV_ATTACH(P_ORGANIZATION_ID IN NUMBER,
    P_INVENTORY_ITEM_ID IN NUMBER,
    P_REVISION IN VARCHAR2,
    X_DRAWING OUT BLOB) RETURN VARCHAR2 IS
    RESULT VARCHAR2(1);
    BEGIN
    RESULT := 'T';
    BEGIN
    SELECT L.FILE_DATA
    INTO X_DRAWING
    FROM FND_ATTACHED_DOCUMENTS AD,
    MTL_ITEM_REVISIONS_B IR,
    FND_DOCUMENTS_TL D,
    FND_LOBS L
    WHERE AD.ENTITY_NAME = 'MTL_ITEM_REVISIONS' AND
    AD.PK1_VALUE = IR.ORGANIZATION_ID AND
    AD.PK2_VALUE = IR.INVENTORY_ITEM_ID AND
    AD.PK3_VALUE = IR.REVISION_ID AND
    AD.CATEGORY_ID = 1001216 AND
    D.DOCUMENT_ID = AD.DOCUMENT_ID AND
    D.LANGUAGE = 'US' AND
    L.FILE_ID = D.MEDIA_ID AND
    IR.ORGANIZATION_ID = P_ORGANIZATION_ID AND
    IR.INVENTORY_ITEM_ID = P_INVENTORY_ITEM_ID AND
    IR.REVISION = P_REVISION;
    EXCEPTION
    WHEN OTHERS THEN
    RESULT := 'N';
    END;
    RETURN(RESULT);
    END GET_ITEMREV_ATTACH;
    Here's the VB code I'm using to call the function:
    Private Sub Command8_Click()
    Dim CMD As New ADODB.Command
    Dim conn As ADODB.Connection
    Dim Param1 As ADODB.Parameter
    Dim Param2 As ADODB.Parameter
    Dim Param3 As ADODB.Parameter
    Dim ParamBlob As ADODB.Parameter
    Dim ParamReturn As ADODB.Parameter
    Set conn = New ADODB.Connection
    With conn
    .ConnectionString = "Driver={Oracle in OraHome92};Dbq=OAPLY;UID=***;PWD=*******"
    .CursorLocation = adUseClient
    .Open
    End With
    Set CMD = New ADODB.Command
    Set CMD.ActiveConnection = conn
    CMD.CommandText = "immi_attach_pub.get_itemrev_attach"
    CMD.CommandType = adCmdStoredProc
    Set ParamReturn = CMD.CreateParameter("RESULT", adVarChar, adParamReturnValue, 1)
    CMD.Parameters.Append ParamReturn
    Set Param1 = CMD.CreateParameter("P_ORGANIZATION_ID", adInteger, adParamInput, 1, 6)
    CMD.Parameters.Append Param1
    Set Param2 = CMD.CreateParameter("P_INVENTORY_ITEM_ID", adInteger, adParamInput, 4, 5207)
    CMD.Parameters.Append Param2
    Set Param3 = CMD.CreateParameter("P_REVISION", adVarChar, adParamInput, 2, "04")
    CMD.Parameters.Append Param3
    Set ParamBlob = CMD.CreateParameter("X_DRAWING", adLongVarBinary, adParamOutput, 200000)
    CMD.Parameters.Append ParamBlob
    CMD.Execute , , adExecuteNoRecords *** this is where the error occurs
    conn.Close
    MsgBox CMD.Parameters("RESULT")
    End Sub
    I've tried using different data types for the varchar2 parameters (adVarChar, adBSTR, adChar) with no difference.
    If I pass a bogus value for Param3...."'04'"...the function returns "N" indicating that it actually executed something. But, when I pass the correct value "04", it returns the above mentioned error.
    I can execute the function in PL/SQL just fine, so I'm thinking there's something wrong with the parameters, datatype, or other definitions on the Access side.
    Does anyone have any thoughts? I'm at a dead end with this. Sorry for the long post. Thank you.

    I tried your code with 11107 ODBC/client/database (but with a NULL output blob for convenience sake) and got no errors.
    If you're using 92 ODBC/client, you may want to try upgrading to something more current, or at least getting the latest patch(9208) to see if that helps. Since it works for me I'm guessing it may be a resolved bug in that version.
    Hope it helps,
    Greg

  • Connect to Oracle database from SQL Sever

    Can you help on an issue of connection from SQL Server to Oracle database:
    In SQL Server, I create a "linked server" to connect to Oracle database on a different machine. But it will take a unreasonable time (about 30 seconds) to call a Oracle query from SQL Server.

    No there are no entries required in the TNSNAMES.ORA
    When you are using ODBC for connection, Oracle does not look fo rany enteries in TNSNAMES.ORA file.
    Now I am able to connect to both SQL Plus and Forms 6i. But while connecting to SQL Plus its giving an error
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Server not available or version too low for this feature
    Connected to:
    Oracle Open Client Adapter for ODBC 6.0.5.35.0
    Microsoft SQL Server 08.00.0534
    Also while disconnecting the Windows Program Error comes, and the application closes abruptly.

  • Not connecting to Oracle Database from Oracle BIEE 10g on Windows 7 machine

    Hi friends,
    I succesfully installed OBIEE 10g on my Windows 7 (Ultimate) machine using the assistance from one of your threads.
    Now I am not able to connect to Oracle 11g database. When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN. After setting manually, I am now seeing OBIEE driver in user DSN. So is all other 32 bitapplications like MS Acess, Excel, etc., are all in user dsn.
    When I open OBIEE Administration tool, I can only see ONLY Analytics Web and nothing else. How do I connect to Oracle database. Please assist me.
    Thanks in advance.
    Din

    Hi,
    Your window os 32bit or 64bit -- Please conform?
    Your Os 64 bit -- http://www.mycabi.net/?p=19 please read this link.
    Your windows os 32 bit :
    Go--> Run--> odbcad32 follow the below step
    In ODBC Administration, on the System DSN tab add a new connection
    1. step : Data Source: "Oracle BI Server" -->"Next"-->Name: "AnalyticsWeb"-->Server: "local"-->(everything else unchecked)-->"Next"-->Give the username for the BI Server-->"Administrator" -->(I think the password can main blanc),Port: "9703 -->(everything else unchecked)-->"Next"-->(everything unchecked)-->"Finish"
    When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN
    A. I don't no why your creating ODBC connection.
    Note: Open your rpd with AnalyticsWeb and give me useranme and password --> go to physical layer select connection pool and give all credntails here.
    http://gerardnico.com/wiki/dat/obiee/ociv -- please refer this link
    Datasource : Your dbname (ORCL,)
    username: your schema name
    Password: your schema password.
    Hope it help's
    Thanks,
    Satya

  • Connect to Oracle Database from Windows 64 bit to Offic2007 32bit

    Good day to all,
    I know that there are many threads with similar subject, but I could't found how can I put the connection string to my code
    I have installed insance clinet 32bit for oracle, all about TNS, configurations, I have created UDL file running for 32 bit application through command
    C:\Windows\syswow64\rundll32.exe "C:\Program Files (x86)\Common Files\System\Ole DB\oledb32.dll",OpenDSLFile C:\test.udl
    and test connection is ok.
    But I put in my code (VBA Access 2007 32 bit) the connection string:"Provider=MSDASQL.1;Password=psw;Persist Security Info=True;User ID=user;Data Source=DSNName-32bit"
    and I receive the error: "[Microsoft][ODBC driver for Oracle][Oracle]ORA-06413: Connection not open."
    I think that I am close to solution but I need a help
    Pls advise
    Michael

    Hello,
    I am getting the same error. tried almost everything. Did you find the solution to your problem?

  • Cannot connect to Oracle database from SQL Server

    Hi
    We have set up a SQL Server linked server and tried to use this SQL Server linked server to connect to Oracle database. We are using SQL Server 2008 and Oracle client 11g 11.02.00.01. However, we got this error message:
    Msg 7347, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
    We are able to connect some of the tables ok but some of the tables are not connected and got the above error message.
    Any suggestions are greatly appreciated.
    Thanks a lot
    Tom

    Hi
    Here is more information. We just found out that the Oracle database team changed the character set to something else and then they changed it back to UTF8.
    Currently, it is using UTF8 character set on the Oracle side. Will this causing us this error message on our sql server linked server?
    The error message said "The (maximum) expected data length is 6, while the returned data length is 2."
    This refers to a field/column with char(1)
    Any suggestions are greatly appreciated
    Thank you
    Tom

  • Connect to Oracle database from Perl on Solaris x86

    Hi,
    How can I connect to Oracle database using Perl scripts on Solaris x86. It seems that DBD-Oracle Perl module requires Oracle client installed to work. Is there any Oracle client available for Solaris x86? Any one got a workaround? Thanks.
    Angus Lee

    Yes, you absolutely must have some portions of the rdbms installed before you can proceed. If your Solaris x86 machine is only a client, then you can get away with installing just ?/rdbms/mesg and ?/rdbms/lib.
    I have Oracle 7.3.4, 8.0.5, 8.0.6, and 8.1.6 for Intel Solaris 2.6. I don't know if they'll run on Solaris 8 or 9 but I'm trying to upgrade at this very moment. As long as you conform to Oracle developer license, then you may download them from my machine.
    I believe the reason Oracle dropped their Intel Solaris port is probably because Sun went through a period where they themselves dropped their Intel port. They've picked back up and if enough Oracle on Intel Solaris customers scream, then Oracle might pick it back up again too.
    Send me an email if you're interested in the downloads.

  • Could not connect to Oracle database from excel macro. Getting connection not open.

    Hi all, 
    I could not connect to oracle database using excel macro. After much R&D also, I cannot find right solution. Please help me where I am doing wrong.
    Sub Button2_Click()
    Dim Conn As New ADODB.Connection
    Dim RS As New ADODB.Recordset
    Dim Cmd As New ADODB.Command
    Dim sqlText As String
    Dim Row As Long
    Dim Findex As Long
    Dim Data As Worksheet
    Dim X As Long
    Dim UID As String
    Dim PWD As String
    Dim Server As String
    Dim strCon As String
    Application.Calculation = xlCalculationManual
    UID = "myUserid" 'Enter the User ID
    PWD = "myPassword" 'Enter the password
    Server = "myHostname or myServername" 
    Set Data = Sheets("Sheet2")  
    Data.Select
    Range("A:J").ClearContents 
    strCon1 = "Provider = Microsoft.ACE.OLEDB.12.0;DATA SOURCE=myHostName;Database=myDBname;uid=myUserid;pwd=myPassword;"
    Conn.Open (strCon1)
    Cmd.ActiveConnection = Conn
    Cmd.CommandType = adCmdText
    ' Put your query next
    sqlText = " select * from table "
    Cmd.CommandText = sqlText
    Set RS = Cmd.Execute
    For X = 0 To 17 
    Data.Cells(1, X + 1) = RS.Fields(X).Name
    Next
    Do While Not RS.EOF 'this loops through the data and puts it in the spreadsheet
    Row = Row + 1
    For Findex = 0 To RS.Fields.Count - 1
    Data.Cells(Row + 1, Findex + 1) = RS.Fields(Findex).Value
    Next Findex
    RS.MoveNext
    Loop
    Application.Calculation = xlCalculationAutomatic
    Application.Calculate
    End Sub
    sammy

    I have set oci.dll in to the path specified. Prior to this I musy say that, I have 64 bit excel 2010 & installed respective drivers from the link provided http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    But
    still I am facing as:-" Provider cannot be found. It may not be properly installed."
    sammy

  • Problem in connecting Non Oracle Database from Oracle

    Hi:
    I want to access "MS ACCESS" from Oracle 10g (10.2.0.1) using Windows XP.
    I tried my best, applied all proper instructions I found from books and from Internet, but getting an error.
    Here is what I did:
    My Oracle database is called "ORCL" and "MS ACCESS" is called "access_1".
    There is only one table "Employees" in "access_1".
    1. Accessed ODBC from Start | Control Panel | Administrative Tools.
    2. Clicked on Users DSN | "access_1" | Add.
    3. Clicked on "Drive do Microsoft Access (*.MDB)" .
    4. Hit Finish.
    5. Entered at DATA SOURCE NAME "ODBC1" and at DESCRIPTION "Connect Oracle to MS Access". Also I clicked on SELECT and chose the "Access_1.mdb" which is located at "C:\Documents and Settings\Muhammad\My Documents" folder. Clicked OK. and clicked on OK again.
    6. Now I went to Oracle side and configured listener as follows: (Only portion is shown here)
    # listener.ora Network Configuration File: C:\oracle\product\orcl\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = RIYAZDESKTOP)(PORT = 1521))
    7. Configuring the hs file located at C:\oracle\Product\Orcl\hs|admin as follows:
    # HS init parameters
    # HS_FDS_CONNECT_INFO = <odbc data_source_name>
    # HS_FDS_TRACE_LEVEL = <trace_level>
    HS_FDS_CONNECT_INFO = odbc1
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    8. The TNSNAMES.ORA File is located at C:\:\oracle\product\orcl\network\admin\ and has the following text (only the related text is shown here):
    # tnsnames.ora Network Configuration File: C:\oracle\product\orcl\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools
    access_db.world =
    (DESCRIPTION =
    (Address = (PROTOCOL = TCP) (HOST = RIYAZDESKTOP) (PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
    (HS=OK)
    9. The database link is created as follows:
    SQL> create database link access_db USING 'access_db.world';
    Database link created.
    SQL>
    10. Now the test and selection:
    SQL> select * from employees@access_db;
    select * from employees@access_db
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from ACCESS_DB
    OH! I HAVE TO RELOAD THE LISTENER AND I DID IT HERE.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\oracle\product\orcl\BIN>lsnrctl reload
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-NOV-2006 17:51:26
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    C:\oracle\product\orcl\BIN>
    SQL> select table_name from all_tables@access_db;
    select table_name from all_tables@access_db
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL State: IM002; SQL Code: 0)
    ORA-02063: preceding 2 lines from ACCESS_DB
    I HAVE DONE IT EXACTLY WHAT YOU PROVIDED ME BUT GOT THE SAME RESULT.
    ANY SOLUTION!
    THANKS.

    see Connect 9i to Microsoft Access Database

  • How to find the number of ODBC connections to Oracle Database

    Hi All,
    How to find the number of ODBC connections and all connections to the Database in last week. Are there any views to get this information?
    Thanks in advance,
    Mahi

    What Ed said is true that Oracle doesn't note which type of protocol is connecting to the database, however, you can see which program is accessing the database.
    For example: if you already know of a user using ODBC, you can verify as:
    select username, osuser, terminal, program from v$session where username = 'SCOTT'
    USERNAME                 OSUSER          TERMINAL   PROGRAM
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    2 rows selected.Assuming that you can confirm the progam noted in the above (example) is the one using ODBC, then you can change the query such as:
    SQL> select username, osuser, terminal, program from v$session where program = 'w3wp.exe';
    USERNAME                 OSUSER          TERMINAL   PROGRAM
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    SCOTT                    IUSR_SRV231     SRV231     w3wp.exe
    2 rows selected.Just for kicks, I checked our listener.log file, but there was no reference of odbc in it either.
    Hope this helps...

  • Connection to oracle database from sap R/3

    Hello SAP Masters,
    I do have two querries.
    1) I want to download the data into oracle.
    so is it possible in sap?
    2)please explain me how in details?
    3) I tried with DBCON .
    4) But when I wrote program stating the name of the connection it is giving dump.
    5) So  can i get two things.
    6) Some sample DBCON information.
    7) And after this connection how to insert the data into oracle.ie native sql code
    and abap code.
    8) please can any one explain me with example in details or sample code?
    Regards,
    Prasad Dhaygude.

    Hello Ajai,
    Thanks raised to infinity.
    Many thanks for sharing your valuable time for my querry.
    Still I do have one querry as follows:
    1) Actually I want to connect with the oracle database.
    so I made entries like this:
    database name:deepak_data
    dbs: ora
    username: prasad
    connection information:oracle_server=ess-serverORACLE_DBNAME=INVOICE_02
    now I want to ask you.
    How to write native sql code in abap.
    *& Report  ZP                                                *
    REPORT  ZP.
    TABLES: Zp,dbcon.
    DATA: BEGIN OF IT_ITAB OCCURS 0,
          INV_NO LIKE Zp-INV_NO,
          AUBEL LIKE Zp-AUBEL,
          MATNR LIKE Zp-MATNR,
          FKIMG LIKE Zp-FKIMG,
          END OF IT_ITAB.
    data:BEGIN OF IT_ITAB1 OCCURS 0,
         INV_NO like Zp-INV_NO,
         end of IT_ITAB1.
    DATA: exc_ref TYPE REF TO cx_sy_native_sql_error,
    error_text TYPE string.
    DATA: WA LIKE IT_ITAB.
    START-OF-SELECTION.
    SELECT * FROM Zp INTO CORRESPONDING FIELDS OF TABLE IT_ITAB.
    EXEC SQL.
    CONNECT TO :  invoice_02 USER df_truck USING df_truck
    endexec.
    EXEC SQL .
    LOOP AT IT_ITAB.
    INSERT INTO ZINVOICE_02 VALUES IT_ITAB.
    ENDLOOP.
    ENDEXEC.
    *ENDFORM.
    I wrote the code mentioned above.
    But it states that field specification missing at the time of execution.
    2) Please check the code and connect to statement also.
    Can you please explain me with the help of sample code that how to write
    connect to statement.
    3) First of all I ll have to connect to database or oracle server on which oracle
    database exists.
    4) And then I ll have to insert the data from zinvoice02 into oracle table invoice_02.
    5)Many Many thanks for your cooperation.
    6) I wish you happy Navaratri and coming Dassera.
    Regards,
    Prasad.

  • Connecting to Oracle database from ASP = please help!

    i have tried every kind of combination of connection string to connect to a 9i database from ASP but it does not work!
    I am using XP Professional and have 9i Developer and ODP.NET installed but I want to use OLE DB (Oracle or Microsoft) to access the database. I have a feeling the web page is not seeing the driver. here is my code:
    <% Option Explicit %>
    <HTML>
    <HEAD><TITLE>Oracle Data Access</TITLE></HEAD>
    <BODY>
    <%
    Dim objConnection
    Dim objRecordset
    Set objConnection = Server.CreateObject("ADODB.Connection")
    With objConnection
    .ConnectionString = "Provider=MSDAORA;Data Source=obiwan;" & _
    "User ID=user; Password=pass;"
    .Open
    Response.Write "ADO Provider=" & .Provider & "<BR>"
    Set objRecordset = .Execute("SELECT sysdate, user FROM dual")
    End With
    </body>
    </html>

    Try using this connect string:
    Provider=MSDAORA.1;Password=tiger;User ID=scott;Data Source=ORA92;Persist Security Info=True
    substitute your username/password and Data Source here.
    This works on Windows2000 with Microsoft OLEDB provider
    for Oracle.

  • Connect to Oracle Database from Windows Mobile

    Is there any Oracle Client product that will allow Windows mobile powered devices to connect to an oracle database? I'm using .net and the compact framework 2.0.
    Anyone have a clue?
    Regards,
    Andras Eliassen

    I think I would call it a client tool. Maybe I wasn't so precise in my previous post, sorry. What I need is basically this:
    I have a 9i database that is running on a unix box on my network. I have created a Visual Basic .Net application that is using ODT to select, insert, update and delete records in this database - and also executes some stored procedures.
    Now I'm trying to move to the next step, and I want my windows mobile powered device/phone to do the same thing - Select, insert, update, delete and execute stored proc/pckgs on the database.
    The only way I have found to do this, is by implementing some webservice or something in between my windows mobile device, and the database, because I cannot find dataaccess drivers/components (ODT or the like) that will work on a windows mobile powered device.
    Any suggestions?
    Regards,
    Andras Eliassen

Maybe you are looking for