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

Is there a jre for java 11?

809


What are the 2 types of java programs?

794


How to set the permissions to a file in java?

745


What is boolean query?

746


How to sort elements in a parallel array in java?

684


Why stringbuilder is not thread safe?

765


What is the difference between ArrayList and Vector? which one is better in Java

823


What are the different data types in java?

742


What is number data type in java?

777


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

845


What is a blocking method in Java?

826


What are the uses of synchronized keyword?

741


What occurs when an object is constructed?

764


Name four container classes.

749


Is a method a procedure?

773