Advantages and Disadvantages of calling java from PL/SQL

Hi,
I have one doubt. What are all the advantages and disadvantages of the calling java from PL/SQL?
In actual scenario the java program will be in the Application server side. It will do the operation and it will store the result in Data base. But in this case (calling java from PL/SQL), we are loading the java program in the Data base and it is doing the operations.
I have seen many posts are coming regarding loading jar files into the database. Actually the jar will deploy in to Application server. Is there any difference instead of keeping in the Application server side?
Then I have read,
advantages:
-> java having lot API's. so PL/SQL can use that API's.
-> if we can not do anything in PL/SQL. we can do it using this mtd(calling java from PL/SQL).
My questions:
-> could you explain what are all the things we can not do but we can do using "calling java from PL/SQL" method?
-> is there any other advantages?
Disadvantages:
-> the performance is very slow in calling java from PL/SQL.
My questions:
-> Then why others are loading java files and jar files into database?
-> is there any other disadvantages?
Could you explain about this one? It will be more helpful to others also…
Regards,
kk

Hi,
You can read the free first chapter of my book @ http://www.amazon.com/gp/product/1555583296/ (see details then Excerpt)
Kuassi http://db360.blogspot.com

Similar Messages

  • Advantages and Disadvantages of webdynpro JAVA over J2ee?

    Hi,
       Can anybody provide me the advantages and disadvantages of webdynpro java over the J2EE?
    Regards,
    Harish.

    Hi,
    Webdynpro is the SAP standard technology for developing business user intrefaces.
    Webdynpro is like the frame work which follows the MVC Design pattern.
    Webdynpro uses most of the UI developement as declarative approach , i.e. most of the code will generated by the framework. so it will reduce the developement efforts.
    Adaptive RFC model to connect with SAP systems.
    All these are advantages over than the J2ee.
    Regards,
    Naga

  • Advantages of calling java from PL/SQL

    Hi experts,
    Could any one tell me the advantages of calling java program from PL/SQL?
    Regards,
    karthi

    Hi,
    You can read the free first chapter of my book @ http://www.amazon.com/gp/product/1555583296/ (see details then Excerpt)
    Kuassi http://db360.blogspot.com

  • Calling java from pl/sql in oracle 10g?its very urgent.

    Hi Friends,
    i hve simple java code:
    class Hell
    public static String Hello()
    return"hello world";
    & compile this code using javac & loaded Hell.class in to database using this command
    c:\>loadjava -user chandru/shekar@pulser c:\Hell.class
    & i wrote pl/sql like:
    CREATE OR REPLACE FUNCTION Hell RETURN String as language java name 'Hell.Hello() return java.lang.String';
    i will compile the code & run but at that time this error i am getting:
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:317
    Uncaught exception System error: java/lang/UnsupportedClassVersionError
    I am using oracle 10g.Plzzzzzzzzz help me.Its very important to for me.
    Is any path i hve to set for oracle 10g database.Plz any one help me.
    regards
    shekar

    Hello here is how I solved the problem
    Let us assume that i try to load the file Hello.Java into the user scott.
    public class Hello {
         public static String world() {
              return "hello world";
    1) Dropjava          
    You must drop the java class if you already have loaded the class onto the server.
    dropjava -u scott/tiger Hello.class
    2) load class on server and let the server compile the source code.
    It is necessary to compile the source code on the server when the server and the local machine have different Java versions. To check which Java version there is running on the client machine open a command prompt and write Java -version
    loadjava -user scott/tiger -resolve Hello.java
    3) Publish stored procedure      
    sqlplus scott/tiger@oracle
    CREATE OR REPLACE FUNCTION helloworld RETURN VARCHAR2 AS                LANGUAGE JAVA NAME 'Hello.world () return java.lang.String';
    4)Call stored procedure      
    VARIABLE myString VARCHAR2(20);
    CALL helloworld() INTO :myString;
    PRINT myString;
    RGDS
    Thomas Winterberg

  • Calling Java from PL/SQL truncates long

    We are using Oracle 8.1.6 on Sun.
    We have a table with a field defined as type Long.
    When a record is inserted into the table, a trigger fires a java stored procedure.
    The stored proc takes the provided long and attempts to pass it to a RMI call.
    The long is passed as a java.lang.string.
    However, the class that is invoked through RMI received a NULL value.
    null

    Is the same problem happening for a small String value also?
    i.e stroing the a short value in the long column also causing the same problem.
    Will it be possible to give us some kind of test case (code) or you can give us the exact steps to reproduce the problem.
    null

  • Calling JAVA from PL/SQL

    Hello,
    Are there any PL/SQL code examples on how to call a JAVA program from a when-button-pressed trigger event?
    Thanks much.

    Hi,
    I was able to import the JAVA code via the "Import Java Classes". Now, what PL/SQL statements do I put in my "when-button-pressed" trigger to execute this JAVA code? Any samples around, preferably with examples of parameter passing.
    Thanks in advance!!

  • URGENT - Call java from pl/sql

    Hi,
    How Can I call external java class in a pl/Sql ??
    Regards
    Giordano

    Hi
    a way to do that, is to load the external java class in your database, like that (ORACLE_SID is setting):
    loadjava -user myuser/mypassword /mypathname/myPackage.class
    Then, you must declare this external procedure like that,
    (for example)
    CREATE OR REPLACE PROCEDURE p_jMyProcedure (Param in varchar2) AS LANGUAGE JAVA NAME 'myPackage.myProcedure(java.lang.String)';
    you can call your procedure as a pl/sql procedure
    so long;

  • Advantages and Disadvantages of Soap

    Advantages and Disadvantages of Soap
    Hi Firends,
                  Could you please tell me the Advantages and Disadvantages of using Soap adapter, i need them urgently.
    Note: High reward points will be given for each answer

    Hello
    SOAP is an XML-based protocol for exchanging information in a decentralized, distributed environment. It was made for Web, a combination of XML and HTTP opens up new options for distributed data exchange and interaction in a loosely coupled web environment. SOAP is a technology that allows XML to move easily over the Web. SOAP does this trough an XML envelope for delivering XML content and specifying a set of rules for services to follow when they receive a SOAP message.
    The fundamental change brought about by SOAP has been the ability to move data anywhere across the Web. Before SOAP there were only two main options for moving data between partners.
    One was to build a wide area network spanning a broad geographic region and let the partners plug into it. This was the approach taken by EDI, which defined messages and protocols for data transfer but left the network details up to the partners. The result was a collection of networks that pretty much locked the partners in and made it difficult and expensive to reach out to other EDI networks and costly to bring in new partners.
    The second approach for moving data between partners was to build a distributed object infrastructure than ran over the internet. This was the approach taken by Common Object Request Broker (CORBA), Remote Method Invocation (RMI) and Distributed Component Object Model (DCOM). The problem was that each had to decide on a protocol that could sit on top of TCP/IP and handle inter object communication. CORBA Chose Internet Inter-ORB Protocol (IIOP), DCOM chose object Remote Procedure Call (ORPC), and RMI chose Remote Method Protocol (JRMP). While this approach reduced the need to share the same underlying network, the drawback was that CORBA could talk to CORBA, RMI to RMI and DCOM to DCOM, but they neither could talk to each other nor directly to the web except through special sockets that required adding extra layers to an already complex architecture.
    SOAP the third option, combines the data capabilities of XML with the transport capabilities of HTTP, there by overcoming drawbacks of both EDI and tightly coupled distributed object system such as CORBA, RMI and DCOM. It does this by breaking dependence between data and transport and in doing so opens up a new era of loosely coupled distributed data exchange.
    SOAP Carries an XML RPC tradition by defining an XML language for packaging arbitrarily XML inside an XML envelope. Although SOAP does not depend on HTTP, the momentum behind SOAP is attributable to the fact that HTTP will usually be used for transfer protocol for SOAP messages.
    SOAP is a transport protocol similar to IIOP for CORBA, ORPC for DCOM or JRMP for RMI.
    SOAP differs from CORBA, RMI or DCOM in several ways.
    IIOP, ORPC and JRMP are binary protocols, while SOAP is a text based protocol that uses XML. Using XML for data encoding makes SOAP easier to read than a binary stream.
    1) Because SOAP is text based, it is able to move more easily across the firewalls than IIOP, ORPC or JRMP.
    <p2) SOAP is based on XML, which is standard driven rather than vendor driven. Potential adaptors are less likely to fear vendor lock in with SOAP. </p2>
    The net effect is that SOAP can be picked up by different transport protocol and delivered in different ways. For example, when used with HTTP it can be delivered to a web server, when used over FTP it can be deposited directly into a file system and when used with SMTP it can be delivered to a user's mailbox.
    Many companies exchange data between established partners is proving totally satisfactory way to leverage the benefits of XML and the web. In this scenario the required are an agreed upon schema either DTD or an XML schema, for XML data being exchanged and the SOAP server capable of handling the incoming XML as it arrives over the web. Details about what kind of schemau2019s to expect and who will check the XML conforms to the schema are decided offline by individuals participating in the process. On the software side senderu2019s needs to be involved in packaging their data in an XML document. For those companies already storing data in XML, this should require only minimal effort. If the stored XML data is not in the form required by the agreement, an XSL Transformation(XSLT) style sheet can be programmed to automate the transformation.
    SOAP messages define one way data transmission from sender to the receiver. However SOAP messages are often combined to implement patterns such as request-response. When using HTTP binding with SOAP, SOAP messages can use the same connection as the inbound request.
    Regard's
    CHETAN AHUJA

  • Advantages and Disadvantages of Idoc

    Advantages and Disadvantages of Idoc
    Hi Firends,
                  Could you please tell me the Advantages and Disadvantages of using Idoc adapter, i need them urgently.
    Note: High reward points will be given for each answer

    Hi,
    If u choose IDOC the data transfer will be done completely by IDOC method. The records will be as Control Record, Data Record & Status Record. Under the InfoIdoc, the data will be stored in segments. The data is safe here & using status redord could identify the status of the transfer.
    some pros and cons....
    1. Limited to 1000 bytes / record.
    2. User cannot access the data as in PSA.
    3. Data Security is more.
    4. Good for less volume of data.
    5.Fast to load, easy processing, low programming for standard IDOC’s
    6.Good knowledge of IDOC processing required, time consuming if changes have to be made to a created IDOC
    7.It cannot be used for SYNCHRONOUS COMMN
    8.Maintence of port and Genration of partner profile is difficult.
    9.ALE configuration steps required for both in XI and SAP-R/3.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2b4035c-0d01-0010-31b5-c470d3236afd
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    I ) In the case where we encounter a standard IDOC provided by SAP or Situation where a mapping is available or an IDOC as well as a BAPI exits, the approach will be dependent on the specific integration scenarioo......
    for For example, options might be
    1) sending one IDOC at a time
    2) combing multiple IDOCS and sending as a single IDOC.
    3) making one single RFC call, for each business transation.
    4) avoiding multiple calls to the same BAPI / RFC by deploying a wrapper BAPI and sending all records in one call.
    5) Using the proxy and sending all data in one shot and making single calls to the BAPI from the proxy.
    Regards.
    Srinivasreddy
    Thanks
    Srinivasreddy
    Edited by: Srinivas Reddy on Jun 23, 2008 10:36 AM

  • Advantage and disadvantages of XI

    Dear All,
                 I was asked to list down the Advantages and Disadvantages of XI over other middleware tools in an interview
    Please advice.
    Regards,
    Ashish

    Hi Ashish,
    Advantages of XI:
    XI is a middleware like many others. It is well suited for connecting SAP systems with each other and with non-SAP.If your focus is not on SAP systems, other solutions might be a better choice today. SAP XI provides an integrated workflow engine that allows to define adapters to non-XML-protocols and mappings to convert data content from source to target.
    Any fully mature middleware should provide these three layers.
    1. An independent Message Queue
    2. A data consolidator and mapping engine
    3. Workflow processor.
    XI is lacking full-fledged Message Queue compared to other established Middleware products.
    Currently, SAP XI does not have the features like IBM Websphere, Seeburger or TIBCO.
    SAP's next XI release might provide this missing piece and many more features which is due 2007 i guess.
    Here are the advantages of SAP XI from my point of view.There are lots of advantages but to list a few :
    Easy Integration with SAP products & components (RFC, IDOC, Proxy).
    Data security as expected from any SAP product.
    Standards based - XML, XSD, Xpath etc
    Ability to communicate with other messaging systems/products.
    Business Process Management
    Synchronous & Asynchronous communication possible.
    Complex processes for communication possible instead of only sending and receiving (business process management) (connect e.g. asynchronous and synchronous steps, define complex communication scenarios)
    Mapping etc possible to accomplish in Java. Platform independent Java components.
    Java & .Net support.
    Big range of adapters for different technologies / tools (SOAP, Mail, JDBC, CDIX...)available in standard or offered by other companies (EDI e.g. by Seeburger).
    Process functionalities inside XI to modify content in the communication channel on own defined rules fpr business purposes.
    Central monitoring for data communication for all your communication between different systems.
    And the marketing issue: SAP and its partners provide high volume of development capabilities to make XI always up-to-date for new requirements
    Regards,
    Subhasha Ranjan

  • Advantages and Disadvantages of Dual booting Windows on PXI Device

     
    Hello,
    In solving my previous problem of running a DLL in RTOS I've stumbled upon another solution. But i wanted to know the pros and cons of this before i make the leap.
    I want to install windows on the PXI device so that the NHR DLL files are run inherently on the windows kernel and i have access over my DAQ devices without placing them in the remote target.
    What are the advantages and disadvantages of installing a windows only on the DAQ device and running all my operation from it. Do i loose my real time features? I dont know, I'm really new to LabView and may sound really dumb. Please excuse my lack of knowledge.
    With Regards,
    Khalid.

     
    Hello Bob,
    Thank you for your insightful answer. I also thought this might happen, loosing all the RT features.
    I have another question for you. If i use a RT variant of windows like "Windows Embedded 8", will this make any difference? Can i regain my RT features by it or i have to go with the LabView RTOS.
    I'm pushing towards a windows system because i have to run this DLL file from NHR which is not supported by the LabView RTOS.
    Moreover, I could just install just windows onto the PXI controller. I'm not being able to make it dual boot. Can you guide me towards proper guideline to do so? I looked at the knowledge base file about dual booting, but the instructions dont exactly match with my available options in BIOS setup.
    Any suggestions from anyone is much appreciated.
    With Regards,
    Khalid.
     

  • Advantages and Disadvantages of BEx Analyzer

    Dear All,
               Please specify the ADVANTAGES and DISADVANTAGES of using BEx Analyzer for reporting over a browser.Does the analyzer provide better performance?generate exhaustive reports?and found better by users since it is excel based?
    Yours truly,
    Ratish
    [email protected]
    +919820827647

    Hello Ratish,
      The advantages and disadvantages are primarily based on the light weight client and heavy client.
    Excel -
    1. It is heavy weight and needs a client installation
    2. Analysis is easier , as excel functionalities can be used over BI data
    3. People who know excel will like this
    Web-
      1. It is light weight and no installation needed at the client as browser will be available
      2. Can not analyze the data from the report ( you need copy to excel)
    In simple analysts and expert users like excel.
    Users who just view the report and no more analysis will be happy with web.
    Regards,
    Sheik Bilal

  • ABAP Query Tool - Advantages and Disadvantages

    Hi guys,
    wich are the main advantages and disadvantages of using ABAP Query Tool?
    Regards,

    Moderator message: Previous answers were rejected because they were copy and pasted from other people's work
    Hi Suresh,
    Thanks for your quick answer.
    Beyond  these advantages and disadvantages are there more that could be considered?
    Regards,
    Edited by: Matt on Mar 23, 2009 10:06 AM

  • Calling Java from Delphi

    Can ActiveX bridge used for calling Java from Delphi?

    Also trying to solve this problem, after creating the bean i packaged/registered it successfully, (tested the bean using beanbox, works perfectly) then tried calling it via createoleobject in delphi 7
    (*Code Snip *)
    Var
    v : variant;
    begin
    try
    v := createoleobject(Edit1.text); // my class name ie WorldPort.Bean (also tried WorldPort.Bean.1
    except on e:exception do
    showmessage(e.Message)
    end;
    end;
    (*Code Snip*)
    After this simple code failed i started backtracking , eventually after getting "Access Violation...etc in axbridge.dll" all the time. tried delphi "import activex control" got the same access violation.
    Decided to test the example from http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/examples.html........ they both crashed on execution (calc.exe and boundprop.exe).
    After this failed I tested these example classes on another machine, both crashed again.....
    Also tried this experiment in VC++ , after adding the class to the Toolbox , i try to drop it onto a form, once again access violation.**PS**
    ('You will need VC++ and the Microsoft SDK to build the dll, download c++beta for free from microsoft site it you need it')** and a simple cmd file todo the job would look something like this:
    echo - ** Build Java ActiveX Bridge **
    echo Make sure these folders exist in jre--> axbridge\lib and axbridge\bin
    cd\SDK\jre\axbridge\bin
    set path=%path%;C:\MSDN\Bin;C:\VisualC++\lib
    echo path
    javac WorldPort.java
    jar cmf Manifest.txt WorldPort.jar WorldPort.class
    "C:\SDK\bin\packager.exe" -clsid {162193C4-AD5C-4A06-9F88-A737AE9B43AD} -out "C:\SDK\jre\axbridge\bin" WorldPort.jar WorldPort-reg
    *** After running this cmd you will find the dll in bin folder and the jar in lib folder..***
    Must Read:http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    Hope some of this helps , if you have successfully created / installed/ used a "JavaActiveX" in Delphi , i would really like to try replicate it on my machine..

  • Advantages and Disadvantages of OIM11gR2 over 11gR1

    Hello experts,
    I would like to list out the advantages and disadvantages of OIM 11g R2 over R1. Can you guys please help me in completing the list??
    Advantages:
    1. Shopping cart experience / request catalog model / interactive user interface
    2. UI customisations made easy
    3. Secure access to cloud, mobile and social networks
    I am not sure of the disadvantages but heard that its a lenghty process (risky) to upgrade from R1 to R2.
    Can any of you have ideas on the changes to workflows, provisioning and reconcilation and other procesess.
    Thanks,
    Bob

    http://rajivdewan.blogspot.com/2012/08/oracle-identity-manager-11g-r2-oim-11g.html
    anyone come across any cons with R2Some known and unknown issues are there but those you'll find with each and every product and version.
    http://docs.oracle.com/cd/E27559_01/relnotes.1112/e35820/id_mgr.htm#CHDDGDCC

Maybe you are looking for

  • Trouble connecting LaserJet6p to Windows 7 64 bit computer using usb to parallel printer cable

    The printer isn't responding at all--not even a test page. I've verified that the correct driver is installed and the computer does recognize the printer (even as the "default"). Any suggestions?   The computer is working with my other printer throug

  • Cannot find symbol even though it's there.

    I am having an issue compiling a java class in oracle. I have a java class that will run an executable. I want to call that java class from a difference class and when I try to compile that class, it fails with Cannot Find Symbol. This is what errors

  • How to Run Swing in Browser

    Hi frnds I gotta a Problem in swing.I want to run my swing in Browser.I have tried it with JApplet.But i can execute it only in Console.using appletviewer <filename>.html how to run it in browser. Please Help Me..

  • Hiding the code

    Hi All, Can anyone tell me how to hide the code of a report from the user? I know that if I goto the program's attributes and change its STATUS to SYSTEM PROGRAM, it cannot be debugged, but I have been told that tweaking the debugger will still allow

  • Check mark not showing after importing in Image Capture

    The check marks will show right after importing photos to a hard drive in Image Capture. However, after unplugging my iPhone and plugging it back in to import new photos, the check marks are not showing up for the photos I have already imported. One