Results 1 to 2 of 2
  1. #1
    digioleg is offline Member
    Join Date
    Aug 2009
    Posts
    8
    Rep Power
    0

    Default I need help with java-oracle connection

    Can somebody help me with this?
    I want to establish connection to Oracle from java main in separate class EstablishOraDBConnection. And after connection I want to work in main with other method to do something in the database. How can I make that class and what is supposed to be in that class?
    Thanks,

    BTW, I am a new in JAVA

    Oleg

  2. #2
    mjz
    mjz is offline Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    0

    Default I need help with java-oracle connection

    Hi
    Write a class that returns Connection.instantiate it in your main (Test class) then call the method that returns the connection and you are good to continue with anything in your main method.

    Note* see codes around the net on this.

Similar Threads

  1. connect to oracle from java
    By ahmadian in forum Advanced Java
    Replies: 7
    Last Post: 05-15-2013, 04:15 PM
  2. oracle JDBC java
    By silia_motor in forum JDBC
    Replies: 4
    Last Post: 05-10-2009, 09:37 AM
  3. connection with Oracle 10g
    By Somitesh Chakraborty in forum New To Java
    Replies: 5
    Last Post: 11-20-2008, 07:19 PM
  4. Replies: 0
    Last Post: 08-27-2008, 09:27 AM
  5. Java + Sybase + Oracle
    By xxAlemanxx in forum Advanced Java
    Replies: 1
    Last Post: 06-26-2008, 07:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •