To connect oracle database with ms access database

i want to connect oracle database with ms access database
i have follow the following steps
1. create ms access database.
2. create system dsn.
3. make change in listener.ora.
4. make change in hs folder.
5.change the tnsname.ora.
6. lsnrctl stop and lsnrct start.
7. create database link in oracle sql*plus.
8.select the table of ms access
but i have return the foloowing error.
ORA-12154: TNS:could not resolve the connect identifier specified
using window 2000, oracle 10g

Have a look on ths thread, may it helps ...
Re: copy access data into oracle with form builder 9i

Similar Messages

  • I want to connect an applet with an access database

    I want to connect an applet with an access(*.mdb) database, how I do?
    I now the jdbc odbc bridge but how work it?
    Please Help me!!!!!!!!!!

    If you want access database please install IDSSERVER and import j102.sql.*;
    Example:
    import java.awt.*;
    import java.io.*;
    import j102.sql.*;
    public class AccessMdb extends Applets {
    Connection con;
    ResultSet rs;
    Statement stmt;
    IDSDriver drv;
    String _url ="jdbc:ids://localhost:your port /conn?dsn="your database"";
    // make connection to database
    drv = new j102.sql.IDSDriver();
    try{
    con = drv.connect(_url,null);
    stmt = con.createStatement();
    // query database
    stmt.executeQuery("your SQL statement");
    }catch(Exception ex){
    System.out.println(ex.getMessage());
    Good luck.

  • How to Connect JSP (Tomcat) with MS access Database

         ^
    Hi all:
    I have been trying to connect JSP using tomcat server with database in MS Access..I have been going through the required steps...but it seems it is a bit complicated...pls help.
    ps: I used to get this message when I run the program:
    C:\jakarta-tomcat-4.0-b5\work\localhost\feras\db1_jsp.java:71: Class org.apache.jsp.PreparedStatement not found.
         PreparedStatement sql;
         ^
    C:\jakarta-tomcat-4.0-b5\work\localhost\feras\db1_jsp.java:81: Undefined variable or class name: DriverManager
                   dbconn = DriverManager.getConnection(url);
                   ^
    C:\jakarta-tomcat-4.0-b5\work\localhost\feras\db1_jsp.java:111: Class org.apache.jsp.SQLException not found.
              catch (SQLException s)

    Hi friends:
    this is the source code, I am working on tomcat server, and it doesn't work at all
    <html>
    <head>
    <%@ page
         import = "java.io.*"
         import = "java.lang.*"
         import = "java.sql.*"
    %>
    <title>
    JSP Example 2
    </title>
    </head>
    <body>
    <h1>JSP Example 3</h1>
    <%
         String     place;
         String url = "jdbc:odbc:ferasdb";
         Connection dbconn;
         ResultSet results;
         PreparedStatement sql;
         try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              try
                   int     latitude,longitude,easting,northing;
                   boolean     doneheading = false;
                   dbconn = DriverManager.getConnection(url);
                   place = request.getParameter("place");
                   sql = dbconn.prepareStatement("SELECT * FROM gazetteer WHERE feature = '" + place + "'");
                   results = sql.executeQuery();
                   while(results.next())
                        if(! doneheading)
                             out.println("<table border=2>");
                             doneheading = true;
    latitude = results.getInt("latitude");
    longitude = results.getInt("longitude");
    easting = results.getInt("easting");
    northing = results.getInt("northing");
                        out.println("<tr><td>" + latitude);
                        out.println("<td>" + longitude);
                        out.println("<td>" + easting);
                        out.println("<td>" + northing);
                   if(doneheading)
                        out.println("</table>");
                   else
                        out.println("No matches for " + place);
              catch (SQLException s)
                   out.println("SQL Error<br>");
         catch (ClassNotFoundException err)
              out.println("Class loading error");
    %>
    </body>
    </html>

  • Oracle Forms with MS Access

    Hi,
    I have to connect Oracle form with MS Access database. I have used ODBC to connect but failed and got error Ora-03121. Can someone help me to do it.
    Regards,
    Muazzam

    If you search for ODBC and ACCESS, you get a lot of links, one of them is this Re: Connecting Oracle forms 6i to MS Access

  • How to connect oracle with ms access database

    Dear
    We are on release r12, right now we have requirement to connect oracle database with ms access to get some information. We have found gateway(Heterogeneous services) using ODBC, but at the database side where is installed oracle r12 there is no installed ms access software becuse of linux operating system, so how could it will connect ms access because without installing ms-access we are unable to find ms ODBC gateway in ODBC driver under the control panel.
    Can any body guide me how could achieve this
    Edited by: oracle0282 on Sep 21, 2011 12:47 AM

    If I understand you correctly you want to access Oracle on Linux from MS-Access (possible on Windows only). You need neither a gateway nor Heterogeneous Services, but an Oracle client including ODBC driver (Instant client with ODBC driver is enough) on the Windows machine.
    Configure the ODBC driver with the connect informations to the Oracle server.
    Werner

  • SQL Query with MS-Access Database

    Hi,
    I have linked my oracle database with MS-Access via a DB LINK. i can access the data from MS-ACCESS, but i have a problem that when i specify the column name or define a where clause in my query it gives me the error ORA-00904: invalid identfier ..
    This query fetch the data without any problem SELECT * FROM TBLREPORT@M_ACCESS but when i run SELECT EMP_ID FROM TBLREPORT@M_ACCESS it gives me the error i mentioned above. (Column name have No problem or mistake of spelling even CASE)
    also when i try to put where clause in the query it gives me same error SELECT * FROM TBLREPORT@M_ACCESS WHERE EMP_ID = '100' (Error)
    is there any change in SQL query for ACCESS database ??
    any clue
    Regards
    Rehman

    Are column/table names in access case sensitive? Issue
    DESC TBLREPORT@M_ACCESS If column EMP_ID actual name shows up in mixed/lower case, enclose it in double quotes and use the exact case. E.g., if column name shows up as Emp_Id, use:
    SELECT "Emp_Id" FROM TBLREPORT@M_ACCESSSY.

  • How to link dataTable component with Microsoft Access Database?

    Please mail me @ [email protected]

    Creator might not support MS Access yet but use this code for an access database connection will always work even through notepad or textpad:
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.InputStream;
    import java.util.Properties;
    * @author Mark Hennessy
    public class MyDataSource {
    private static MyDataSource ds = null;
    private static java.sql.Connection connection = null;
    /** Creates a new singleton instance of MyDataSource */
    private MyDataSource() {
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = java.sql.DriverManager.getConnection("jdbc:odbc:<db name>", "guest", "guest");
    }catch(ClassNotFoundException cnf){
    cnf.printStackTrace();
    }catch(java.sql.SQLException sqle){
    sqle.printStackTrace();
    public static DataSource getInstance() {
    if(ds == null)
    ds = new DataSource();
    return ds;
    public java.sql.Connection getConnection() {
    return this.connection;
    public static void closeConnection() {
         try{
              connection.close();
         }catch(java.sql.SQLException sqle){
              sqle.printStackTrace();
    plus set up the ODBC connection via click start , click run and then copy and paste the following "odbcad32.exe" without the quotes, click ok, click user DSN tab, click Add...button select Microsoft Access Driver (*.mdb) click finish, give <db name> name of ur access database, give any description <whatever> or leave blank click the select... button navigate to the access database u want to connect to in your java code and select it.
    in calling program
    public class CustomersImplimentation {
    private static java.sql.Connection connection = null;
    private java.sql.ResultSet rs = null;
    public CustomersImplimentation(){
    connection = MyDataSource.getInstance().getConnection();
    public Customers[] findAll(){
    java.util.ArrayList list = new java.util.ArrayList();
    String sql = "SELECT * FROM CUSTOMERS";
    try{
    java.sql.Statement stmt = connection.createStatement();
    rs = stmt.executeQuery(sql);
    while(rs.next()){
    list.add(new Customers(rs.getInt(1), rs.getString(2), rs.getString(3)));
    }catch(java.sql.SQLException sqle) {
    System.out.println((new StringBuilder()).append(
    "SQLException :: executeQuery Cannot find all Customers:").append(sqle).toString());
    Customers[] customers = new Customers[list.size()];
    for(int i = 0; i < list.size(); i++){
    customers[i] = (Customers)list.get(i);
    return customers;
    if you have a Customers class created with set and get methods and a constructor that takes an int string string i.e.
    public Customers(int ID, String firstName, String lastName){}
    then u should be able to run these classes from within creator with an access database. hope this helps?
    regards
    Henno

  • Oracle Portal with Lotus Notes Databases

    We have Web-enabled Lotus Notes Databases as part of our Intranet has any one else found a successful method for integrating these into the Oracle Portal?

    Hi Emma,
    I guess you have posted two topics for the same issue. I have replied to the other topic.
    You can access that topic with the following URL:-
    Oracle Portal with Lotus Notes Databases
    Take care,
    Manoj

  • How to connect Forms 6i with MS Access

    Dear All:
    Can we connect Forms 6i with MS Access? If yes then how? Any document? Any suggestions?
    Thanks
    Hassan

    Thanks Jose for your suggestions:
    I am sorry I did not use the search utility of Forum.
    Anyway I have connect the Forms 6i with MS Access
    I created two text item in a Non-Database block and write following coding on a Push Button:
    declare
    connection_id EXEC_SQL.CONNTYPE;
    cursorID EXEC_SQL.CURSTYPE;
    sqlstr VARCHAR2(1000);
    d1 VARCHAR2(100);
    d2 NUMBER;
    nIgn PLS_INTEGER;
    nRows PLS_INTEGER := 0;
    BEGIN
    connection_id := EXEC_SQL.OPEN_CONNECTION('hsn','hsn','odbc:test');
    cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
    sqlstr := 'select d1,d2 from abdali ';
    EXEC_SQL.PARSE(connection_id, cursorID, sqlstr, exec_sql.V7);
    EXEC_SQL.BIND_VARIABLE(connection_id, cursorID, '', '');
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 1, d1, 100);
    EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 2, d2, 100);
    nIgn := EXEC_SQL.EXECUTE(connection_id, cursorID);
    WHILE (EXEC_SQL.FETCH_ROWS(connection_id, cursorID) > 0 ) LOOP
    nRows := nRows + 1;
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 1, :d1);
    --EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, :d2);
    next_record;
    END LOOP;
    message(nrows);
    IF (nRows <= 0) THEN
    TEXT_IO.PUT_LINE ('Warning: query returned no rows');
    END IF;
    END;
    I can retrieve the data from MS Access but there is a problem occured.
    The data type of one column in Access is defined as Intiger
    I also defined a text item in form as Intiger but when retrieved then it returned following error:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-306500.
    I remarked the following coding it works fine.
    EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 2, :d2);
    Any suggestions: I also read the OCA_INFO.pdf but did not find how to handle this type of problem.
    If you can help me to find out how to match the data types of both the databases?
    Also can I insert the data from a Database Block of Oracle into MS-ACCESS thru write code on the Button.
    Thanks for help
    Hassan

  • How to connect with Microsoft Access Database with JAVA

    I want to know the command and query to connect between MSAccess and JDBC.
    Is it beter way to make connection with MSAccess comparing with other Databases such as SQL and Oracle.
    Which Database will be the best with Java?
    I also want to know to be platform indepadent which database is suitable?

    On Windows, you can use MS Access database by:
    Set up a System Data Source using the ODBC control panel applet.
    Use the jdbc:odbc bridge JDBC driver, and specify a jdbc url that points to the data source name you just specified.
    It's been too long since I've done this, so I don't remember the syntax of the jdbc url, but I'm sure that if you do a search for the jdbc:odbc bridge that you will find what you are looking for.
    As far as the question about which database is best, you will need to determine that based on your project requirements.
    If you want a quick and dirty, open source, cross-platform database, take a look at HyperSonic SQL.
    - K

  • Need to archive Oracle data into MS Access database

    Gurus,
    I've been tasked with archiving several large tables (10 million records) into an MS Access database. I'm looking through MS Access help guide which states that I can use the ODBC driver to create table, column definitions, and import data.
    Does anyone have any good resources on creating an ODBC driver for MS Access. Also, any reference material would be greatly appreciated.
    Thanks
    Scott

    sreese wrote:
    Gurus,
    I've been tasked with archiving several large tables (10 million records) into an MS Access database. On the face of it, that is an astoundingly bad idea. Using the worst database product (I can't even really refer to it as an RDBMS) on the planet to archive data that is already in the best RDBMS on the planet?
    What does the person who came up with this idea expect to achieve?
    I'm looking through MS Access help guide which states that I can use the ODBC driver to create table, column definitions, and import data. ODBC drivers don't create anything. They provide a common link between ODBC enabled apps and the native db interface.
    >
    Does anyone have any good resources on creating an ODBC driver for MS Access. You don't create the driver. It is provided by either MS or Oracle (they both have them). You just configure a connection definition (aka "Data Source Name" or DSN) that utilizes it.
    Also, any reference material would be greatly appreciated.
    Thanks
    Scott

  • ODBC Cartridge works with MicroSoft Access database?

    I need to work with data saved in the Access Database, I wonder
    if the ODBC Cartridge will work with Access? From the
    documentation, it only mentions Informix, System.... it didn't
    mention Access or Excel ...
    Any suggestion or prior experience to share will be appreciated.
    Your asap response is much appreciated...thanks.
    Frankie
    null

    Hi,
    I'm using OAS407 with ODBC cartridge and connecting to
    Access. Also, Oracle support put an enhancement request
    in for us to modify the ODBC cartridge to return BODY
    tags thru ICX, so ODBC cartridge can be used with
    LiveHTML. Is that what you want to know?
    Regards,
    Mike Thomas
    Frankie (guest) wrote:
    : I need to work with data saved in the Access Database, I
    wonder
    : if the ODBC Cartridge will work with Access? From the
    : documentation, it only mentions Informix, System.... it didn't
    : mention Access or Excel ...
    : Any suggestion or prior experience to share will be
    appreciated.
    : Your asap response is much appreciated...thanks.
    : Frankie
    null

  • How to use oracle APEX with an distant database located on a distant server

    Hi there,
    I'm a brand new user with Oracle Technologies. I've installed ORACLE 10g XE and updated APEX to 4.0 version on my laptop.
    My Manager has setup a distant server with a Linux Red Hat. He has installed on this server EBS R12 with a 11i database.
    As a training, I'd like to play with the tables located on the server with the APEX 4.0 installed on my laptop.
    As the server is on the same local network and following the description above, is it possible to plug my local APEX to the server database ?
    If not, does it mean I have to install APEX on the 11i server database and then connect to the server to play with those tables ?
    Thanks a lot for your time and support ACEs members.
    Regards,
    Ulrich

    Hi Ulrich,
    yes, you can access other database from your APEX database. The mechanism used to do this is called a "database link". You need to create such a database link in your local database, then you can access the remote database like this:
    SELECT *
      FROM databaselink@EMP
    ;If you want to use such remote objects from within APEX you need to create local views to wrap this (search the forum for apex and database links, you'll find interesting threads).
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Connect to a remote MS Access database using RmiJdbc

    Hello,
    I want to access a remote MS Access database from oracle stored procedures.
    Does anyone know how i can load the RmiJdbc driver using the loadjava command or with any other way.
    Because when i try to load RmiJdbc.zip using the loadjava command I am getting the error:
    ORA-29533:attempt to overwrite class or resource string while defining or compiling scott.TestClient
    this error is occured for multiple files...
    I don't know how to delete this classes.
    Because this error occured and the first time i tried to load Rmijdbc driver.
    and when i use the dropjava command to drop it,and then load it again the same error occures.
    Can anyone help me how to load this driver?
    Please answer because i need it as soon as possible.
    Thanks

    Hi,
    try this.
    String s = "UPDATE AGENT SET afname='test',alname='u',city='d',AGENT.[percent]=1 WHERE aid=23";
    -------->AGENT.[percent]

  • Java ODBC image database with MS Access

    hi ,
    Can any one please tell me if it is possible to put and get image from MS Access database with java JDBC ODBC driver? If it is possible then what will be the data type in Access and java. Thanks in advance ��

    I've not seen a data type in Access that would be
    appropriate for iimages--and I believe Access may
    still have an overall size limitation (this may have
    been taken off in Access 2003). If this were Oracle, you'd be using a BLOB. But the reasoning that follows would be the same, regardless of database.
    What I'e had best
    luck doing is leaving the files in their native
    format and storing them in directory structures to
    keep them segregated if need be, and storing their
    names and locations in the DB.This is what I've seen done. It makes little sense to stick the JPEG bytes in the database. You can't use them in a WHERE clause. They just kill database performance. morgalr's solution is a good one.
    %

Maybe you are looking for

  • Error While Calling  a WebService

    Hi After Many trails to connect to a web service on Delopeyed within Our Company LAN all the time i face the following error : [SOAPException: faultCode=SOAP-ENV:IOException; msg=ModuleException thrown by HTTPClient while getting the response.HTTPCli

  • How to make an NTSC DVD from Pal & NTSC videos using CS3

    Hi! I am on CS3, on Windows. I need to create an NTSC widescreen DVD from footage that is both NTSC and PAL. Also some of the footage is 4:3 and some 16:9. What would be the best way to accomplish this. I created an NTSC widescreen project in Premier

  • Error while installing Oracle 8i on RHEL 3.0, ORA-12545

    Hi, I am trying to install oracle 8.1.7 on redhat EL 3.0. Earlier i installed the same oracle i.e 8.1.7 on redhat 8.0/9.0 and it installed sucesfully. The proceudre i follow for installtion was : ####### some settings groupadd dba groupadd oinstall g

  • In the Code Modus how I see how many characters I typed in ?

    Hello from Munich Germany, How can I have with Dreamweaver CS3 Windows Version In the Editor Code-Modus – when I write characters from left to right – that Dreamweaver COUNT ME the number of characters. Therefore I was using Microsoft Expression Web

  • Batch Capture stopping early

    For some reason I set clips to batch capture and FCP 4.5 stops capturing minutes early. I already went through the QT & pro apps update fiasco and downgraded to the older formats. I've been capturing easily from analog but keep having this niggling l