Connection through JDBC to dBase files stored on a different UNIX computer

I would like to access files created in dBase (*.dbf) format and stored directly on the hard disk of a different or remote UNIX OS platform standalone computer which is not connected to any network through a JDBC driver. I need to do this from my home Windows XP system with J2SDK 1.4.2_19 and Tomcat already installed on it. May I know if there is any driver with this feature and how do I go about establishing connection, please?
Thank you.

jwenting wrote:
jschell wrote:
Ltbay wrote:
Thank you very much. I am grateful.So you will be using carrier pigeons?The PPPP (point to point pidgeon protocol) is well documented.
[http://www.faqs.org/rfcs/rfc1149.html] yes, it exists...
I do hope anyone reading that, realises that it was an April's fool joke.
Some of the phrases are quite good however:
The carriers have an intrinsic collision avoidance system, which increases availability.Except for the occassional magnetic field that allows them to fly face first into glass windows.
An additional property is built-in worm detection and eradication.Yummy!
With time, the carriers are self-regenerating.With time? Hell they double yearly, at least!
Audit trails are automatically generated, and can often be found on logs and cable trays.
on not in logs and cable trays.

Similar Messages

  • Get a tns connection through JDBC.

    Hi
    I am trying to get tns connection using jdbc to the dabatase. The following code returns an exception "SQLException: IO Error: Unknown host specified ". Most likely becuase the string is missing a host address. Does a tns connection require a host to be included? I am under the assumption, there are only 3 tns properties - username, password and a Net Service Name (e.g. ORCL) . Thanks.
    string url = jdbc:oracle:thin:@//username/password/service_name";
    try {
    Class.forName("oracle.jdbc.OracleDriver");
    } catch (java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    e.printStackTrace();
    try {
    Connection connection = DriverManager.getConnection(url);
    new ConnectionInfo(connection);
    } catch (SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    Edited by: 875864 on 10-Jan-2012 16:53

    The thin driver needs the host; it doesn't use the tnsnames.ora file
    Here is a simple set of code to get a connection
            String driver   = "oracle.jdbc.OracleDriver";
            String url      = "jdbc:oracle:thin:@host:port:sid";
            String username = "SCOTT";
            String password = "tiger";
            try {
                Class.forName(driver);
                Connection con = DriverManager.getConnection(url, username, password);
           ...This link shows how to use the thin or the OCI (thick) drivers. The OCI driver needs an Oracle client and will use tnsnames.ora
    http://www.orafaq.com/wiki/JDBC

  • Reading a file which is on different unix box

    Hi,
    Our project has a requirement to send a file as an attachment in the email to a user. Our application is deployed as an ear in a WAS server (which is a unix box). The interface that actually sends the email is deployed on another unix box. Our application creates a file and saves it on the application unix box. now the email sending interface needs to access this file which is deployed on the application unix box and send it as an attachment.
    Can the email sending interface access the file on the application unix box if i send it the path; is it possible since the interface and the attachment file are deployed on diff unix boxes?
    Now one can access the application using the url of the form -
    http://<box name>:<port>/<context root>/<servelet path>Now suppose while creating the file, i give the input path as
    http://<box name>:<port>/<file name>,where will the file be created and if i send this path to the email interface, will it be able to access this file?
    Any inputs will be highly appreciated.

    You would be better off using an nfs partition. All flavors of unix come with NFS capabilities, so simply let your application "box" share a directory where it writes the files, and let the email "box" mount the directory in order to read the files.

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • Music files stored in two different folders

    Most of my music files are located in the folder I named for my iTunes library. Others are in a Music folder which is a subfolder of the iTunes Media folder. I'm not sure how this happened, but it seems to have happened after a backup. All the new additions went to the iTunes Media subfolder. I'd like them to be all in one place. How can I achieve that? I'm running iTunes 10.7.

    Open iTunes and choose to organize or consolidate the library.
    (111116)

  • How to connect to Pgsql on server through jdbc with java on local machine

    I am developing an application in which I have to connect to my database that is in Pgsql and Pgsql is installed on Linux server. I am going to access that from my java program and the java is here on my local computer(in Linux). All the intranet connections are there. How can I get accees to that database? I have heard of java SSL tunnel. Is this the only solution or there is something else that I can use more easily. Also if I use java installed on th same server as Pgsql then what I will have to do to call the java methods using AMI. Will the java at server be able to make connection to Pgsql more easily? Please tell me about it if you know.
    Thanks

    The closer java and pgsql, the easier it is of course to connect. So the easiest way is to have everything on the same machine. If you are in the same network you will need an IP based network, which is pretty much standard these days. In this case you need to modify the pg_hba.conf file to allow connections from other machines. In both cases you have to start the postmaster with the -i option to enable enable TCP/IP connections.
    Having java and pgsql connected through the internet is a different story, I do not have any experience with that. But you can use ssh to build a tunnel and connect to a local ip address / port from java which is then forwared securely via the internet to the server.
    In all cases you will need the postgres jdbc driver in your classpath. You can find information about postgres and jdbc on the postgres web site.
    good luck

  • Can I access my files stored in the hard disk connected to airport extreme when I am away? how?

    Can I access my files stored in the hard disk connected to airport extreme when i am away? How?

    You can't technically. iPads cannot directly read HDDs like a computer can. 
    You will need an app liie FileBrowser to do this. Of course all file operations will be done through the App itself.
    https://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8

  • Inserting files in to Oracle 8i database through JDBC - Only 4k data file

    Hi,
    I need to insert a files(images or excel files, doc files etc..) in to oracle 8i database through JDBC program. But i am not able to store more than 4k data files in to files. can any body give me solutions regarding this.
    My code is like this...
    String fileName ="Sample.jpg";
                                  String dataSource = "jdbc/oracle";
                   File file=null;
                   FileInputStream fis = null;
                   Context initCtx=null;
                   DataSource ds = null;
                   Connection con = null;
                   try
                        initCtx = new InitialContext();
                        ds = (DataSource)initCtx.lookup(dataSource);
                        con = ds.getConnection();
                      try
                         file = new File(fileName);
                         fis = new FileInputStream(file);
                        catch(FileNotFoundException fe)
                             out.println("File Not Found");
                                            PreparedStatement pstmt = con.prepareStatement("insert into bfiles values(?,?)");
                        pstmt.setString(1, fileName);
                        pstmt.setBinaryStream(2, fis, (int)file.length());
                        pstmt.executeUpdate();
                        out.println("Inserted");
                        fis.close();
                        pstmt.close();
                        con.close();
                        out.println("closed");
                   catch(Exception e)
                        out.println(e);
               }     in Oracle bi i have created a table like this :
    CREATE TABLE BFILES
      FILENAME     VARCHAR2(100)                    DEFAULT NULL,
      FILECONTENT  BLOB                             DEFAULT EMPTY_BLOB()
    )Please help me ourt to solve this problem.
    i got struck in this problem.
    its urgent
    thanks in advance
    djshivu

    Hi Shanu.
    Thanks for your help...
    By Using THIN driver also we can insert any files more than 4k and and retrive same. Fallowing codes worked fine for me using thin Driver .
    Following are the 2 programs to write and read.
    we can insert and retrieve any format of files ( jpg, gif, doc, xsl, exe, etc...)
    =======================================================
    // Program to insert files in to table
    import oracle.jdbc.driver.*;
    import oracle.sql.*;
    import java.sql.*;
    import java.io.*;
    import java.awt.image.*;
    import java.awt.*;
    * @author  Shivakumar D.J
    * @version
    public class WriteBlob{
    public static void main(String[] args){
    String filename = "018-Annexure-A.xls";
    Connection conn = null;
    try{
        Class.forName("oracle.jdbc.driver.OracleDriver");
        conn=DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl","modelytics","modelytics");
        conn.setAutoCommit(false);
        Statement st = conn.createStatement();
        int b= st.executeUpdate("insert into bfiles values('"+filename+"', empty_blob())");
        ResultSet rs= st.executeQuery("select * from bfiles for update");
        rs.next();
        BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(2);
        FileInputStream instream = new FileInputStream(filename);
        OutputStream outstream = blob.getBinaryOutputStream();
        int chunk = blob.getChunkSize();
        byte[] buff = new byte[chunk];
        int le;
        while( (le=instream.read(buff)) !=-1)
            outstream.write(buff,0,le);
        instream.close();
        outstream.close();
        conn.commit();
        conn.close();
        conn = null;
        System.out.println("Inserted.....");
       catch(Exception e){
            System.out.println("exception"+e.getMessage());
            e.printStackTrace();
       }//catch
    }=======================
    // Program to retrieve files from database
    [import java.sql.*;
    import java.io.*;
    import java.awt.*;
    public class ReadImage
    public static void main(String a[])
        String fileName ="018-Annexure-A.xls";
        try
              Driver driver = new oracle.jdbc.driver.OracleDriver();
              DriverManager.registerDriver(driver);
              Connection con = DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl", "modelytics", "modelytics");
            File file = new File("C:/Documents and Settings/USERID/Desktop/dump.xls");
              FileOutputStream targetFile=  new FileOutputStream(file); // define the output stream
              PreparedStatement pstmt = con.prepareStatement("select filecontent from bfiles where filename= ?");
              pstmt.setString(1, fileName);
               ResultSet rs = pstmt.executeQuery();
               rs.next();
               InputStream is = rs.getBinaryStream(1);
              byte[] buff = new byte[1024];
               int i = 0;
               while ((i = is.read(buff)) != -1) {
                    targetFile.write(buff, 0, i);
                   System.out.println("Completed...");
            is.close();
            targetFile.close();
            pstmt.close();
           con.close();
        catch(Exception e)
              System.out.println(e);
    }====================
    Table Structure is like this
    CREATE TABLE BFILES
      FILENAME     VARCHAR2(100)                    DEFAULT NULL,
      FILECONTENT  BLOB                             DEFAULT EMPTY_BLOB()
    )========================================================
    i hope above codes will helpful for our future programmers
    thanks shanu...
    regards
    djshivu...(javashivu)

  • Is it possible to connect my home computer to files stored on my running osx server mac via VPN

    Is it possible to connect my home computer to files stored on my running osx server mac via VPN. I have VPN set up and can access the Calendar and Contacts via a web browser, however I want to be able to access data files store on the hard drive and shared external drives connected to it. The MacPro runs OSX Server Lion. Any Ideas if this is even possible or how to do it!

    Yeah, that's what I kinda figured. Maybe there is another solution - here is my situation:
    I have internet and cable service through Telus. Telus' system consists of a modem/set-top-box that provides internet (ethernet and wifi) and TV signal (corded) for one TV and another set top box that provides internet (ethernet only) and TV signal (corded) for my other TV in the basement.
    I have an Airport Extreme connected to the modem upstairs which I am using as my home network wifi. I also have an external hard drive (USB) connected to it on which my iTunes library is shared with all Apple machines in my home network.
    My upstairs ATV, connected to my APE, works fine and streams internet (Netflix), iTunes Store and my shared iTunes drive just fine - the APE is 3 feet away with a great signal.
    My downstairs ATV, also connected to my APE via wifi, does not stream so well, particularly the media from the shared drive. I suspect that this is the case because of signal degredation.
    Any suggestions on how to reconstruct my home network to enable my downstairs ATV to work properly?

  • Hi.  My air port is connected and wifi is working but i cannot connect to the time capsule to access any files stored there

    Hi.  My air port is connected and wifi is working but i cannot connect to the time capsule to access any files stored there

    Hi.  My air port is connected and wifi is working but i cannot connect to the time capsule to access any files stored there

  • Calling Stored Procedures through JDBC

    Hello!
    I would like to implement a call to a stored procedure through JDBC. This call I suppose to embed in JavaBean to import Bean as model.
      A) Shoud this call be implemented inside ordinaly JavaBean or inside EJB?
      B) How can I determine DataSource? Is it possible through JNDI?
      C) Is there any tutorials or examples?
      D) Could anybody give some code texts on this theme?

    we use quite a similar architecture here (2 ORACLE DBs, a DB link from one instance to the other). However, we use the db links in functions (not in stored procedures). but a simple select using the db link also works with JDBC. do you use the very same db instances / schemas / users+passwords on all your different test environments? so far, we havent' noticed any problems with ORACLE queries (stored procedures, functions, etc.) that work in sqlplus/worksheet but not with JDBC. do you use the latest ORACLE JDBC drivers (9.2.0.3)?

  • JDBC-FILE(Stored procedure)

    HI Experts,
    I have a requirement as follows
    stored procedure->stored procedure->File.
    ie initially a stored procedure would be executed(which i could execute with help of option in the jDBC communication channel).This would result in a resultset being given as output.
    This will be associated with sender datatype.Now this is to be given as input to a second stored procedure.
    The second stored procedure will return output which i need to map into a target file structure.
    Can anybody guide me in this regard?Sender will be JDBC and target will be file adapter,but how can i execute the second stored procedure?
    The blogs simply says the option for one stored procedure to file.Is there any other help or blogs?
    Thanks in advance

    Hi,
    According to your requirement you are clubbing three scenarios into one:
    1) Source > XI <> JDBC(SP1)
    2) Continued from (1) JDBC(SP1) >XI <> JDBC(SP2)
    3) Continued from (2) JDBC(SP2) -->XI --> File.
    Now you can decide what all objects you will need....the trick lies in how you are going to configure the Directory part for this.....
    Include the necessary conditions in Receiver Determination (for sending message in the second point mentioned).....
    The second communication should get iniated once you get some value from the call to SP1....this can be checked in Receiver Determination using the Exist (EX) condition...this will trigger the call to SP2.....same for SP2-----> File.
    Just create a single Configuration Scenario in ID for this and include all the objects in it.
    Regards,
    Abhishek.

  • How to connect informix database from informatica through JDBC instead of ODBC

    How to connect informix database from informatica through JDBC instead of ODBC.

    Hi mate,
    You may get fast reply for this in informatica forums.
    Thanks
    http://mkashu.blogspot.com

  • Error in Test Connection through the DQE for my JDBC system

    Hi,
    I created a JDBC system and I gave DQE properties to connect to the PUBS database.
    I am getting the below error when I did Test Connection through the DQE.
    Test Details:
    The test consists of the following steps:
    1. Checks the existence of a backend admin user ID/password in the system properties.
    2. Checks the existence of a default alias for the system.
    3. Checks the DQE connection.
    Results
    1. Backend admin user ID and password exist in the system properties.
    2. Default alias of the system exists.
    3. DQE connection failed. The system is currently being loaded. Please wait and try again.
    I re-entered admin id and password in DQE properties as per OSS note 761753.
    Still I am getting the same error.
    Thanks,
    Ramakrishna

    Vadim
    I did all steps mentioned by you.
    Still my issue is not resolved...
    Thanks,
    Ramakrishna

  • I just update my iPhone which was previously jailbreaked when i update it after downloading all the file it start to show the apple logo for a moment and it went and completely turned off i tried to connect through iTunes but it doesn't show any iPhone

    i just update my iPhone which was previously jailbreaked when i update it after downloading all the file it start to show the apple logo for a moment and it went and completely turned off i tried to connect through iTunes but it doesn't show any iPhone connected to itunes

    No support for jailbroken phones will be given in this forum or from Apple.
    Unauthorized modification of iOS has been a major source of instability, disruption of services, and…

Maybe you are looking for