aspose file tools
The moose likes JDBC and Relational Databases and the fly likes eeror in jd bc connectionwith oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "eeror in jd bc connectionwith oracle" Watch "eeror in jd bc connectionwith oracle" New topic

eeror in jd bc connectionwith oracle

Ajoy Sharma

Joined: Feb 24, 2004
Posts: 9
Hi Naga,
I got ur email ID from Java ranch .com. Iam facing problem to connect JDBC in Oracle database.
The Code is given below. It is complied with out error . when I try to excute it gives error :
could u tell me how can I fix it.

Code for program:

import java.awt.*;
import java.sql.*;
import java.util.*;
import java.math.*;
import java.awt.event.*;

public class MakingAStatement
public static void main(String[] args)

Class.forName("") ;

Connection con = DriverManager.getConnection(
"jdbc racle:thin:@meenuanand1:1521:ed05"

Statement myStatement = con.createStatement();
ResultSet authorResults = myStatement.executeQuery("select cFirst_Name from registration");
catch(ClassNotFoundException cnfe)
catch(SQLException sqle)
Consider Paul's rocket mass heater.
subject: eeror in jd bc connectionwith oracle