hi all, after going through many examples on internet, I still couldn't understand what to write in DriverManager.getconnection(URL). URL parameter refers to jdbc:subprotocol:subname kind of form. But please explain me what is subprotocol and what is subname. If I want to write a jdbc program what do I have to write as subprotocol and subname ?
posted 6 years ago
What exactly goes there depends on what DB server you use (Oracle, Postgres, etc.), on which physical server it resides, and what the name of the database is. You can find the specifics about what to use in the documentation of the JDCB driver of whichever DB server you're using.