how can i resolve-oracle-11g-xe using eclipse

后端 未结 2 598
轻奢々
轻奢々 2020-12-11 14:16

I am trying to make a sample JDBC program i which i have to create table but i am facing this issue i tried many solution present on web all i have to come to know that serv

相关标签:
2条回答
  • 2020-12-11 14:51

    Try changing your JDBC Connection string from the following:

    "jdbc:oracle:thin:localhost:1521:xe"
    

    to the following:

    "jdbc:oracle:thin:@localhost:1521:xe"
    

    You need to understand when to use : and /, based on the usage of SID or SERVICE NAME

    INSTANCE SID by ":"
    jdbc:oracle:thin:@localhost:1521:SID
    SERVICE NAME by "/"
    jdbc:oracle:thin:@localhost:1521/SERVICE_NAME
    

    Hope this helps!

    0 讨论(0)
  • 2020-12-11 14:53

    Try changing from:

    "jdbc:oracle:thin:localhost:1521:xe"
    

    to:

    "jdbc:oracle:thin:@//localhost:1521/XE"
    
    0 讨论(0)
提交回复
热议问题