Native Java in Oracle vs PL/SQL [message #521175] |
Fri, 26 August 2011 13:20 |
manubatham20
Messages: 566 Registered: September 2010 Location: Seattle, WA, USA
|
Senior Member |
|
|
Hi,
I just came to know that we can you java code natively with Oracle. But I didn't get the situation, how to decide when to use native java in oracle and when to use pl/sql.
Do you guys have any idea about that? Please suggest me any tutorial from where I can get the required information.
Thanks,
Manu
|
|
|
|
|
Re: Native Java in Oracle vs PL/SQL [message #521201 is a reply to message #521187] |
Fri, 26 August 2011 14:33 |
|
Michel Cadot
Messages: 68731 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
As Tom said, it is now rare, before there was no package to send mail or access internet within the database, so you have to use Java classes for this. Now this is embedded in some standard PL/SQL packages.
I use Java only to get some system parameters of the database server (System.getProperties), for the moment there is no oequivalent in PL/SQL.
There is no doc on this, just "if you can't do it in one way then go to the next one" rule.
So it depends on your Oracle version and imagination.
Regards
Michel
|
|
|