Results 1 to 4 of 4
- 01-02-2009, 07:04 AM #1
Member
- Join Date
- Jan 2009
- Location
- Hyderabad,India.
- Posts
- 13
- Rep Power
- 0
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
- 01-05-2009, 09:42 PM #2
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.
- 01-12-2009, 11:22 AM #3
Member
- Join Date
- Jan 2009
- Location
- Hyderabad,India.
- Posts
- 13
- Rep Power
- 0
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.
- 01-12-2009, 02:37 PM #4
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
-
Advantages and disadvantages of storing java object to database
By archanab in forum Advanced JavaReplies: 10Last Post: 12-23-2008, 07:37 PM -
[SOLVED] How to load data from the database and display in jTable?
By tpyq in forum NetBeansReplies: 0Last Post: 12-04-2008, 05:39 PM -
How can we load database?
By java19857 in forum New To JavaReplies: 5Last Post: 09-19-2008, 06:34 PM -
How to insert java Object in oracle database
By Thilkumar82 in forum Advanced JavaReplies: 9Last Post: 08-13-2008, 11:33 AM -
Probeleme with insert into database oracle
By bachtoutou in forum New To JavaReplies: 0Last Post: 05-24-2008, 11:56 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks