how can connection with oracle10g with java
Answer Posted / rajshri
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection
("jdbc:oracle:thin:@localhost:1521:XE", "system", "system");
//(system,system is username and passward of oracle 10g)
Statement st=con.createStatement();
String sql="(here your sql statement must be of select
pattern)";
ResultSet rs=st.executeQuery(sql);
while(rs.next())
{
AND SO ON...
Is This Answer Correct ? | 33 Yes | 4 No |
Post New Answer View All Answers
What is metadata in jdbc?
How to test jdbc connection to sql server?
What is jdbc driver for sql server?
In which ways is driver class is registered with drive manager?
List the common jdbc exceptions ?
What is the purpose of jdbc?
What is jdbc and its advantages?
What is the function of drivermanager class?
Which is better odbc or jdbc?
How you restrict a user to cut and paste from the html page using java programing?
What is ODBC and JDBC? How do you connect the Database?
How to know howmuch data is truncated?
What are the types of jdbc drivers that exist?
What is jdbc thin client?
What are the utilities of the callablestatement?