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.

Results 1 to 5 of 5

Thread: regarding driver identification

  1. #1
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default regarding driver identification

    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...


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: regarding driver identification

    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.

  3. #3
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: regarding driver identification

    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

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: regarding driver identification

    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.

  5. #5
    Member
    Join Date
    Sep 2013
    Posts
    68
    My Mood
    Confused
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default Re: regarding driver identification

    use driver
    oracle.jdbc.OracleDriver

    and url
    jdbc: oracle: driver_type:@host_name: port_number:SID", "username", "password"
    driver_type : thin or oci
    SID : XE or ORCL

    for example:
    jdbc: oracle:thin:@myhost:1521: orcl", "scott", "tiger"
    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.

Similar Threads

  1. Class Driver help
    By Kseidel in forum Object Oriented Programming
    Replies: 2
    Last Post: November 2nd, 2012, 01:06 PM
  2. Implementing a Driver to following code
    By Twoacross in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 11th, 2011, 11:17 PM
  3. [SOLVED] Help with creating a class and driver
    By JackCannon15 in forum Object Oriented Programming
    Replies: 1
    Last Post: October 27th, 2011, 03:50 PM
  4. No suitable driver found
    By Josheh in forum JDBC & Databases
    Replies: 2
    Last Post: October 16th, 2011, 01:12 AM