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]

Similar Messages

  • Integrate 300 MS Access Databases using ODI

    Hi All,
    I am trying to integrate data between 300 similar MS Access databases using ODI. All the source databases have exactly the same data structures. I have done a POC for 3 databases by creating interfaces and could integrate the data between them successfully.
    Now that the project is approved ; Going forward I need to integrate data from 297 MS Access databases, so I need to run the same set of Interfaces on 297 source MS Access Databases with Target DB being the same.
    This integartion work could be labourious as I need to copy 7 interfaces on 297 databases - IS THERE ANY EASY SOLUTION FOR THIS PROBLEM.
    Some one suggested me to use Dynamic Variables in the TOPOLOGY to access all the MS Access databases - BUT NOT SURE IF THAT WORKS.
    APPRECIATE your suggestions.
    Thanks & Regards
    Kay

    The issue you face here is that the Access database is connected to through the JDBC-ODBC bridge to the Access ODBC database driver. You will need to have a separate DSN defined for each of the access databases, if you want to address each individually.
    An alternative approach is to have one DSN set up, one entry in ODI's topology, one interface etc, and each file you wish to use, you rename to a given name first. Thus, when ODI tries to access the database, the ODBC driver finds the then current file. Note that ODI keeps the database connection for the duration of a SESSION, so if you wanted to process all 300 files sequentially, then you would need to run separate sessions for each of the file executions.
    I think this will give you the solution you require without resorting to variables.

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Setting System DSN for MS Access Database using Java Code

    How to set the system DSN for Access database using Java Code at runtime....???
    Replies are deeply appreciated...

    I found a 3rd Party MS Access JDBC Driver from a Google search. I downloaded and tried the free trial version. It worked fine but we opted not to purchase the full version and went a different route. If you don't find it, let me know and I'll see if I can track down the name of the product we tested.

  • Remote access database using EM Database Control Console

    When I install the Oracle database 10g, it gives me two choices:
    1)Using Grid Control for Database Management and
    2)Using Database Control for Database Management.
    When I select the #2, according to the Guide, I'll be able to manage my database locally. (Assume the database server's IP address is: DB_IP_Address, then I can use: http://DB_IP_Address:5560/em). But wait a minute___
    a)What does this "locally" mean? If the Oracle DB is installed in a remote location, and there is no LAN connection to it, can I still access it via the Oracle Enterprise Manager (Database Control Console)? (i.e., via the HTTP protocol)
    b)The same question is asked for the iSQL*Plus in regarding to the remote access. I guess the answer to a) above will automatically answer the b) ? (Actually I doubt that I can access remote database using the iSQL*Plus via HTTP protocol).
    Thanks
    Scott

    Hi,
    and there is no LAN connection to itWell you'll need some network link in order to connect successfully.
    What is meant by locally is that you can only manage databases installed on the local computer.
    For example if you installed it on machine "CPTR1", and on another machine "CPTR2", then you can't use http://cptr1:5560/em to manage the databases on "CPTR2. And vice versa.
    About iSQL*Plus, in fact, as far as the tns alias is ok from "CPTR1", you can connect to the databases on "CPTR2", "CPTR3", ....
    HTH,
    Yoann.

  • How to connect my access database using applet?

    hi all,
    i need to connect my access database in my applet program which should work like an atm machine..I dont know how to connect it. Im new to applet same thing in JDBC application. Please help i terribly need it, our deadline in our case study is fast approaching and i still dont know how to do it. I tried the tutorial but i received some sql exception error. thanks!

    Try this link
    http://java.sun.com/docs/books/tutorial/jdbc/basics/

  • Error while trying to connect to a remote SQL Server DB using multiconnect

    As part of our business process, we need to connect to a SQL Server DB external to SAP.
    We have done the following:
    1. We set up an ODBC connection on our SAP sandbox server to the external SQL server DB. 
    Name: sdsdev
    Connection string: sdsdev\sqlexpress2008
    2. We tested the ODBC connection from within ODBC and it works perfectly
    3. Using transaction: DBCO we have set up a DB connection known to SAP that we can use in ABAP to retrieve the data.
        It was set up with exactly the same parameters as with the ODBC.
        We used the following connection string so it would know to use the ODBC DBSL profile parameters, with the DSN name  
    being the same as defined in the ODBC:  See below ...
        DB connection: AR_INTERFACE
        DBMS: MSS
        User Name: ARTransfer
        Password: ******
        Conn info: MSSQL_DSN=sdsdev
    4. We also made sure we installed the DBSL dynamic library (DLL) on the R/3 system server.
    5. We ran a small test program to test connectivity ... as below ...
         exec sql .
             connect to 'AR_INTERFACE'
         end exec.
         right after the above command we check the system log for status.  It failed with the following message:
    B Wed Feb 09 14:40:40 2011
    B Connect to AR_INTERFACE as ARTransfer with MSSQL_DSN=sdsdev
    MSSQL_DBNAME=ARTransfer
    C Thread ID:3900
    C dbmssslib.dll patch info
    C patchlevel 0
    C patchno 118
    C patchcomment Problems with the use of literals in non-unicode
    systems (1524929)
    C np:(local) connection used on SAPS101B
    C OpenOledbConnection : CoCreateInstance failed. rc: 8007007e.
    C failed to establish conn to np:(local).
    C Retrying without protocol specifier: (local)
    C OpenOledbConnection : CoCreateInstance failed. rc: 8007007e.
    C failed to establish conn. 0
    B ***LOG BY2=> sql error -1 performing CON [dbds#2 @
    1056] [dbds 1056 ]
    B ***LOG BY0=> <message text not available> [dbds#2 @ 1056] [dbds
    1056 ]
    The connection failed !
    We used all of the information found in OSS Notes we could find.
    Has anyone had this problem before ?  Is there something obvious we are missing in all this ?
    Thank you for your assistance.

    Is this Excel or Access?  If Excel, try this.
    Sub ADOExcelSQLServer()
    ' Carl SQL Server Connection
    ' FOR THIS CODE TO WORK
    ' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "EXCEL-PC\EXCELDEVELOPER" ' Enter your server name here
    Database_Name = "AdventureWorksLT2012" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM [SalesLT].[Customer]" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    ' Dump to spreadsheet
    With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
    .ClearContents
    .CopyFromRecordset rs
    End With
    ' Tidy up
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Creating a new access database using JDBC

    Hi Forum,
    I have a problem in hand. Let me describe the problem:
    I want to create an "access database" from java at runtime. "Access database" is file based, so for a database named test, it will have a file test.mdb.
    Now, everything's sweet and wonderful, if somebody creates an "empty access database" at the client machine and i then connect to it and create the tables i require.
    But the issue is i want to create the database at runtime (the database name and tables are determined at runtime).
    Using the JDBC:ODBC bridge driver , i am able to connect to an existing database, but any "create database" statements are not supported.
    A last ditch solution would be that i create an empty database using access and copy the file contents in the SQL server database as a a blob object. Then when i want to create a new access database at runtime, i create a file in a particular folder , with an .mdb
    extension, copy the file contents from the SQL server (i also have an SQL server connection) BLOB object, and then try to connect to the
    .mdb file.
    But this approach seems a "quick hack" and can have problems (which i can't see as of now).
    Can you suggest a better alternative for the problem.
    See the Java Sun forum at this address for a discussion of a similar problem, but sadly with no solution.
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=484731

    I have an applet that was previously connected to Oracle 9i. I am faced with connecting to MS Access temporarily for testing purposes.
    I have been unable to successfully code connection in java. I have set up the DSN and can access in SQL Worksheet in JDev.
    I saw your question regarding creating an access db, and thought you might be so kind as to help me code the connection to access!!!!
    Any help you could provide would be greatly appreciated. I have a huge application to finish with alot of sqlj already completed. Connectivity is not my area of expertise!
    Any help you could provide would be greatly appreciated!!!
    I am not sure if I have to use bridge? Am I progressing in right direction to migrating to SQL Server if need be?

  • How to insert date into ms access database using sql query in servlet

    sir all thing is working well now only tell me how we can insert date into ms access database which is input by user .
    insert into db2(bookname,studentname,date) values('"+bname+"','"+sname+"',date_format)";{code}
    or either the system date is inserted with query .
      plz help me
    thanx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    bhavishya wrote:
    sir all thing is working well now only tell me how we can insert date into ms access database which is input by user .
    insert into db2(bookname,studentname,date) values('"+bname+"','"+sname+"',date_format)";{code}
    or either the system date is inserted with query .
    plz help me
    thanxAnd that SQL statement is another reason to use PreparedStatement. I assume bname and sname are input from some form? Well, if that's the case, simply inserting them into SQL by simple String concatenation is just begging for all sorts of problems. What if there is an apostrophe in the entry? Broken Statement. Worse, it's a wide open invitation to an SQL Injection attack.

  • 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.

  • Uploading images in access database using jsp

    Hi, am using jsp with access database and want to upload as in a profile picture for any profile on the site[i mean depending on the user's convenience] ..
    I just have a code which helps select the image from the client's machine n gets its address..but then how to use it in a form or something so that it can be submitted and inserted in the database?
    Any idea? I d prefer not using servelet.. but if it just cannot be done without servelet then ok can suggest with that too.
    Here is the code of Browsing to obtain the picture:
    <form name=uploadForm action="uploadpic.jsp" method=post enctype="multipart/form-data" >     <input type="file" > <input type="submit" name="submit"  />     </form>

    silversurface wrote:
    Hi, am using jsp with access database and want to upload as in a profile picture for any profile on the site[i mean depending on the user's convenience] ..
    bad. Don't put business logic in JSP, and that includes accessing databases.
    Any idea? I d prefer not using servelet.. but if it just cannot be done without servelet then ok can suggest with that too.
    Don't put business logic in JSP. That's what servlets are for (and EJB).

  • Accessing  database using EJBs in WebDynpro

    Im using EJBs to access database...data is getting stored in the database...but i dnt know how to retrieve it...webDynpro is a totally new environment for me..it would be a great help if someone can help me solve my problem...
    regards,
    Sonal

    - start with "import JavaBean model" (importing model)
    - put model in Used Models
    - bind model with controller (web dynpro components-> double click on <application name>
    - bind view with controller (same vindow)
    - apply template (table for reading data) in view
    and you are redy for start.
    Eq
    your EJB is MyEJB, and there is some function myFunction() with Vector as return (Vector contains MyEJB objects)
    now in controller put (eq in wdDoInit())
    MyEJB myObject = new MyEJB()
    wdContext.current<NodeName>.bind(myObject.myFunction());
    good luck

  • Remote access database using Application Server Control Console

    When I install the Oracle Application Server 10g, it gives me a web-based tool, i.e., to use the Application Server Control Console to manager/monitor the server.
    Now If the Application Server is installed in a remote location, and there is no LAN connection to it, can I still access it via the Application Server Control Console? (i.e., via the HTTP protocol). (I believe that I can only use the Console to manage the AS which is physically located in the same machine).
    Thanks
    Scott

    Hi Scott!
    The ASC will allow you only to manage its own installation. So if you have 10 AS instances you will have 10 ASC's to manage it.
    If you want to remotely manage your installations you need the Grid Control.
    Otherwise you will need a connection to the machine.
    I do not understand the issue about the "no LAN connection"? How do you want to access the machine if there is no network connectivity anyway?
    cu
    Andreas

  • Connecting A Dreamweaver site to a database using localhost

    I have created a number of websites that connect to a databasde on localhost using the Windows\database utility built into Dreamweaver with no problems.
    Recently my version of Dreamweaver started crashing and DW Support did some work to rer4solve that.
    Now I cannot create a database connection to localhost and support say they are not trained to help.
    Here are the steps and error message
    Server Name: fhm
    Connect Using: Local/Network
    Server Folder: D:\FullHouseMarketing\
    Web URL: http://fhm/
    Server Model:PHP MYSQL
    In the Database Panen there are ticks against
    1) Create a site for this file
    2) Choose a document type (PHP)
    3) Set up the site's testing server
    Fill in the form and click select database
    Http Error Code 404 Filoe Not Found
    1) There is no testing server running on the server machine. (There is only one machine, the server is localhost, it is running and I can access the database)
    2) the testing server specified for this site does not map to the http//fhm/_mmServerScripts/MMHTTPDB.php&Type=MYSQL&ConnectionString=host=locaslhost.uics5 write.pwd=Smp URL. Verify that the URL Prefix maps to the root of the site. ( I have no idea how to do that)
    Any help appreciated

    mr.ztch wrote:
    Are you saying there is a new way to coonect with a database? If so could you point me to the documentation.
    Yes BUT you have to code it by hand.
    Start here, a 9  part video tutorial:
    https://www.youtube.com/watch?v=BEbKji_pSZM
    Connecting to a database is in part 3.
    You cannot mix up msql and mysqli so if you connect using mysqli which the video covers you need to use mysqli to query the database which is also covered in the video series. DW used mysql to connect and query.
    I stopped using the DW server behaviours some time ago............best thing I ever did.

  • 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>

Maybe you are looking for