Oracle Type4 driver (ojdbc14.jar) connection proble

Hi,

I'm trying to connect to my oracle 8i installed in my local machine through type4 driver.

I've downloaded ojdbc14.jar and included its path to classpath

The following lines are included in my code

Class.forName("oracle.jdbc.OracleDriver");

cn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger@localhost:1521:dbmsCo nnect ")

I've created the DSN as follows (in Windows XP)

Control Panel - Administrative Tools - Data Sources - Add - Took Oracle ODBC Driver - entered DSN name as dbmsConnect -added user id as scott

When I ran the code, Igot following exception

Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)

(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

Could anyone help me please

[804 byte] By [finny_samuel] at [2007-11-26 10:48:19]
# 1
You may need a later version of the driver: http://www.dbforums.com/showthread.php?t=971271Pl. also see: http://forum.java.sun.com/thread.jspa?threadID=563288&messageID=2773243 http://forum.java.sun.com/thread.jspa?threadID=300137&messageID=1189780
KarthikR at 2007-7-7 3:00:43 > top of Java-index,Development Tools,Java Tools...