I wrote a servlet program and I want it to connect to my Oracle database but its giving me an error. I am using Eclipse Helios, Tomcat 6.0.37, Oracle 11g (11.2.0.1.0), ojdbc
First check your listener is on or off.
Go to net manager then Local -> service naming -> orcl.
Then change your HOST NAME and put your PC name.
Now go to LISTENER and change the HOST and put your PC name.