Java Issue: Why getting a jdbc connection take so long on mac?

Discussion in 'Mac Programming' started by puddlor, Oct 15, 2007.

  1. puddlor macrumors newbie

    Jan 12, 2007
    I am java programmer. I am new to mac, but I have written java code for several years.

    there is a thing boring my for a long time since I move to mac.

    It is always take a long time to get a jdbc connection to a remote Oracle DB server.

    On mac: it takes 30 second, On windows, It only takes 0.30 second.

    It is unacceptable, I cant measure the real effeciency of the application. our application will run on unix or windows.

    I guess the reason maybe is about firewall or something, because when I connect to a local db server, there is not problem.

    If everyone know the reason, please help, thanks.
  2. bootedbear macrumors 6502


    Sep 13, 2004
    Austin, TX
    Can't think of anything off the top of my head. I routinely connect to remote databases of various flavors (though not Oracle) without issue.
  3. garethlewis2 macrumors 6502

    Dec 6, 2006
    Why didn't you post this in the Oracle developer forums?

    Is it a Mac issue? Not really, considering you are using JDBC and Java.
  4. goMac macrumors 604

    Apr 15, 2004
    Sounds a LOT like a network issue, not a machine issue. Especially if you can connect to the local server quickly. Possibly also an ODBC configuration issue.
  5. foidulus macrumors 6502a

    Jan 15, 2007
    Just out of curiosity, how is your DNS set up? Macs can get weird if they cannot properly resolve a domain name....
  6. exabytes18 macrumors 6502

    Jun 14, 2006
    Suburb of Chicago
    This. Also, the server might be sitting around trying to resolve your hostname, eventually timing out after 30s. This can be complicated by any NAT that you have configured on the remote machine.

    Edit: yikes... hardcore grave digging.

Share This Page