Java
  Home arrow Java arrow Java Stored Procedure in Oracle, Database ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Java Stored Procedure in Oracle, Database Interaction
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 27
    2005-11-01

    Table of Contents:
  • Java Stored Procedure in Oracle, Database Interaction
  • A Simple Java Class
  • Getting Java Classes into Oracle Database
  • How to make Classes available to Oracle
  • How to execute the Java Stored Procedures

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Java Stored Procedure in Oracle, Database Interaction


    (Page 1 of 5 )

    In this article, we will examine working with Java Stored Procedures in Oracle database.

    The entire code has been tested with only Oracle 10g with version 10.2.  It would also support any successive versions after Oracle 8i.  But, I didn’t personally check all of those versions.

    Stored Procedures being written in Java?

    I contributed a very long series (about 20 parts) that covered database interaction with PL/SQL.  I received good feedback from several readers from all parts of the world.  Indeed with their request, I am still extending the same series (but with different titles).

    I already introduced an article which explains what a stored procedure is.  We also examined how to create, execute and drop stored procedures in an Oracle database.  Now, we will examine a similar concept but turn a bit to Java.  To follow this article, one should have at least a basic idea of Java (at least its syntax, compilation, and so on) together with a bit of PL/SQL knowledge.  For a complete list of my PL/SQL articles, try searching through “igrep.”

    Even though I am working on Oracle 10g (v10.2) now, right from version 8i, the Oracle database includes a fully functional Java Virtual Machine called “Oracle JVM.” Oracle and Sun have a long-term relationship for their applications and platform interoperability. One of the important technologies which came out of their growing relationship is “Java stored procedures.”

    With that flexibility, suddenly many Java developers became something like “Oracle Developers for Java” or “Java Oracle developers.”  Not only Java stored procedures, but Oracle has further integrated very tightly with almost all of the latest J2EE specification (including, SQL, JSP, EJB and so on).  In fact, Oracle developed its own application server (Oracle Application Server or simple “10gAS”) to integrate with their other suites.

    With Java stored procedures, developers have the ability to harness the power of Java when building database applications. Almost the entire core Java API can be used to develop stored procedures.  And further they will be served as if they are “native” Oracle stored procedures (generally written in PL/SQL).

    In this article, we will examine how to create our own Java stored procedure, right from scratch.

    More Java Articles
    More By Jagadish Chaterjee


       · get in touch with Java stored procedure here and don't forget to give me the...
       · Nice basic article, it would be great to have an example of using an external object...
       · sure...I will plan one more...and thanks for the feedback
       · Hi, Iam doing a comparison of Java and Oracle stored procedures and i find the...
       · Hello,I am please to read this article. Indeed this article provides a step by...
       · Dear Jagadish,Thanks for such a nice article. It is very simple to understand and...
       · Hi Jagdeesh,The article is realy very helpful and knowledgable, thank you.I...
     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek