How to call external C/java code in pl/sql or sql?

Mr President

I'm a newbie, but I want to know how to call the external C/java code in pl/sql or sql?

Embedded SQL to Oracle environment is called Pro * C.

Tags: Database

Similar Questions

  • How to call external functions without one. DLL (just using a.) H and. LIB file)?

    Hi all

    in fact, I am facing difficulties on how to get an external function is called in CVI (Version 2009).

    I was delivered with a. H file and a. LIB file to call an external function of my project CVI. The. H file looks like this:

    void exportedFunction(double *parameter);
    

    As far as I know, the external function was written with MS Visual C++ 6.

    So, I tried to link statically to the al extern like this function:

    -Add the. H file and the. LIB file to the CVI project

    -#include the. Folder H when I needed to call the external function

    -do the external function call

    During construction I get unresolved CVI external function call error, so this seems not work.

    I did some research autour and stood up with two possible problems. Maybe one of you can help me get a bit further and do work things out.

    (1) of the code of the 'real' function inside the DLL file that was not delivered to me. Or y at - it a way to get concrete results (calling external functions) with just one. H and a. LIB file (with none. Included DLL file)?

    (2) the external function does not export according to the rules of Style 'C '. The signature of the function in the. H file shows some things don't like

    extern "C" __declspec(dllexport) void __stdcall ...
    

    Or maybe it's a combination of these two issues (missing. DLL + bad export style function)?

    I guess I could get around the incorrect service export style when I managed to write a wrapper around the original function that actually uses Style C exporters. But I guess I need to the. DLL file for this test as well.

    Thank you very much for your answers.

    Best regards

    Bernd

    There is no need for the stuff of dllexport. There is also the option of a static library without any DLL.  But the "extern"C"' is essential, because it forces the C++ compiler, which was probably used to compile the library to use the C calling convention.

    If you are unable to ask the library vendor to provide a version that was compiled using C calling convention is the way to write a wrapper with VC ++ 6 around this library that functions using C calling convertion reexports. Something like

    extern 'C' myfunc1 type0 (type1 arg1,...) {

    Back to func1 (arg1,...);

    }

    for each function, you must use.

    BTW. "unresolved symbol" is the error message from the linker, you can expect if you try to bind the C code against a generation of library with the C++ calling convention.

  • How to call external programs?

    I've seen people to call external programs through LabVIEW and was curious to know what functions you could use to do this.

    I'm sure that his works using one of the ActiveX or maybe 'open application reference .vi.

    Can someone tell me (or show me) a small example of how to open an external program (that is to say, excellent, Notepad, etc.) by programming

    HI Cory,.

    Take a look using the > examples > communicate with external Applications > ActiveX > Excel > Table write to XL.vi

    To take a step back and answer your Q in General.

    Required or possible methods to interact with external applications depends on of the external application and that she supported mechanisms.

    SysExec

    Used for tha programs can be called from a DOS command line.

    DCOM

    The app was to support this and that you are working with him to of peeks and pokes.

    ActiveX

    Only available on Windows, methods, and properties that depend on all of the app.

    .NET

    New version to interact with applications.

    Have fun!

    Ben

  • How to trigger an ActionListener JAVA code?

    Hello

    I have the button and the button has an ActionListener attached.

    I want to trigger the ActionListener from java code (no click in the interface).

    How can I do this?

    Thank you.

    I found the answer.

    save.doClick ();

  • How to call function of a process Page PL\SQL Javasrcipt

    Hello

    I have a javascript function say - function1 () defined in the Page header.
    I have a page PL\SQL process after the header.

    How can I call the javascript function - function1 () - of PL\SQL Page process.

    Thank you
    Deepak

    Hi Michael,

    I have a page PL\SQL process after the header.

    Since it's after the header (in the rendering phase) process, I think that this will call the JS? Please correct me if I'm wrong :-)

    See you soon,.
    Hari

  • How to change RedirectUrl by java code in service

    Hello world

    I have a new MY_WORKFLOW_APPROVE service.

    1. If the service successfully completes, I need to redirect the AAU to HOME_PAGE

    2. If the service does not properly complete, I need to redirect the AAU to Workflow My Page assignments

    Is it possible to change RedirectUrl by Java in my service? And how?

    Thanks, Martin

    Hello world

    The solution is very easy...

    Example:

    SerializableAttribute public class MyWorkflowApprove extends Service {}

    public void workflowApprove() {}

    My code... The result is error

    this.setRedirectUrl ("idcplg? IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = HOME_PAGE');

    }

    }

    Service definition:

    <>
    ucmcomponent. MyWorkflowlApprove
        49
        REDIRECT_TEMPLATE
        null
        null
        null
    3:MyWorkflowApprove:null

    Martin

  • How to call the character glyph code?

    Hello

    I have a new font added to the empty zone.

    I see a new character in the glyph. But if I don't see the call to the code.

    Naturally, I had run the script after changing the font.

    Please tell me the incorrect codes.

    Unicode ID = EF38

    <-no output.

    = This is code examples. =======================

    #targetengine session;

    main();

    main() {} function
    var l = new window ('pallet', 'test');
    var btnSize = [0,0,50,65]; Size of buttons
    var line, i, j, buttons is {};

    var p1 = w.add ("panel");

    var ed = p1.add ('edittext {active: true, preferredSize: [200, 30]} "");
    var charArr = [[0xEF38, "9"], [0x53ef, 'ga']];

    P2 var = w.add ("panel");
    line = p2.add ('group');

    for (i = 0; i < charArr.length; i ++)
    {
    buttons [i] = row.add ("button", btnSize, string.fromCharCode(0)) (charArr [i] [0]));
    the buttons [i].graphics.font = ScriptUI.newFont ("Helvetica", "", 40);
    the buttons [i] = .helpTip ("0" + charArr [i] [0] m:System.NET.SocketAddress.ToString (16) "") .toUpperCase ();
    }

    w.onShow = function() {}
    }

    w.Show ();
    }

    ============================================================

    Thank you.

    Hi K159,.

    AFAIK ScriptUI CC does not implement ScriptUIFont at all

    Apart from that, SURROUNDED of NUMBER NINE is U + 2468, so using 0 x 2468 should lead to

    If your system font supports this character. But I don't know any way using your "NoName-6" police custom in ScriptUI.

    @+

    Marc

  • How to call java code within OpenScript

    Hello

    How we can integrate a java code (externally written) inside OpenScript.

    Concerning

    Hello

    1. create a jar of your source code a.java file, for example a.jar
    2. in Openscript create a new script and then go to the Script menu-> properties-> Active Script Script->-> add JAR files
    3. Add the jar created in step 1
    4. then add the code mode code of your script - Java

    a myclass = new a();
    MyClass.b ();

    That's all.

    See you soon,.
    Jamie

  • How to call the filter PS in my own PlugIn MFC

    There are several filters in PS that I use frequently. But it's so bad to find a. I want to write a plugin so that I can see all the filters that I want in the same interface. I try. But when I called filter in my plugin, he always told me that something was wrong and the plugin can't do anything. Can someone tell me how to call from the PS code MFC called Plugin.My filter filter was subsequently. I don't know what's wrong. (ps: my English is so poor... I don't know if there is a syntax error. Sorry).

    Test PIActionDescriptor = NULL;

    SPErr error = kSPNoError;

    Result PIActionDescriptor = NULL;

    error = sPSActionDescriptor-> do (and test);

    sPSActionDescriptor-> PutEnumerated (test, 'GEfk', 'GEft', 'EOPS');

    sPSActionDescriptor-> PutInteger (test, keyEdgeThickness, 2);

    sPSActionDescriptor-> PutInteger(test,keyEdgeIntensity,6);

    sPSActionDescriptor-> PutInteger(test,keyPosterization,2);

    error = sPSActionControl-> Play (& result, eventPosterEdges, test, plugInDialogSilent);

    You can only use the routine to play in an Automation plugin. filters are for access to the pixels only. They can do what an Automation plugin.

  • How to call a custom service Oracle11g UCM in Java to another component code custom?

    I have two Oracle UCM UCMComponent1 and UCMComponent2 components. UCMComponent1 has several custom services. My requirement is that I want to call UCMComponent1 service customized in the java method UCMComponent2.

    Anyone have an idea how I can do this service personalized in the Java method call? I know how to call the existing service of the Complutense University of MADRID in Java method.

    Thank you!

    No difference to call a standard service.  Apply the same methodology.  Provide the parameters expected for the service and call it.

  • How to call trial task of custom Java code directly

    I'm a java code write Victorian where I want to call the process task directly "Delete user" resource AD. Then, I'll put this java class as part of a scheduled task.

    No API to IOM for this?

    Pls suggest.

    -Thank you

    This is why I told you that to see the API with care:

    You will have to pass256 in the first place and alternation task Instance key, to the second place.

    You're done!

  • How can I get the exit code of a script .bat for Java back to PL/SQL?

    When you call a .bat script, only the exit code 1 returns. How can I get 7 back to the PL/SQL in the code example below?

    C:\Users\pwatson\src\java > type vv.sql

    set echo on

    -call dbms_java.grant_permission ('SYSTEM', 'SYS:java.io.FilePermission', '< < all FILES > >', 'run');

    HOME @EXIT/b ECHO 7 > vv.bat

    TYPE of HOST vv.bat

    CREATE OR REPLACE AND COMPILE THE SOURCES NAMED AS VV JAVA

    import of java.lang.Runtime;

    public class VV

    {

    public static int execute()

    survey java.io.IOException, java.lang.InterruptedException

    {

    int exitCode = 0;

    Duration rt = java.lang.Runtime.getRuntime ();

    Process proc = rt.exec ("cmd.exe /C v.bat 1 > NULL 2 > ZERO");

    proc.waitFor ();

    exitCode = proc.exitValue ();

    return exitCode;

    }

    }

    /

    CREATE OR REPLACE FUNCTION JavaRunShellCommand

    RETURN NUMBER

    IN THE JAVA LANGUAGE

    NAME 'VV.execute () return oracle.sql.NUMBER;

    /

    DISPLAY ERRORS

    NUMBER VARIABLE n;

    CALL JavaRunShellCommand() IN: n;

    PRINT n

    DISPLAY ERRORS

    SELECT JavaRunShellCommand() AS R FROM DUAL;

    DISPLAY ERRORS

    HOST DEL v.bat

    OUTPUT

    It is strange that there are no errors. If the Java code does not work, I would expect an exception. Without an exception in the code handler, I expect to be propagated all the way to the top of the call stack and be displayed by the client. But there is no exception.

    So that means, in my view, that there is nothing wrong with the code Java itself. He made the appeal successfully to run this external process. The fact that the external process falls down, is not an issue/error in Java.

    If this is the case, then the first thing that comes to mind, is that the Oracle (oracle.exe) process that is currently running, runs as a service of the o/s. And that the service will try to run a command through the command shell script. There may be a security or problem access here that prevents the oracle.exe running as a service to do this.

  • How do the archiving of content through java code

    I need consignment content through java code.

    Summary of the problem: If someone send an email to a specific account this attachment automatically checkin to content server and the required metadata is read from the subject and message body.

    Now I have the problem that I'm not able to record of attachment to the content server. I have all the required metadata and the attachment that is extracted from an e-mail.

    Please someone help me, how I'm going to call the consignment through java code.

    Hello Deepak,

    Try the code below and let me know how it goes, I wrote all code example for you

    Note: When you find '<>> ', you need to write real values.

    import java.io.BufferedReader;

    import java.io.DataInputStream;

    Import oracle.stellent.ridc.IdcClientManager;

    import java.io.File;

    import java.io.FileInputStream;

    to import java.io.FileNotFoundException;

    to import java.io.FileOutputStream;

    import java.io.IOException;

    import java.io.InputStream;

    import java.io.InputStreamReader;

    Import oracle.stellent.ridc.IdcClient;

    Import oracle.stellent.ridc.IdcClientException;

    Import oracle.stellent.ridc.IdcClientManager;

    Import oracle.stellent.ridc.IdcContext;

    Import oracle.stellent.ridc.model.DataBinder;

    Import oracle.stellent.ridc.model.DataObject;

    Import oracle.stellent.ridc.model.DataResultSet;

    Import oracle.stellent.ridc.model.TransferFile;

    Import oracle.stellent.ridc.model.impl.DataObjectEncodingUtils;

    Import oracle.stellent.ridc.protocol.ServiceResponse;

    public class servicesTest {}

    The University Complutense of MADRID soldev3 connection string

    Private final public static String idcConnectionURL = "idc://UCM path";

    private public final static String username = "weblogic";

    public IdcClient getUCMConnection()

    throws IdcClientException, IOException {}

    ClientManager IdcClientManager = new IdcClientManager ();

    Customer IdcClient = clientManager.createClient (idcConnectionURL);

    UserContext IdcContext = new IdcContext ("username");

    customer feedback;

    }

    ' public void checkinFile (String Filename, String Filepath) survey IdcClientException, IOException {}

    System.out.println ("in the createUser method..");

    IdcClient client = getUCMConnection();

    DataBinder binding = client.createBinder ();

    System.out.println ("in the checkinFile method...");

    binder.putLocal ("IdcService", "CHECKIN_UNIVERSAL");

    binder.putLocal ("dDocTitle", ""> "");

    binder.putLocal ("dDocName", ""> "");

    binder.putLocal ("dDocType", ""> "");

    binder.putLocal ('dDocAuthor', 'sysadmin');

    binder.putLocal ('dSecurityGroup', 'Public');

    binder.putLocal ('xlanguage', ""> "");

    binder.putLocal ("dOriginalName", Filename);

    binder.addFile ("primaryFile", new TransferFile (new File (Filepath + Filename)));

    UserContext IdcContext = new IdcContext ("username");

    client.sendRequest (binder, userContext);

    System.out.println ("After checkinFile method...");

    }

    Public Shared Sub main (String [] args) throws IdcClientException,

    FileNotFoundException,

    IOException, Exception {}

    MAK servicesTest = new servicesTest();

    mak.checkinFile (">",">" ");

    }

    }

    Thank you

    MAK

  • How to create a BPEL Process task using java code

    Hello

    I created a BPEL process (for creating task), in which my requirement is that I need to create a task based on some inputs and assign it to the user in partucular and then get out of this flow.

    earlier, I felt that I will use the human task activity. but when I use that task will be created in the same process and proceedings will be stuck on there until human intervention (the BPEL process waits for the result.).

    is it possible that I can use Java activity and create tasks from java code, 'I know how to assign a specific user task. Please tell me.
    Abhishek

    Published by: abhishek on April 25, 2011 12:42 AM

    Hi Abhishek
    1. you can try this alternative approach and it should work.

    2. basically, most of the BPEL process eventually auto generated Web services (.) WSDL). When we create a BPEL process, everything we do is give diagram of input, output schema and creates a bpel process with the default operation named as "process" in all the old versions as up to 11.2 SOA (and maybe before). BUT SOA 11.3 from, we can create a process BPEL, with our own WSDL and our own scheme. There is no restrictions like having only a single operation named 'process', etc.. In any case, what I mean is, each BPEL process ends up as a WebService, with entry and exit of the payloads of XSD.

    3. from the JDeveloper itself, locate the .wsdl for your BPEL process under the Workflow project. Create a new project of Proxy customer service Web and generate a customer for this wsdl Web service proxy. This will create you Service, Port and JAVA classes equivalent payload theoretically in your case taskpayload.xsd with these 4 items you have. Ignore the full blown the HumanTask which has all the system elements and attributes of a task of bpel. All you need is to undertake a task with your own payload data. Create a simple Client Java (EJB or Servlet later to make more flexible). In this Java client, retrieve the Service object in the proxy and port. Then instantiate the java class that represents the payload. Set 4 values you want and set the user name, etc. You may need some adjustments for the setting of the user. Then the port invoke otherwise (go your java object here).

    Sample code snippet
    prepare the message for BPEL of appeal; Define the fields that can not be null
    MyPayloadRequest myPayloadRequest = new MyPayloadRequest();
    myPayloadRequest.setInitiator("");
    myPayloadRequest.setTitle("");
    myPayloadRequest.setEmployeeName("");
    myPayloadRequest.setEmpContact("");

    web service client Get for BPEL receive point and call: first generate client proxy
    MyBPELPProcess_client_ep serviceClient = new MyBPELPProcess_client_ep();
    MyBPELPProces proxy = serviceClient.getNewMyBPELPProces_port ();
    proxy. Process (myPayloadRequest);

    Please note that you can also use the SOA workflow API and the Manager back call personalized for this first task classes. In this class, you can have the methods of the interceptor, which is called each time a task is initiated, saved, Submit, approve etc etc (all events essentially). This gives you access to all the objects in a workflow with full charge blown. So you can always get the data you pass above and in this custom class, the value of the user, date/time etc..

    It's just a different approach you can try.

    Thank you
    Ravi Jegga

  • How to call an external web service to IOM?

    Hello

    I have a question on how to call a web service outside of the IOM to breast for example create user processes? How do we need to; With the adapter and task in the process?
    Any recommendations?

    Thanks in advance!

    Yes to the JavaTask'll tie you in this java code and java code, you can call your webservices

    Thank you

Maybe you are looking for

  • Firefox 8 will not hold its proxy setting

    I have to reset the proxy every time I launch Firefox 8 because I get the following message is displayed: The proxy server refuses connections Firefox is configured to use a proxy server that is refusing connections. Check the proxy settings to make

  • ThinkCentre m52 8113 upgrade to Windows 7 64 bit

    I have the specifications of the processor in this machine that says 64-bit. With Windows XP, I don't have full use of the 4 GB of Ram installed. Someone at - it successfully installed Windows 7 64-bit to use fully the 4 GB. I'll also be able to find

  • Possible tree CVI control without a mouse, using SW

    I received a CVI application that includes a panel with a section of tree control. The task I have to do is to try and automate the current software application to exclude the manual use of the mouse. Anyway is at the interface of a 'tree' by using a

  • Microsoft windows games

    Somehow all the games provided with the computer are deleted. How to make a comeback?

  • Can I be in the same partition Recovery and HP tools?

    My native HP with 4 partitions. However, I needed a partition to install Ubuntu. So I deleted the HP tools partition since I backed up files tools HP and knew I could get another copy of HP. However, I would like to know if it is possible to add HP t