Aditya,
This is not supported. Once the server is installed, you cannot migrate to a different database nor change the connection details. Although not supported, using servicename for Oracle syntax for JDBC is:
jdbc:oracle:thin:@//HOSTNAME:PORT/SERVICENAME
or try
jdbc:oracle:thin:@dbserver.org.com:1521/SERVICENAME
Mind you, this still isn't officially supported changing connection specs as this is stored multiple places. I am not sure if the / needs an escape character, but I don't think so.
Regards,
Kevin