You cannot (AFAIK) set this as part of a URL. According to OracleDriver documentation :
Specifying the database URL and property object
The following signature accepts a URL along with a property object that indicates a username and password (possibly, by the way):
getConnection(String URL, Properties info);
If the URL is of the form:
jdbc:oracle:<drivertype>:@<database>
In addition to the URL, use the standard Java properties object class as an input. For instance:
java.util.Properties info = new java.util.Properties(); info.put ("user", "scott"); info.put ("password","tiger"); info.put ("defaultRowPrefetch","15"); getConnection ("jdbc:oracle:oci8:@",info);
The table listing the connection properties supported by Oracle JDBC drivers includes includeSynonyms , so you should be able to:
String url = "jdbc:oracle:thin:@//<HOST>:1522/dev" java.util.Properties info = new java.util.Properties(); info.put ("includeSynonyms", "true"); getConnection (url, info);
Faulty, I'm afraid, and I'm not sure if it works with your version of the driver. You can also see how to install it later through OracleConnection or OracleConnectionWrapper .
Also, I’m not entirely sure that the URL form works with the 1.4 driver, although I think that it is so - you may need to use the original @<host>:1522:dev form. Note that in easy connect, the dev format refers to the service name, not the SID, and they may not be the same; check what lsnrctl status shows if this is problematic.