Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Do you use PL/SQL
Ana C. Dent wrote:
> Doug Davis <douglass_davis_at_earthlink.net> wrote in
> news:1179630172.123167.246530_at_o5g2000hsb.googlegroups.com:
>
>> >> I will be teaching a PL/SQL class, and I wanted to get some opinions. >> I read about PL/SQL, but wanted some practical advice from people who >> have used it. >> >> >> 1. Why use PL/SQL instead of just sending SQL queries from a program >> written in a procedural language on the client side (Java, Visual >> Basic, C++, anything.)
No one has mentioned that Oracle supports other languages for stored procedures also. I have used Java, but I guess Oracle in Windows supports C# also. In Linux (and I guess other OSs also) Oracle has built in Java virtual machine (actually I guess it compiles Java to C or similar), so with Java you get the reduced network traffic.
I had a set of queries that were made using an object relational mapper written in Java. This means that the queries are actually a set of Java methods. When I moved the methods to Oracle as stored procedures, the execution was on some cases over three times faster. Also, since the methods were run inside the Oracle, I did not have to open JDBC port to the world.
-- Arto Viitanen, CSC Ltd. Espoo, FinlandReceived on Mon May 21 2007 - 00:55:11 CDT