URL string format for connecting to Oracle database with JDBC

前端 未结 7 1482
予麋鹿
予麋鹿 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:38

    I'm not a Java developer so unfortunatly I can't comment on your code directly however I found this in an Oracle FAQ regarding the form of a connection string

    jdbc:oracle::@
    

    From the Oracle JDBC FAQ

    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#05_03

    Hope that helps

提交回复
热议问题