java - Is it possible to define Oracle connection containing SID as a single parameter? -
i have written class connecting oracle database using servicename in below format.
connection = drivermanager.getconnection("jdbc:oracle:thin:username/password@//host:port/servicename); is possible same using sid? want accomplish convert below 3 connection parameters in getconnection method single parameter above code.
connection = drivermanger.getconnection("jdbc:oracle:thin:@host:port:sid", username, password); thanks in advance:)
java connection-string
No comments:
Post a Comment