Publish java feature?

TOAD has a "Publish Java to PL/SQL" feature that automatically generates the PL/SQL wrapper code for Java Stored Procedures. Does SQL*Developer have any functionality like this? If not, are there plans to include it in the future?

No, but you can request it at the announced SQL Developer Exchange.
Regards,
K.

Similar Messages

  • OS Commands not executing through published java procedure... :(

    Hello all :)
    Im trying to get a PL/SQL block to delete a file out in the OS. Theres plenty of examples out there and the one I got came from burleson consulting, and incorporates a java method and a call to java wrapped in PL/SQL.. after all suggested grants, using the procedure yields no result. Here is the source code
    -- java procedure used to execute OS command
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    if (isWindows()) {
    finalCommand = new String[4];
    finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    else {
    finalCommand = new String[3];
    finalCommand[0] = "/bin/sh";
    finalCommand[1] = "-c";
    finalCommand[2] = command;
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_in = new BufferedReader(new
    InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println(buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process output.");
    ioe.printStackTrace();
    }).start();
    new Thread(new Runnable() {
    public void run() {
    try {
    BufferedReader br_err = new BufferedReader(new
    InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println(buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process error.");
    ioe.printStackTrace();
    }).start();
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    public static boolean isWindows() {
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
    return true;
    else
    return false;
    -- PL/SQL wrapper to publish java method.
    CREATE OR REPLACE PROCEDURE host_command (p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    these are the grants I am issuing on install:
    BEGIN
    DBMS_JAVA.grant_permission ('LOANADMIN', 'java.io.FilePermission',
    '<>', 'read ,write, execute, delete');
    DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor', '');
    DBMS_JAVA.grant_permission ('LOANADMIN', 'SYS:java.lang.RuntimePermission',
    'readFileDescriptor', '');
    END;
    -- and this is the block I am using to execute the OS command..
    1 BEGIN
    2 host_command (p_command => 'DEL C:\PRETEND.TXT');
    3* END;
    SQL> /
    PL/SQL procedure successfully completed.
    Everything returns as successfully completed. But the file is not deleted from the server. I know im missing some kind of privilege. Can anyone help me? Thanks
    Mo

    Burleson consulting...
    Says it all. Exposure on the Net doesn't mean quality.
    Burleson code usually has not been tested, is not robust, and quite often doesn't work.
    Why didn't you implement run_cmd, as suggested earlier?
    THAT works!
    Sybrand Bakker
    Senior Oracle DBA

  • Getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep

    getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep while deploying persistance with ejb sample application into cloud. can any one please tell me why i am getting this?

    Hi Goutham,
    I am facing the same issue. Please let me know how you have resolved it.

  • [Integrated SOA Gateway] Publish Java based web service

    Welcome!
    Lately I have been trying to publish Java based web service through Integrated SOA Gateway. The documentation states that:
    +"Custom interface definitions can be created for various interface types including custom interface definitions for XML Gateway Map, Business Event, PL/SQL, Concurrent Program, Business Service Object, Java (except for Java APIs for Forms subtype) and Composite Service for BPEL type."+ (Integrated SOA Gateway Developer's Guide Release 12.1, "Creating and Using Custom Integration Interfaces")
    After familiarizing myself with $FND_TOP/bin/irep_parser.pl and $FND_TOP/bin/FNDLOAD tools, I have started coding my POJOs. Initially I have come up with three classes - request/response objects and service implementation. Service implementation has been annotated with "@rep:X" descriptors according to "Java Annotations" section of the documentation. While invoking $FND_TOP/bin/irep_parser.pl I have received errors about class resolution. My solution was to transform request and response types to static inner classes. This way I ended up with one *.java source file (see below).
    * Sample ISG Service.
    * @rep:scope public
    * @rep:product AP
    * @rep:displayname My Custom ISG Service.
    public class MyService {
    public static class Request {
    private String id;
    public void setId(String id) {
    this.id = id;
    public String getId() {
    return id;
    public static class Response {
    private String data;
    public void setData(String data) {
    this.data = data;
    public String getData() {
    return data;
    * Sample operation.
    * @param request Request Object.
    * @return Return Object.
    * @rep:displayname Test operation.
    * @rep:category BUSINESS_ENTITY SAMPLE_SERVICE
    public MyService.Response testOperation(MyService.Request request) {
    MyService.Response response = new MyService.Response();
    response.setData("Some Data");
    return response;
    ILDT file has been successfully created and uploaded. However, I could not see the "Generate WSDL" button on Integrated Repository website. Is there any particular interface or superclass that my service implementation should extend? I have reviewed "PurchaseOrderSDO" example posted in the developer's guide (page 407), but I couldn't come up with a working solution. Could you provide me with more detailed tutorial/example? Which documentation sections should I read again?
    After searching through forum, I have spotted $FND_TOP/bin/soagenerate.sh script, and thought that lack of "Generate WSDL" button was an EBS defect. After running the script, I have received an error:
    Error in Service Generation.
    ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
    oracle.apps.fnd.soa.util.SOAException: ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
         at oracle.apps.fnd.soa.provider.wsdl.ArtifactsFactory.getArtifactsGenerator(ArtifactsFactory.java:55)
         at oracle.apps.fnd.soa.provider.wsdl.WSDLGenerator.generateServiceWSDL(WSDLGenerator.java:128)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSOAService(ServiceGenerator.java:75)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSingleService(ServiceGenerator.java:88)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.main(ServiceGenerator.java:419)
    I would be grateful for any suggestions. Has anyone published Java based web service through ISG?
    Best regards,
    Lukasz

    I tried the following as per Oracle support and able to generate the wsdl though, but not invoke the webservices.
    1. Applied the patch 8607523
    2. Took the translator.jar file from the patch 8857799 and replaced the current translator.jar file
    3. Deploy the adapters.
    $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp -applicationname=pcapps
    -oc4jpass=welcome -runautoconfig=No

  • BI Publisher Java API not displaying Barcode in PDF Report

    Hi Team,
    I have used BI Publisher java API in my ADF Application to generate PDF reports. It is not displaying barcodes in the PDF Reports. I have included Code 39 ttf file in my java home as well. Please let me know if any other configuration needs to be done.
    I am using jdev version 11.1.2.0.0. Please help me out if anyone knows the solution to this problem.
    Thanks in advance,
    Kavitha

    {forum:id=245} is the BIP forum.

  • Unable to upload photos to flickr using Lightroom 4.4 publish service feature

    I post process my images through LR and for several years published images to Flickr via Publish Services feature in LR.  The current version is LR4.4.  In the past two weeks I have been unable to publish new images on Flickr or update previously published images.  Instead, I received the following explanation:
      Can’t update this collection [ie., the Flickr collection in Publish Services]:
      An internal error has occurred: Error Domain=NSXMLParserErrorDomain Code=4 "Line 1: Document is empty
    " UserInfo=0x600010866bc0 {NSLocalizedDescription=Line 1: Document is empty
    A blog search shows that this problem has been reported for several years, but I have found no instruction from Adobe or Yahoo that provides a fix.  Thanks.  David Hawkins.  [email protected] 

    I have a friend who also can't get Lighroom's Publish Service to work with flickr. I don't use flickr but would suggest you try Jeffrey Friedl's Export to Flickr Lightroom plugin. I have used his plugins successfully to publish to other photo sites.

  • Not able to see 'sharepoint publishing infrastructure' feature to activate

    i m trying to activate publishing infrastrucure feature in my top site . but it is never present there. i m trying team site and i tried on one publishing site even then i can not find this feature . pls someone suggest me whats wrong

    The Publishing Infrastructure feature is a site collection scoped feature. Go to the root level of your site. Click on Site settings -> Site Collection administration -> Site Collection feature. Here you should be able to find the feature. Please note
    that Publishing feature is not available in SharePoint foundation. An alternative to it is available here:
    https://spf2013publishing.codeplex.com/
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.

    Hi All,
    I am trying to activate the Publishing feature for a SharePoint website using a custom Site Definition File. The problem I am getting
    is when I try to use the custom site template I get an error message:
    New-SPSite : The SharePoint Server Publishing Infrastructure feature must be activated at the site collection level before the Publishing feature can be activated.
    The custom
    Site Definition File snippet is show below:
    <?xml
    version="1.0"
    encoding="utf-8"?>
    <Project
    Title="SiteDefinition1"
    Revision="2"
    ListDir=""
    xmlns:ows="Microsoft
    SharePoint"
    xmlns="http://schemas.microsoft.com/sharepoint/">
      <NavBars>
      </NavBars>
      <Configurations>
        <Configuration
    ID="0"
    Name="SiteDefinitionDelegateControls2">
          <Lists/>
          <SiteFeatures>
            <!--Document
    Set-->     
            <Feature
    ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}"
    Name="FeatureDefinition/15/3bae86a2-776d-499d-9db8-fa4cdc7884f8"
    />
            <!--Publishing
    Prerequisites-->     
            <Feature
    ID="{a392da98-270b-4e85-9769-04c0fde267aa}"
    Name="FeatureDefinition/15/a392da98-270b-4e85-9769-04c0fde267aa"
    />
          ...Other Site Features
          </SiteFeatures>
         <WebFeatures>
            <!--2
    Publishing Web-->
         <Feature
    ID="{94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb}"
    Name="FeatureDefinition/15/94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb"/>
         ... Other Web Features
          </WebFeatures>
          <Modules>
            <Module
    Name="DefaultBlank"
    />
          </Modules>
        </Configuration>
      </Configurations>
      <Modules>
        <Module
    Name="DefaultBlank"
    Url=""
    Path="">
          <File
    Url="default.aspx">
          </File>
        </Module>
      </Modules>
    </Project>
    I hope you can help
    Colin

    As the error says.  The Publishing Infrastructure feature must be activated at the Site Collection level where you are creating a new site PRIOR to turning on the Publishing feature.  So if you are trying to use this site definition to create a
    new Site Collection then its not going to work.  If you are trying to create a sub site then make sure that Publishing Infrastructure is enabled in the site collection before trying to create a sub site with this site definition.
    Internally Microsoft does this for the Publishing Portals using custom code.  Here's an article that discusses how to do it in SharePoint 2010.  
    http://msdn.microsoft.com/en-us/library/office/gg615465(v=office.14).aspx
    Compare what's in the article to one of the Publishing templates available out of the box in 2013 and you should be able to find the assembly that is used to load the Publishing features.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?

    Docker is getting huge attention but most consider it not ready for production.  Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?
    Solaris containerization has been battle tested in production for many, many years.

    You need to understand how IPMP is used within Sun Cluster. Start reading at
    http://docs.sun.com/app/docs/doc/819-2968/6n57jmghj?a=view and
    http://docs.sun.com/app/docs/doc/819-2969/6n57kl141?a=view
    for a brief description. In a nutshell - the IPMP group is providing availability on the interface level for each node, so that a single NIC failure is not resulting into a service loss.
    The IP adresses you configure directly (ie. via /etc/hostname.* setup) are always considered local to a given node.
    In order to configure highly available IP adresses, which move between nodes and which should be used for the application you make highly available, you must use the SUNW.LocgicalHostaname or SUNW.SharedAdress resource types. Have a look at
    http://docs.sun.com/app/docs/doc/819-2974/6n57pdjtt?a=view on how to configure them.
    Greets
    Thorsten

  • Can't publish java xml stored procedure

    I have written a java class to return values from the database as XML using the XSU, and am attempting to publish the class as a stored procedure. I have successfully created other java stored procedures, but am continually getting the following error on this one:
    ORA-29531: no method getItems in class foo/bar/Inbox
    To illustrate the interface which I am trying to implement, snippets from the java class and the Oracle package follow:
    ===========================================
    Java class:
    package foo.bar;
    import oracle.sql.CLOB;
    import other.stuff;
    public class Inbox {
    public static void getItems(int userID,
    CLOB[] xml)
    ===========================================
    Oracle package spec:
    PROCEDURE getItems(user_id IN PLS_INTEGER,
    buf IN OUT NOCOPY CLOB);
    Package body:
    PROCEDURE getItems(user_id IN PLS_INTEGER,
    buf IN OUT NOCOPY CLOB)
    AS LANGUAGE JAVA NAME
    'foo.bar.Inbox.getItems(java.lang.Integer,
    oracle.sql.CLOB[])';
    ===========================================
    I originally structured the class to return the CLOB, but altered the structure to handle the CLOB as an IN OUT parameter so that the NOCOPY option modifier could be used, as suggested in S. Muench's book. I was surprised to hear that Oracle creates an in-memory copy of the return value from a function (wish I'd known this before).
    All suggestions appreciated.
    null

    When I use JDeveloper's automatic Java Stored Procedure publishing feature, I get a PL/SQL spec that looks like this:
    CREATE OR REPLACE PACKAGE EXPERIMENTALWORK
    AUTHID CURRENT_USER AS
    PROCEDURE GETITEMS ("userID" IN NUMBER,
    "xml" IN OUT CLOB)
    AS LANGUAGE JAVA
    NAME 'foo.bar.Inbox.getItems(int, oracle.sql.CLOB[])';
    END EXPERIMENTALWORK;You still have to add the NOCOPY by hand, but perhaps the int versus java.lang.Integer is significant?

  • Need help on XML Publisher Template features

    Hi,
    We have a requirement to develop an Invoice Register report to display the invoices for a period. Details of each Invoice and Amount needs to be displayed in a single line. At the bottom of each page we have to display running total of the Invoices displayed till that page. At the beginning of each page we have to display the total amount of Invoices displayed in the previous page.
    We had developed the report using Reports Builder and registered concurrent program with output type as PDF. We are working in Spanish environment (UTF-8 character set). The report is working properly and producing output as required. But Spanish characters appear as junk character on the report. From Metalink Notes 443778.1 and 338990.1, I understand that PDF output in UTF-8 character set is not supported. We need to use XML Publisher to generate the PDF output.
    We have developed .rtf template. It is generating PDF output and Spanish characters appearing properly. But we are not able to get the running total at the bottom of each page or total of previous page amounts at the beginning of each page. In the output from Reports Builder, we could use various page level options (like reset at page level, etc.) to achieve the requirement. But in the template generated using .rtf, I do not have such options.
    I am not sure if there are advanced features in .rtf template to achieve the requirement. Could anyone please advise me how I can achieve the requirement? It would be great if you could provide me some reference.
    Thanks and Regards,
    Nabendu

    Hi Nabendu.
    BI publisher does have the option of showing a running total in PDF format usign a RTF template. If you look up the advanced rtf samples provided with the BI publisher plugin there is one example to show running totals, with the previous page total at the top.
    you can find this located on your PC where the Word Plugin is installed. C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\samples\RTF templates
    replace C:\ with the drive leeter of the drive where your desktop plugin is installed
    Hope this Helps,
    Domnic

  • Oracle XML Publisher Java API's showing arabic characters as question marks

    Hi All,
    I have created a custom xml publisher report. All the setups in xdo.cfg and the fonts have been installed. When i run the report as concurrent program using the XDODTEXE as the executable this report executes fine displaying the arabic characters in the PDF output.
    I have integrated this xml report to a OAF page where am getting the output of the arabic characters as ???????
    Following is the java code i have used to generate the blob for the xml publisher report.
    pageContext.writeDiagnostics(this,"Inside process Template",4);
    AppsContext appsContext = ((OADBTransactionImpl)pageContext.getRootApplicationModule().getOADBTransaction()).getAppsContext();
    String applicationShortName = dataDefApplication;
    String dataSourceCode = dataDefCode;
    OutputStream os = new ByteArrayOutputStream();
    try {
    DataTemplate dataTemplate = new DataTemplate(transaction.getAppsContext(), dataDefApplication, dataDefCode);
    //Get Parameters
    ArrayList parameters = dataTemplate.getParameters();
    //set Parameter Values as ArrayList of oracle.apps.xdo.dataengine.Parameter
    Iterator it = parameters.iterator();
    while (it.hasNext())
    Parameter p = (Parameter) it.next();
    pageContext.writeDiagnostics(this,"Processing Parameters "+p.getName(),4);
    if (p.getName().equals("P_AUCTION_HEADER_ID"))
    if(AuctionHeaderId != null)
    p.setValue(AuctionHeaderId);
    else
    p.setValue(null);
    dataTemplate.setOutput(os);
    dataTemplate.processData();
    System.out.println(os.toString());
    } catch (SQLException e) {
    System.out.println("SQLException occurred.");
    } catch (XDOException e) {
    System.out.println("XDOException occurred.");
    } catch(Exception e){
    System.out.println("Exception (other) occurred.");
    byte[] xmlb = os.toString().getBytes();
    BlobDomain blob = new BlobDomain(xmlb);
    return blob;
    Kindly let me if i had missed something.
    Thanks
    Anoop

    On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
    If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
    رقم الموظ�
    If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
    ÑÞã ÇáãæÙÝ
    Do any of you know what these characters are?
    Thanks for any insight.

  • BI Publisher Java Report Refresh

    Hi,
    I am new to this forum and i don't know if this is the correct place to post my query. Please redirect me if I am in the wrong forum.
    I am relatively new to BI Publisher and xmlpserver, and I need to develop a Java software to refresh a lot of reports and export them in PDF and Excel formats. If this is possible then please redirect me to the correct resource(s) or tutorials.
    Thank you for reading this...

    This is the OBIEE forum so it's best for OBIEE/BIP related questions. If it is a purely BIP question then the BIP forum is probably a better place for it as there are more BIP experts there than here...
    BI Publisher

  • Java features

    Hello,
    I would to know if this extract, written in 2004, is still topical with the current version of Java.
    Delegates and indexers
    The Java language doesn't have a construct directly equivalent to a C# delegate. You can mimic delegate functionality by declaring and implementing an interface with a single method definition.
    The Java language doesn't have indexers either; you'd need to write them as regular class methods.
    Operator overloading
    The Java language doesn't allow operator overloading (a feature of C++ that made its way into C#). You easily can write methods to mimic the behavior of the overloaded operators.
    Unsafe mode
    C#'s unsafe mode lets you use pointers and pin blocks of memory in order to circumvent garbage collection. The Java runtime itself makes extensive use of pointers, but the Java language has no pointers and no equivalent of unsafe mode. This is in keeping with the Java platform's "Write Once, Run Anywhere" philosophy, which lets you safely avoid platform dependencies, memory leaks, and "runaway" code.Thank you in advance for any feedback.
    Regards,
    mathmax
    Edited by: mathmax on Sep 30, 2008 9:09 PM

    These points are still correct for [Java SE 6|http://java.sun.com/javase/6/].

  • Oracle Database 2003 Beta Program: Java features

    We are currently recruiting for the Oracle Database 2003 Beta Program, including new Java in the database features. To learn more about this program, including how to apply, send e an email @ [email protected]
    Kuassi Mensah

    Hi, I intend to enroll for the Oracle BI 10G course, and need to study and see what are the eligibility criteria for it?
    Would appreciate if you can get back directly on my email [email protected]
    Intending to enroll and study for this . Thanks for your help
    Abhishek

Maybe you are looking for

  • Price analysis by material type

    Hi Gurus, is there a tcode that would include a price analysis for materials over time.  It should be able to be sorted by supplier, material type & material group.   The main objective is to follow the price trend over time Thanks Anusha

  • Why do i have 2 calendars icloud on my mac

    with do I have two calendars icloud on my mac

  • Previewing Linked photos before publishing

    I have hyperlinked my photos on my iWeb site that I am building... however, when I click on them to see the enlarged photo, I do not get any results. Please advise on the correct way to do this. Also, how do I preview my page, before publishing it?

  • "Unexpected Error" when I try to save as a PDF or export my form.

    I spent 3 days creating a complicated form in Forms Central (and I'm SO not happy about that). Now, when I try to export the form or save the form as a PDF, I get an unexpected error. I wasn't happy with this tool before, but now I'm ready to scream.

  • After 2 years Premiere Elements 9 not working

    I bought a Dell desktop in 2012 and it came with Premiere Elements 9 installed.  Apart from some freezing and shutting down problems, the program has worked fine.  Just recently, however, the program stopped working.  I can get to the home screen, bu