The format of the JDBC connection string depends on the database vendor or driver (apart from the jdbc:
prefix and the requirement of having at least three separated-by-colons fields - see here).
In the case of Oracle, and specifically its "thin" driver, there are several syntaxes, depending on whether you use the Service Name or the SID
In short, if using Service Name you write
jdbc:oracle:thin:@//host_name:port_number/service_name
where host_name
can be localhost
.
If using SID you write instead
jdbc:oracle:thin:@host_name:port_number:sid_number
Your example corresponds to this latter case.