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...
Printable View
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 ociQuote:
jdbc: 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.Quote:
jdbc: oracle:thin:@myhost:1521: orcl", "scott", "tiger"