Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

puddlor

macrumors newbie
Original poster
Jan 12, 2007
2
0
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.
 
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.
 
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.
 
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.
 
Just out of curiosity, how is your DNS set up? Macs can get weird if they cannot properly resolve a domain name....
 
Just out of curiosity, how is your DNS set up? Macs can get weird if they cannot properly resolve a domain name....

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.