hibernate连接oracle数据库的问题?
我在ecplise下用hibernate连接oracle数据库时出错:
Error while trying to login to database:
Io 异常: Conncetion
refused (DESCRIPTION=(TEMP=)(VSNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=
我的hibernate.cfg.xml文件是这件的:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="myeclipse.connection.profile">conn_oracle1</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:test</property>
<property name="connection.username"></property>
<property name="connection.password"></property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<mapping resource="Add valid path" />
</session-factory>
</hibernate-configuration>
求高手解答,我搞了好几天了.
qq 258268936
有人帮我吗?