oracle

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:orcl




     <driver-url>jdbc:oracle:thin:@127.0.0.1:1521:DB</driver-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <driver-properties>
      <property name="user" value="lantou"/>
      <property name="password" value="lantou"/>
    </driver-properties>



我这怎么就出了这个问题呢????

  用plsql 连db 是正常的连上的。。。。

你可能感兴趣的:(oracle,jdbc)