URL string format for connecting to Oracle database with JDBC

前端 未结 7 1462
予麋鹿
予麋鹿 2020-12-02 09:44

I\'m a newbie to Java-related web development, and I can\'t seem to get a simple program with JDBC working. I\'m using off-the-shelf Oracle 10g XE and the Eclipse EE IDE. Fr

7条回答
  •  遥遥无期
    2020-12-02 10:28

    String host = 
    String port = 
    String service = 
    String dbName = +"."+service
    String url = "jdbc:oracle:thin:@"+host+":"+"port"+"/"+dbName
    

提交回复
热议问题