Talk with your network guys or server guys. They might have something closing your connection. Out of the box, Oracle doesn't do disconnect sessions automatically. I'd suspect you have idle timeouts on the network or the server. You'll need to ask around to find out what you might have in place so a good solution to the problem can be discovered.