connect Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghu4uon
    New Member
    • Apr 2008
    • 4

    #1

    connect Database

    hi

    Can anyone give source code to connect oracle 8 database to my java project????? i'm using jdk1.5, tomcat 5.5.9 web server, oracle 8..... i have created the tables but i dont know how to connect?????

    tel what should i do with source code!!!!!!!!!!! !!


    plz help me reagrding this!!!!!!


    Regards


    Raghu N
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by raghu4uon
    hi

    Can anyone give source code to connect oracle 8 database to my java project????? i'm using jdk1.5, tomcat 5.5.9 web server, oracle 8..... i have created the tables but i dont know how to connect?????

    tel what should i do with source code!!!!!!!!!!! !!


    plz help me reagrding this!!!!!!


    Regards


    Raghu N
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    A MEMBER

    Comment

    • ajos
      Contributor
      • Aug 2007
      • 283

      #3
      Originally posted by raghu4uon
      hi

      Can anyone give source code to connect oracle 8 database to my java project????? i'm using jdk1.5, tomcat 5.5.9 web server, oracle 8..... i have created the tables but i dont know how to connect?????

      tel what should i do with source code!!!!!!!!!!! !!


      plz help me reagrding this!!!!!!


      Regards


      Raghu N
      Give us your Specific problem. Also keep in mind the posting guidelines. Where are you stuck while connecting. Do a google search on connecting to oracle from java.

      Comment

      • raghu4uon
        New Member
        • Apr 2008
        • 4

        #4
        can you tell me what this line mean??????

        Code:
        Class.forName("oracle.jdbc.driver.OracleDriver");
                 con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:lab2com38","scott","tiger");
        please reply me as soon as possible...

        Regards

        Raghu

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by raghu4uon
          can you tell me what this line mean??????

          Code:
          Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:lab2com38","scott","tiger");
          please reply me as soon as possible...

          Regards

          Raghu
          Did your Oracle release come without documentation? Have you read the API
          documentation for the JDBC interfaces?

          kind regards,

          Jos

          Comment

          • hsn
            New Member
            • Sep 2007
            • 237

            #6
            it really looks like an assignment

            Comment

            Working...