Are you asking whether RMI or low-level socket programming is better? I would say if you donβt have a good reason, use something higher level for networking. The disadvantage of RMI would be that it is tied to Java. If this is a problem, you can look at other, more cross-platform remote access protocols.
In any case, the network issue seems to be completely unrelated to "transaction processing using Oracle DB."
Thilo source share