Hello Everybody,
i got ojdbc14.jar....
i want to interact with oracle database for this i need driver class name as well url...so how can i identify it...
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hello Everybody,
i got ojdbc14.jar....
i want to interact with oracle database for this i need driver class name as well url...so how can i identify it...
Can you provide more detail? The name of the driver class should be of your choosing. As for the URL, define what the URL is for or what it must do/refer to. You might check out the Java URL class for ideas.
i am using type4 driver ...this driver name where i can find.......
like for example...i am using Driver class name as oracle.jdbc.OracleDriver but i do no from where i took this name just simply i am using it's working fine
Ah, I misunderstood what you meant by "driver class."
Your last comment is "it's working fine." Does that mean you no longer need help? If you do need help, please clarify what you're asking.
use driver
oracle.jdbc.OracleDriver
and url
driver_type : thin or ocijdbc: oracle: driver_type:@host_name: port_number:SID", "username", "password"
SID : XE or ORCL
for example:
The Driver Class Name and url are vander specific, and the Class is reside in the jar file. In your case you are using ojdbc14.jar so the class oracle.jdbc.OracleDriver is in that jar file.Suppose if you are using MySQL then the Class detail is reside in mysql-connector.jar file and the Class Name change as well.jdbc: oracle:thin:@myhost:1521: orcl", "scott", "tiger"