日期:2014-05-16 浏览次数:20414 次
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" scope="singleton"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="url" value="jdbc:oracle:thin:@211.***.***.**:1521:dbpri"/> <property name="username" value="dyx" /> <property name="password" value="dyx" /> <property name="maxActive" value="100" /> <property name="maxIdle" value="10" /> <property name="maxWait" value="60000" /> <property name="validationQuery" value="select 1 from dual" /> </bean>
//<host>:<port>/<service_name>
<property name="url" value="jdbc:oracle:thin:@211.***.***.**:1521/dbpri" />