what container/server are you using? If you are using a Java web server or a Java EE application server, then you should not have to do any Oracle specific thing in your code. Create a datasource and use JNDI to look up the datasource(jdbc.sql.DataSource). Then call datasource.getConnection().
When you deploy, configure the datsource to connect to Oracle, for that matter any JDBC compliant database.