Re: PL*SQL stored procedure, oracle objects and Java
From: Abraham Leolo (abraham.leolo_at_nospam.org)
Date: 12/16/03
- Next message: Brant Barney: "Show all available ODBC connections from Java"
- Previous message: Mike: "Re: @@IDENTITY correct syntax?"
- In reply to: Bjorn Abelli: "Re: PL*SQL stored procedure, oracle objects and Java"
- Next in thread: Jeff Smith: "Re: PL*SQL stored procedure, oracle objects and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Dec 2003 10:14:32 +0100
Thanks for the hint, but the problem isn't yet solved.
It further it led me to an article where accessing nested tables seems
to work with Oracle 9i, since you can create Java objects within the DB.
Unfortunately I am using Oracle 8i and I haven't found any way to access
nested tables without creating Java objects in the DB, which is only
supported by 9i. Though I am using Java and JDBC to access the DB I
cannot create Java objects inside the DB in the first place.
Accessing PL*SQL generated objects that reside within the nested table
would be my next problem but Oracle 8i and JDBC seem to quit with the
nested tables already. I'm going to do the PL*SQL logic in Java and just
fire some SELECTs over JDBC to the DB, since I don't see any other way
around this issue.
cheers,
Abraham
Bjorn Abelli wrote:
>
> I haven't tried it myself, but I found an article on Oracle Technology
> Network that seems promising.
>
>
> http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/objects/ObjectTypes.html
>
> If the above line wraps, this link should work:
>
> http://tinyurl.com/z8oy
>
> If that doesn't help you, there's always another approach that I've seen
> many Oracle developers use in the past for different obstacles. Simply
> create a "wrapping procedure" that returns a "modified cursor" with only
> "plain" types, that is, to "expand the objects" to plain types already in a
> procedure at the Oracle Server. That approach should also make your code on
> the client-side more portable...
>
> For what it's worth, I hope my first suggestion really helps, as I probably
> have to look into something similar next year...
>
> // Bjorn A
- Next message: Brant Barney: "Show all available ODBC connections from Java"
- Previous message: Mike: "Re: @@IDENTITY correct syntax?"
- In reply to: Bjorn Abelli: "Re: PL*SQL stored procedure, oracle objects and Java"
- Next in thread: Jeff Smith: "Re: PL*SQL stored procedure, oracle objects and Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|