I’m looking at a program that tells me how to connect to an Oracle database from Java that looks like this
String url = "jdbc:oracle:thin:@a-b.c.d.e:50001:f";
String user = "username";
String password = "secret";
String driverClassName = "oracle.jdbc.driver.OracleDriver";
...
Is that enough information to figure out how to connect to the same database from the sqlplus command line tool? If so what is the derived syntax for connecting?
Thanks in advance for entertaining what is most certainly a stupid question.
Probably something like:
This assumes that the SID (the
fused in the JDBC URL) is the same as the service name of the database.If they are not, I don’t know of any way to “reverse” engineer the service name from the SID.