How to programmatically connect to MS Access linked tables to oracle ?

Hi,
I have database in MS Access which has linked table in oracle database.
But I am not able to connect to that linked table through java program .
It gives me java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'servername' failed.
Can anybody suggest me how to tackle this problem?

This blog post should have most (if not all) of what you need:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
One thing to watch out for is the db provider for the connection string.  The "Jet Engine" has been superseded by
ACE.

Similar Messages

  • How to access remote tables on Oracle from Access fron end?

    Note: Access application and access tables are in separate .mdb files.
    I've successfully migrated my Access 2000 tables to Oracle. And there were no errors during the migration. The two original Access tables were renames to tblBOMdetail_L and tblPartInfo_L and two new linked tables were created with the _R name. Mapping queries were created for tblBOMdetail and tblPartInfo.
    However, when I launch my Access application, I get the following error: "The Microsoft Jet database engine cannot find the input table or query 'tblPartInfo'. Make sure that it exists and that its name is spelled correctly."
    Is there something more that I have to do to enable this connection. I already have the necessary ODBC connection set up.
    Thanks.

    Hi ,
    The first thing you need to verify is that you can view the data in the tables with _R appended to their name. This will verify whether the ODBC link is set up correctly and pointing at the correct Oracle table in the Oracle database.
    Another point. Are you still using 2 .mdb files? If so since your data is now in Oracle it may be prudent to use only one .mdb.
    If you need more help then please contact [email protected]
    John

  • How i can load excel sheet into a table in oracle through pl/sql procedure

    Hi,
    How i can load excel sheet into a table in oracle through pl/sql procedure or a pl/sql block. Excel sheet is saved on my c or d drive on my machine. In xls format.

    Depending on how big your spreadsheet is and how frequently you want to do this you might want to contruct insert statements in excel, then run these. I have done this to load a few hundred rows for a one off test on dev.
    e.g. if you have values 1 and 'a' in you spread sheet and want to insert them in to table xxx col1 & 2:
    | /|   A   |   B   |    C
    |1 |col1   |col2   |
    |2 |      1|a      |="insert into xxx ("&$A$1&","&B1&") values ("&A2&",'"&B2&"');"then paste the contents of colum C
    insert into xxx (col1,col2) values (1,'a');into sqlplus or a script.

  • How to get a list of most fragmented tables in Oracle?

    Is there an SQL on how to get a list of most fragmented tables in Oracle DBMS?

    Thanks! I would just like to ask you, what do the negative values mean in wasted space?
    Is there an easy way to improve defragmentation state?
    TABLE NAME     SIZE     ACTUAL DATA     WASTER SPACE
    TREE     0     0     0
    GC_S     3744     4651.9     -907.9
    TRAIL     104     113.04     -9.04
    ASSOCIATION_RULES     272     353     -81
    ATTRIBUTES     1728     2528.12     -800.12
    AUDITACTION     128     208.48     -80.48
    DV     18608     36266.47     -17658.47
    S134     728     903.08     -175.08
    A178     344     518.75     -174.75
    S129     728     896.48     -168.48
    AGS_NODES     2864     4510.33     -1646.33
    S149     472     633.79     -161.79
    S127     728     871.62     -143.62
    tu     2232     3619.76     -1387.76
    PCd_DATA     3112     4371.75     -1259.75

  • How Can I connect to MS Access or DBASE using forms6i?

    Hello,
    I have installed Forms6i on my PC (No Oracle Database installed).
    I have Three Data source
    1. MS access DB
    2. Excel File
    3. Dbase4 File.
    How can I connect to these databases using forms6i?
    I have created ODBC DSN for MS Access DB, in forms6i Connect screen
    entered following
    username - admin
    password - password
    database - odbc:pay - (pay is dsn for MS access).
    It is giving following error.
    ORA-03121:no interface driver connected function not performed.
    Thanks in advance.

    Harshad,
    This forum focuses on connectivity solutions for the database. Your question would be best posted on the General application server forum.

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • MS Access Linked Tables

    I have an MS Access database that I have no choice but to use, and the powers that
    be won't move it to Oracle anytime soon. I'm working on my own workstation running
    a Tomcat 4.1.31 Server.
    The database is on a network share and links tables from another network directory.
    I defined a System DSN to the "main" access database to access it via the
    JDBC/ODBC Bridge. However, when I try access a query using a "linked" table from
    the other Access database, I get a ServletException:
    Access Driver The Microsoft Jet database engine cannot open the file
    "\\share\database2.mdb".  It is already opened exclusively by another user, or
    you need permission to view its dataIs there a way to make this work? I cannot modify the current setup or configuration
    of either Access database (if I could have, I would already have taken the virtual axe
    to it).
    Jason

    >
    Is there a way to make this work?You start by looking at the enviroment, not java.
    First are you running tomcat as a service? When a service starts up it starts up in an enviroment. Just as when you log in your have an enviroment. And you need to be in the same environment for you to verify access. Changing the service to use a user will often help this.
    Once you have looked at the above then log in as the user (on the same computer) that the service runs as. Using dir from a console verify that you can see the file. If you can't dir the file then tomcat can't access it.
    After that then use the MS Access GUI to access that file. Verify that you can view it and modify it.

  • How to see the linked table in oracle 8.0

    hi,
    i am using oracle 8.0, i have some 8 to 9 tables in it, some of them are linked, is there any way i could see the linked tables, if you do know any utility pls let me know.
    regards
    user456932

    i am using oracle 8.0, i have some 8 to 9 tables in
    it, some of them are linked, is there any way i could
    see the linked tablesI understand from your question that you are refering to Referential Integrity. I.e you have Parent Tables with Primary Keys and Child Tables linked with Foreign Keys.
    It is easier to use GUI tools (OEM, Toad etc) to browse through them. In Toad for instance as a start, you can view the SQL Model. There are other Modelling tools you can use as well.
    For the start, you can check USER_CONSTRAINTS and other related dictionary views to find them.
    Here is a small example:
    select      constraint_name
         ,constraint_type
         ,table_name
         ,r_constraint_name
         ,delete_rule
         ,status
    from user_constraints;
    The constraint_type will show P (Primary Key), C (Check), R (Referential) etc
    However, you can use queries to find Object Dependencies in the Database.
    Read more from the SQL Reference Manual to get more knowledge in this area.

  • Error while accessing a Table on Oracle Database 10.2

    Hi Experts,
    We have a table that contains a CLOB datatype in one of its column. However when i tried to access the table i get the below error.
    <b>Table Name:</b> discrete_jobs
    <b>Error:</b>
    (Error starting at line 1 in command:
    select * from [email protected]
    Error report:
    SQL Error: ORA-22992: cannot use LOB locators selected from remote tables
    22992. 00000 - "cannot use LOB locators selected from remote tables"
    *Cause:    A remote LOB column cannot be referenced.
    *Action:   Remove references to LOBs in remote tables.)
    Pleas Help!
    Regards,
    Ravi R

    See some work arounds - "How to select table from remote database having clob field</a>

  • Linking Tables to Oracle Views

    I am not able to see the PKs in MS-ACCESS after creating a linked table to a view within Oracle. The views were created using Select * from the base table which is a materialized view. No WHERE clause in the view.
    Also, why do I get an error when creating a linked table to a materialized view in Oracle. I am getting the following error when creating the linked table:
    "Invalid filed definition M_ROW$$ in definition of index or relationship.
    Thanks,
    Todd Schaberg
    [email protected]

    This is a known problem. We're trying to work with the materialized views folks to get this resolved.
    As a workaround, you can create a view of the materialized view and link to that.
    Justin Cave
    ODBC Development

  • How to Pull data from sap r/3 tables to oracle tables

    how to fetch data from sap r/3 tables & data pulled to oracle table .
    GIVE THE APPROPRITE ANSWER FOR THIS.
    THANKS IN ADVANCE.
    If it is useful for me , i am giving point.
    regards ,
    Navita
    Edited by: NAVITA YADAV on Mar 7, 2008 2:07 PM
    Edited by: NAVITA YADAV on Mar 7, 2008 2:08 PM

    You need to perform some native SQL to fetch data. Before doing this connection must be exists b/w your R/3 and Oracle server.
    Basis team will help you to have connection.
    Check the connection name in the table DBCON.
    Check the below code to handle native SQL.
      SELECT SINGLE  DBMS
               FROM  DBCON
               INTO  DBTYPE
               WHERE CON_NAME = DBS.
      IF DBTYPE = 'ORA'.
        TRY.
          EXEC SQL.
            CONNECT TO :dbs
          ENDEXEC.
    ERROR Handling for Native SQL *************
          IF SY-SUBRC <> 0.
            MESSAGE `Docusphere connection failed.` TYPE 'I'.
            EXIT.
          ENDIF.
      EXEC SQL PERFORMING loop_output.
        OPEN C1 FOR
        SELECT  UK1, UK7, uk6, uk9, uk22, uk23, uk25    "field names of Oracle table
        FROM IIS_DOCS_AP10D
        WHERE ( UK2 = 'ZFIINVOICE' OR UK2 = 'ZFIPAYREQ' )    AND
        UK19 = 'E'                                           AND
        UK20 IS NULL
      ENDEXEC.
          DO.
            CLEAR W_OUTPUT.
            EXEC SQL.
              FETCH NEXT C1 into :wa1-arc_doc_id, :wa1-bukrs, :wa1-belnr, :wa1-gjahr, :wa1-wi_id, :wa1-ARCH_METHOD, :wa1-barcd.
            ENDEXEC.
    enddo.
    Reward points if helpful.................

  • Access a table on Oracle 8 Ver into Oracle 10g

    Hello All,
    Could you please tell me how to access a table directly sitting on Oracle 8.1.6 version database into Oracle 10G database. Appreciate your time.
    Thanks & Regards,
    Ariean.

    Hello,
    If you runninng from a client machine then you can use sql script to extract and use sqlldr to load from it. But if you want to extract using pl/sql procedure (utl_file) then you need to write a procedure which generates .csv format on 8i db server, then you ftp .csv formatted and use sqlldr. Setting up utl_file in 8i is easy but it might requires a restart. But in this case, write a small sql script to generate (spool) a data file (csv) and loaded up in 10g using sqlldr. Here a small script to genereate a sql script which in turn will generate "|" delimited datafile.
    Just replace "MY_OBJECTS" with your table name and it will generate sql script which you can run from client to generate .csv ('|" ) delimited. You can change it to generate ","
    {code}
    SET pagesize 0
    SET verify off
    SET feedback off
    SET linesize 400
    SET termout off
    SET TRIMSPOOL on
    SET TRIMOUT ON
    SPOOL mytest.sql
    SELECT 'spool test.csv' FROM DUAL;
    SELECT DISTINCT
    'set termout off'
    || CHR (10)
    || 'set feedback off'
    || CHR (10)
    || 'set heading on'
    || CHR (10)
    || 'set pagesize 0'
    || CHR (10)
    || 'set linesize 800'
    || CHR (10)
    || 'set TRIMOUT on'
    || CHR (10)
    || 'set trimspool on'
    || CHR (10)
    || 'set long 2000'
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS');
    SELECT 'select '
    FROM DUAL;
    SELECT (CASE
    WHEN column_id = 1
    THEN
    (CASE
    WHEN data_type LIKE '%CHAR%'
    THEN
    column_name
    WHEN data_type = 'DATE'
    THEN
    'to_char(' || column_name || ',''DD-MON-YYYY'')'
    ELSE
    column_name
    END)
    ELSE
    (CASE
    WHEN data_type LIKE '%CHAR%' AND data_length = 4000
    THEN
    '||''|''||substr(' || column_name || ',1,4000)'
    WHEN data_type LIKE '%CHAR%'
    THEN
    '||''|''||' || column_name
    WHEN data_type = 'DATE'
    THEN
    '||''|''||to_char('
    || column_name
    || '|''DD-MON-YYYY'')'
    ELSE
    '||''|''||' || column_name
    END)
    END)
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS')
    ORDER BY column_id;
    SELECT '||''DELIM'''
    FROM DUAL;
    SELECT ' from MY_OBJECTS;'
    FROM DUAL;
    SELECT 'spool off'
    FROM DUAL;
    {code}
    Regards
    Edited by: OrionNet on Mar 18, 2009 10:15 AM

  • How to programmatically connect similar to "/ as sysdba"?

    Hi,
    The command 'sqlplus "/ as sysdba"' seems to work even without listener running. I am assuming that sqlplus directly "connects" to the instance some how. Is there any way similar behaviour can be obtained programmatically? I am thinking of using JDBC to connect and can use oci driver if required.
    My test is on windows 2003 but I would like to know the answer for solaris and linux as well (assuming it is not same as on windows).
    Thanks,
    Raghu.

    I want to ask for a solution of exporting one system
    table with 10 rows in 10gr2. Just using export
    utility. Do you mean a table in the schema SYSTEM?
    >
    That table is a system table, so I have to login as sysdba.No, you don't. And you shouldn't:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1004777

  • How can i connect my Panasonic Viera Link TV with Airport Extreme?

    I use the Panasonic adaptor that came with my Blu-ray player. It worked with my Panasonic plasma TV when I used a NetGear router, but I recently changed to an Airport Extreme router and now neither the Blue-ray nor TV will connect. They find my network, but when I enter the password, after waiting a while, I get an error message that the network timed out. My iPad, iPhone, and MacBook Pro and MacAir all connect fine to this router from anywhere in the apartment. I am not using the wrong case when entering the letters of my password. It's exactly the same passsword that I enter on all my devices. Please help me connect the Panasonic TV to the Airport Extreme--I do NOT want to use ethernet. I want to use the wireless connection. Again--it worked fine withe the Netgear router, but does not connect wiht teh Airport Extreme.  Thanks!

    Checking the specifications of your camera, I see it as a Firewire out .
    DV:  4-pin, digital input/output, IEEE 1394 standard     (IEEE 1394 is Firewire)
    So you should be able to connect it to your Mini via the Firewire 800 port.
    You will need a Firewire 400 to Firewire 800 cable because the Firewire on the camera is a 400.
    But I couldn't fine any info that confirmed this model is compatible with iMovie if this is what you plan to use for editing.
    There is a work around but it is not very easy.
    Simplest way to import your videos is still Elgato video capture, but it will not give you the same quality as DV

  • How to automate creation of MS Access databases/tables/records

    Can someone point me to some examples that automate the creation of MSAccess database files and tables?
    Can I do this with a bat file? If not, a ps1 file?
    I bing searched and could not find an example.
    I want to test the existence of a mdb (or accdb) file and if it does not exist, create it.
    Then I want to see if that mdb (or accdb) file contains a table named "parts".
    If it does not contain that table named "parts", create the table.
    If that table does not contain any records, than add some sample data, presumably with some SQL "INSERT" statements.
    What is the preferred API for this? I was thinking we should use the ADO.NET/OleDB API. I did find a few examples of queries of MSAccess databases with the old ADO API.
    ADOX seems very old for creating databases. Is there any thing more modern?
    Is powershell the easiest scripting language to do this?
    Thanks
    Siegfried
    siegfried heintze

    This blog post should have most (if not all) of what you need:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
    One thing to watch out for is the db provider for the connection string.  The "Jet Engine" has been superseded by
    ACE.

Maybe you are looking for

  • Language change after update to Lightroom 3.2! Help asked!

    I use Lightroom from the first version and love to work with it. I always work with the English version of it - for several reasons - even when my Windows XP version is in Dutch. By upgrading to Lightroom 3.2 I selected the English language. After th

  • Oracle BPM ..

    i have created a bpm application. i initiate the process from the server machine itself. now when the other user logs into bpm workspace, the user is able to see the task in the task list but the task does not open. it shows this... Firefox can't fin

  • In server side i got this below error.

    Hi all, its very urgent.... plzzz help me. I developed one oaf page and these files move to server side i got below error. *[appldev@wnsfinapp webui]$ javac ProjectInfoMainCO.java* Note: ProjectInfoMainCO.java uses or overrides a deprecated API. Note

  • Standard SAP t-code to get the log of deliveries that has been deleted

    Hi All, I need a help on the below issue. Is there any standard SAP t code which gives the log of the deliveries which has been deleted ? If Yes; Could you please share the same ? Thanks, Babu Kilari

  • Redirecting to ASP from Servlet

    How to redirect the data from a servlet to ASP. Right now my servlet is displaying data in a JSP but i need that to be displayed on ASP. Any Ideas?