Access remote database in desktop application

Hi friends,
I am developing an desktop appication in that I have to access the data reside in another machine.
how can do this through java.
how to set url for this.
since normally we will use the jdbc:odbc:......
for access remote machine database.
plz give the procedure in brief.
Raj with reg.

What?
It all depends on what database you are using, and which driver you are using.
Please google on jdbc and your database name.
Kaj

Similar Messages

  • PERFORMANCE while accessing remote database DB2 on AS/400 using WAS

    Subject: PERFORMANCE while accessing remote database
    We have IBMWebSphere Application Server Standard Edition 3.5.3 running on
    AS/400 iSeries Server (V4R5, test)and local DB2 Database.
    I am using AS/400 Developer Kit for Java JDBC Driver(type2, com.ibm.db2.jdbc.app.DB2Driver)
    to talk to local database. The performance was very good.
    When I try to access remote database (every thing same as local) which is on another AS/400
    machine of V4R4 (we use it for production, remote database) using IBM Toolbox for Java JDBC driver
    (com.ibm.as400.access.AS400JDBCDriver, type 4 driver), I can see 30to40%decrease in performance.
    Here we have WAS on previous V4R5 AS/400 machine.
    My questions are
    Is the performance decrease is due to
    1. the driver I am using? if it is Is there any other alternative drivers to access
    remote database to boost performance?
    2. the release difference of local(V4R5) and remote data base(V4R5)
    3. Currently most uses remote database while we do this testing. Is that the cause?
    or Is there any other cause or Drivers etc??? Suggestions and help is most welcome.
    Thank you.

    What about
    4. the data has to travel across the network.

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

  • Applet in JDK 1.1 accessing remote database

    Hi,
    I'm trying to make an Applet access a remote Oracle Database using Jdbc thin driver. The database and the Web Server are in deferent machines. The browser i'm using is Internet Explorer. But I always get the followin exception:
    Cannot access "remote-machine" at com/ms/security/premissions/NetIOPermissionCheck.
    How can I solve that?
    Thank you,
    Nei

    Another interesting thing is, the applet ( jar) that is signed will display the security dialog if I connect from a client that has java plugin 1.4 ( jsdk 1.4) or if I copy it and run it on a j2sdk1.4 machine. I checked the java.policy files on both 1.3.1 machine and 1.4.1 and they are the same.
    TIA
    Krishna

  • WebSphere V5 accessing remote database

    Hi.
    Sorry to post IBM product specifice question here. I didn't know where else to put it.
    I need to deploy J2EE appl using CMP beans to WebSphere Application Server version5 to use remote database(DB2) within LAN.
    I have no idea to where to begin and what to look for.
    Can anyone guide me here?

    You need to configure that database as a data source in Websphere using the admin tool. Check the help for details.

  • Unable to access remote database object using database link

    Hi all,
    I have created a database link to a remote server
    SQL> create database link remote_link connect to lax_dba identified by lax_dba using 'abc.corp.com';
    database link created
    when i am trying to access any table of lax_dba
    sql> select * from laxtab@remote_link;
    i am getting this Ora error
    ORA-12514: TNS:listener does not currently know of service requested in connect
    I need your help please to solve this issue
    Thanks n Regards
    Laxman

    The database server where you defined the link (not your PC) has resolved 'abc.corp.com' to a server/port/service combination using its tnsnames.ora, sqlnet.ora and possibly ldap.ora settings. You can try
    tnsping abc.corp.comon the server (as ReubenC suggested) to see what it's attempting to connect to. (It's important to do this on the database server and not on your PC as they will have different tns settings etc.)
    It has then found the server and found a listener running on it (so you're getting close), but that remote listener doesn't recognise the service you're asking for. It might be something like the '.com' suffix.

  • How to access the database tables from application

    Hii all,
    The information in webcenter content, such as meta data fields, users, security groups etc are stored in
    database tables like-      Revisions, SecurityGroups, Users, DocType etc..
    Can we access this tables from an adf application or any webcenter application..
    If yes, then what can be the approach for that..??
    Another things, how can we create custom tables just like the predefined tables...??
    Any information regarding this.??
    Thanks

    Can we access this tables from an adf application or any webcenter application.Yes, you can - like to any other existing database. But I would strongly discourage you from any, but read-only access, or you can easily end up with inconsistent data.
    If yes, then what can be the approach for that..??Just create a database connection and define in your model what tables you want to access.
    Another things, how can we create custom tables just like the predefined tables...
    Actually, WebCenter Content provides functionality of creation of custom tables (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#autoId2 ) and these are probably the only good candidates for read-write access. See further in the manual what use cases are supported. Of course, you could do this even externally, but rather than Data Definition Language, I'd use services (if there are some).

  • Heterogeneous Services failure on accessing remote database under XP

    Hi All,
    I can set up HS.
    My problem is, that it works only when the datasource is sitting on serverside.
    If I try to connect to a database what is sitting on a remote machine HS does not want to find it. Even if I using mapped drive, or \\server\shared_folder or novell directory tree.
    Even if also using CONNECT TO "MyUserName" IDENTIFIED by "MyPassword" which have full access to the folder of the remote machine.
    Could you please help me?
    [email protected]

    What do you mean by that? What kind of network files?
    Again my situation in details:
    Case A - sais, I can handle HS, where it points to a file sits on localhost.
    Case B,C,D,E - sais, 10g can not see the file via ODBC with my settings.
    - Case A
    PARTNER.DBF can be found in C:\
    ODBC point to this file.
    10g can make the database connection activate.
    I can see the table, everything is okay.
    - Case B
    PARTNER.DBF can be found in K:\
    where K: is a mapped drive on the Microsoft Network. It is a shared directory. Shared for read and write. And I have these rights.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case C
    PARTNER.DBF can be found in L:\
    where L: is a mapped drive on the Novell NDS tree. It is a shared directory. Shared for read and write. And I have these rights.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case D
    PARTNER.DBF can be found at \\my_collegaue's_machine\shared_dir\
    I have rights to the file.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case E
    PARTNER.DBF can be found in \\Hh\.FS2_USZ.HLT\HPRG\DATA
    I have rights to the file.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    So what should I chage in 10g settings?
    What changes should I make?
    What kind of command should I type?
    Please help and be a little more specific.
    Thx in advance.
    Andrew
    [email protected]

  • JDeveloper embedded OC4J accessing remote database

    How do I configure the embedded OC4J JNDI w/JDBC to use a local TNSNames.ora file setting to connect to a remote 9i database?

    You might want to consult the OC4J admin guide.
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDCFBIH
    For the embedded OC4J you can access datasource settings through tools->Embedded OC4J preferences.

  • Remote database access via JDBC?

    Hello,
    Can anyone give me info on accessing remote databases (i.e. Microsoft
    Access, etc) from Java programs (Servlets, JSP's, Classes) residing on the
    iSeries (AS400) or perhaps any platform?
    I currently have a couple of web applications set up on the Websphere App server that access DB2/400 database and I also have some Java Classes on PC's that access MS Access datafiles. I would like to begin writing the majority of my applications that run on the iSeries (or host system) that can remotely access other databases on our network.
    Any info would be of great help to me.
    Thank you
    Don

    I don't know of any existing Access JDBC drivers that support remote access, after all, the Access database itself is not remote access capable except via file sharing. One possibility is to look for a Type 3 JDBC driver that supports reuse of other Type 1 (ODBC bridge), Type 2 (Java/Native Mix) and Type 4 (pure Java)JDBC drivers on the server side.
    If you were using WebLogic Server, I suppose you could use its remote JDBC facilities, but that won't help you.
    One problem you will have to face is that Access JDBC drivers are not (if I recall) meant to be used in a multithreaded fashion. Good luck. By the way, it might be far simpler to port the Access database to DB2/400.
    Chuck

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • Need to run in my PC: Type 1 db driver Access / java[SE1.6] Desktop app

    http://www.paphoscarhire.mobi/odbc-bridge2.jpg
    desktop control panel settings, I have above URL (IMG) Settings
    well, I need to run in my PC: Type 1 db driver Access / java[SE1.6] Desktop Applications, what I need to install ?
    I refer for Type 1, JDBC-ODBC Bridge driver.... Is it needed install and Access 2003 ODBC driver (see URL) ...? How I understand if I already installed it(?) since I do not know ?
    How to load driver in my program ? The below are correct for: Class.forName & DriverManager.getConnection ?
    class  ResultSetDemo    {
      public static void main (String  [ ] args)    {
        try {
           Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
           Connection conn
              =DriverManager.getConnection("jdbc:odbc:RedWines");  // DSN=RedWines
           Statement  sttmnt  =  conn.createStatement (  );

    I GET ERROR !
    C:\Users\User\Documents\TextBooks Data Files\The Web Warrior Guide to Web Database Technolo
    gies, 1st Edition\extract\Chapter06\Chapter>java ResultSetDemo
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM claus
    e.
            at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
            at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
            at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3110)
            at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
            at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
            at ResultSetDemo.main(ResultSetDemo.java:10)
    C:\Users\User\Documents\TextBooks Data Files\The Web Warrior Guide to Web Database Technolo
    gies, 1st Edition\extract\Chapter06\Chapter>

  • Parallel access of database

    I need to have parallel access to a database from two different application.
    The first application is a TestStand program that will open this database and then write into the database. This open and write process will occur continuously as new data are needed to be logged inside the database.
    The second application is a VI that will fetch data from this database. This VI will open the database and read data from it. This VI will also run continuously as it attempts to extract any new data entered into the database.
    As you can see, there is a potential problem. MS Access allows only one access at any time and therefore for my two applications to open and access the database at the same time has been causing me problems.
    I have tried
    opening the database and then freeing the database after every data entry but still it won't work very well.
    Any suggestion on the best method to go about doing this? I only intend to use LabVIEW features. I'm using especially the database connectivity toolkit. Thanks for any help.
    Sincerely
    Parker

    Scotty Parker wrote:
    > What do you mean by a "real" database? And so, how do I configure MS
    > Access such that it can handle multiple clients. I know this could be
    > done but I don't know how to.
    Well, I don't consider MS Access a real database. SQL Server, Oracle and
    such are databases, but MS Access is just an office application which
    happens to have some database functionality.
    I have no experience with MS Access. I know that I can do what you want
    without any problems in SQL Server and other database applications, but
    they are also in a different price range than Access.
    > When I run my VI on the remote computer while Teststand is also
    > logging into the database on the other computer, my VI was able to
    > capture data from the database.
    However, TestStand halts to a run time
    > error.
    This really seems to be a problem with Access then. I could possibly
    understand if you had problems when both applications are on the same
    computer as that might mean, that the ODBC driver has a limitation and
    can only serve one application at one time. But not working from
    different computers seems to hint that MS Access itself can't handle
    multiple connections at the same time, and the ODBC driver takes care of
    that when you access the database from multiple applications on the same
    computer.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Connecting Remote Database in 8i

    I have system in my house, windows 2000 is OS,Oracle as database
    I want to connect My freinds Database using the Modem.
    Do I require His IP ADDRESS. specifing his IP ADDRESS in listner can it possible.If any body having solution. pls reply

    You will have to configure the tnsname using your friend's ip address and global name of his database.
    Then you will need to create database link from your database to remote database.
    Refer this url for more info on creating database link and accessing remote database
    http://www.experts-exchange.com/Databases/Oracle/Q_20660517.html
    Chandar

  • Airport Extreme & Remote Access for database application

    Hi There,
    I have spent an entire week of my time between apple, apple consultants and networking experts trying to get a access remotely to a simple database program inside an wireless network. I have read the discussions on remote access thru the AEBS and port mapping.
    I'm hoping an user here can help me with a foolproof solution that the 'apple experts' can seem to design?
    All that is required to get this program up and running remotely is the ip address of my computer inside my wireless network. I have set that this computer to a static address but since my dsl provider uses dynamic IP's this doesn't seem to work (or it does for about 12 hours until the IP address of my AEBS is changed). Will port mapping work for me or is my only solution an up-charged static IP?
    Thanks in advance for any suggestions......the thought of spending another week on this is frightening!

    If your ISP is refreshing the dynamic host configuration of the public ip address assigned to the ISP provided router you will need to request a static ip address from your service provider.
    The addresses that are used "inside of your network" are private ip addresses. If you are using the (1) public address for your router (APE)(Apple airport extreme) from the ISP what you are trying to do will not work very well since your router (APE) will use the Public IP address to provide access to the public internet for your private network using the private ip addresses you have used to create your subnet and told your router (APE) about. Three private IP address schemes can be used for a private internet. One for each class. Class A 10.x.x.x/8, Class B 172.16.0.0/12 and Class C 192.168.0.0/24. Translated using dynamic NAT (network address translation with overload) making your LAN hosts using private IP addresses to seem as if they are using a public ip address allowing access to the public internet where only public ip addresses can be used.
    PAT (port address translation) is what you are trying to accomplish. For PAT you must have a valid public ip address from your ISP and a private address from your network assigned to interesting host. Use the private ip assigned to the interesting host in the port mapping panel of airport admin that you wish to allow access to via the global internet as well as the tcp or udp port number for the traffic to be directed. For example port 5003 for FileMakerPro or port 20 and 21 for ftp. You should also implement security policies to protect your network and hosts.
    Since you said that it works for 12 hours you must have the basics set up correctly. All you need now is to get a static ip address assigned to you from your ISP or use a service such as http://www.dyndns.com/
    Hope I didn't ramble on too much

Maybe you are looking for