If you have the OCI driver installed you can use an OCI connection string such as "jdbc:oracle:oci8:@". Otherwise, use the thin driver with your host, port and database id. Once you have set the connection string it will remain in effect until the session times out.