steps to connect with Oracle Databse using TYPE-2 Jdbc driver.

Answer Posted / shankar

we can connect with oracle DB using Type-2(partial native
and partial Java)

use driver :
oracle.jdbc.driver.OracleDriver

use URL:
jdbc:oracle:ocis:@hostname:port no:global source name

Dependig on port name and localhost URL will look like
(jdbc:oracle:ocis:@localhost:1521:XE)
XE is global source name Oracle 10g

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two parts of a conditional statement?

741


Is java still relevant?

742


Can you explain the private protected field modifier?

796


What is the difference between size and length in java?

748


What is are packages?

793


What is main in java?

802


Why is singleton not thread safe?

855


Explain the importance of join() method in thread class?

855


What do you understand by abstract classes?

842


What is the difference between final, finally and finalize()?

797


What is string variable?

814


Where is jre installed?

805


why an outer class cannot be declared as private?

3929


Why static functions are used?

811


Differentiate jar and war files?

792