Results 1 to 4 of 4
  1. #1
    dorairaj is offline Member
    Join Date
    Jan 2009
    Location
    Hyderabad,India.
    Posts
    13
    Rep Power
    0

    Default How to Load Java Object into Oracle Database

    Hi All ,

    I want to load java object into Oracle. As of now i m able to load java object to oracel by using java Program like getting runtime Object and execute that(Runtime.getRuntime().exec("cmd /c start loadjava -user usename/password hostname -f -v -resolve javaObjectName). But the problem with this is additionallly Cmd prompt window will open while program is running i dont want like that. Is there any solution to Loadjava object into Oracle let me know pls

    thanks in Advance

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    10

    Default

    I'm not sure what you mean by a Java object; it could either mean the values currently in an instance of a class or a .class file in the file system.

    If you mean the first, look into serialization. This allows you to take the values in an instance and store them in a binary or XML format in your database and then retrieve them into a new instance later on.

    If you mean the second, you can open the file as a binary stream and write the stream to the database.

    Either way, you would use JDBC to access your database.

  3. #3
    dorairaj is offline Member
    Join Date
    Jan 2009
    Location
    Hyderabad,India.
    Posts
    13
    Rep Power
    0

    Default

    Hi,

    I mean to say java Object in the sense either .class or .java file.

    and one more thing

    After loading java object to Database. I must
    able to call the any method within the class in oracle.

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    10

    Default

    Sounds to me like you want to create some sort of Java stored procedure in Oracle, or you want to make an external program call from Oracle to a Java class.

    First, find out what you want to do. I suggest talking to an Oracle system architect about your business goals. Regardless, this sound more like an Oracle question than a Java one.

Similar Threads

  1. Replies: 10
    Last Post: 12-23-2008, 08:37 PM
  2. Replies: 0
    Last Post: 12-04-2008, 06:39 PM
  3. How can we load database?
    By java19857 in forum New To Java
    Replies: 5
    Last Post: 09-19-2008, 06:34 PM
  4. How to insert java Object in oracle database
    By Thilkumar82 in forum Advanced Java
    Replies: 9
    Last Post: 08-13-2008, 11:33 AM
  5. Probeleme with insert into database oracle
    By bachtoutou in forum New To Java
    Replies: 0
    Last Post: 05-24-2008, 11:56 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
  •