A lot of things to tell here
1.
Use a type4 java driver.
2. Instead of blatantly pasting your code mention where do you think you might be going wrong.
3. Dont't just code..
Think and code. I am sending you the Code for oracle connectivity.
Just make sure that you have the oracle jars in your classpath while trying to run it.
Also change the UserName,Password and Other details in the Connection
string.
[edit]Disable smilies. CR[/edit]
[ June 04, 2008: Message edited by: Campbell Ritchie ]