Using dll in a procedure

Hi All !
Is there some way to use a dll file in the oracle stored procedure?
Any Oracle supplied Package?
and can i have a site for the material regarding "Oracle Supplied PL/SQL Packages Reference"

To phrase it more clearly. To implement such a logic is probably many times more complex then simply reprogramming your vb.net logic in pl/sql. Or changing your logic flow from client to server, instead of from server to client (as you want it to be).
However here are some documents to start reading.
Data cartridges: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14289/dciroadmap.htm#sthref146
Using Websphere Message Queing Gateways: http://download.oracle.com/docs/cd/B19306_01/gateways.102/b16216/intro.htm
Using Heterogenous Connectivity: http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm

Similar Messages

  • Netsnmpj.dll: The specified procedure could not be found

    Hi guys,
    I am developing with netsnmpj. I have downloaded the netsnmpj tookit from http://sourceforge.net/projects/netsnmpj/files/.
    When I use the example of the netsnmpj in Eclipse, it can be compiled successfully. But when I run it, the following errors appeared.
    I have added the netsnmpj.dll to the jdk location, but why it shows "The specified procedure could not be found"?
    I have spent one day on this issue.
    Need your help and many thanks.
    java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_17\jre\lib\System\netsnmpj.dll: The specified procedure could not be found
    ## Could not find the netsnmpj library.
    ## Please check your java.library.path setting.
    ## Currently java.library.path is set to:
    ## C:\Program Files\Java\jdk1.6.0_17\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Rational\Rose RealTime\bin\win32;c:\Program Files\Rational\common;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jdk1.6.0_17\bin;C:\Program Files\Java\jdk1.6.0_17\jre\bin;C:\Python;C:\Ant1.7.1\bin;C:\usr\bin;C:\Program Files\Java\jdk1.6.0_17\jre\lib\System
    ##

    It says it can't find the library. Best to believe it.
    Write a stand alone app that does nothing but loads the dll. Verify that no other dependencies exist by printing the stack trace.
    I have added the netsnmpj.dll to the jdk locationProbably a bad idea.

  • Can we use return statement in procedure?

    Can we use return statement in procedure or we can use more than one return statement in procedure?

    HamidHelal wrote:
    NOReally? Did you at least test it? You can use RETURN in procedure or in anonymous PL/SQL block. The only restriction is you can't specify return value:
    SQL> begin
      2      dbms_output.put_line('Before return');
      3      return;
      4      dbms_output.put_line('After return');
      5  end;
      6  /
    Before return
    PL/SQL procedure successfully completed.
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          dbms_output.put_line('Before return');
      6          return;
      7          dbms_output.put_line('After return');
      8  end;
      9  /
    Procedure created.
    SQL> exec p1;
    Before return
    PL/SQL procedure successfully completed.
    SQL> begin
      2      dbms_output.put_line('Before return');
      3      return 99;
      4          dbms_output.put_line('After return');
      5  end;
      6  /
        return 99;
    ERROR at line 3:
    ORA-06550: line 3, column 5:
    PLS-00372: In a procedure, RETURN statement cannot contain an expression
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          dbms_output.put_line('Before return');
      6          return 99;
      7          dbms_output.put_line('After return');
      8  end;
      9  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE P1:
    LINE/COL ERROR
    5/9      PL/SQL: Statement ignored
    5/9      PLS-00372: In a procedure, RETURN statement cannot contain an
             expression
    SQL> SY.

  • How can i use dlls for running rtc3?

    how can i use the dll libraries to use for the rtc3 software?

    amolchoudhary wrote:
    can anyone please help me???
    How? You provide almost no useful information.
    What is rtc3?
    Why do you think you have to use DLLs?
    What did you try so far that hasn't worked?
    What is it you want to accomplish?
    You see what you ask here is just about the same as if someone would ask you to tell them what screw he needs to fix his car.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Tax calculation in CRM using R/3 pricing procedure

    Hello Experts
    We are using R/3 pricing procedure to calculate list prices in CRM.
    The condition record for Taxes are maintained for condition type UTXJ in SD which is calling for tax procedure TAXUSJ and condition type JR1. 
    The records are maintained in FTXP.  This is the SAP Standard way of maintaining taxes if external tax software is not used.
    We have downloaded the condition records and condition types in CRM.  The tables have all the required records downloaded from R/3.
    When creating an order in Webshop the tax is not getting calculated.
    The pricing analysis shows that the condition record for UTXJ condtion type is met, but it is not showing the tax maintained for condition type JR1. 
    Have we missed any settings here? 
    If we are using R/3 billling does the TTE needs to be activated for calculating taxes in the webshop?
    If TTE needed to be used for calculating taxes, what are the settings needed to be configured?
    Thanks in advance for the valuable advice.
    Sastri

    Hi Sastri,
    I am facing this problem with TAX Condition Records: Pricing error: Mandatory condition MWST is missing. I am using a R/3 pricing procedure correctly downloaded to CRM.
    You say that you have downloaded the condition records and condition types in CRM. SAP Library says 'Prerrequisites: You have downloaded the tax condition records from SAP ECC'.
    I don't know If my problem is caused because I haven't downloaded any Tax Condition Records. The fact is that I cannot determine which one is the Condition Object to download in R3AS.
    I would really appreciate if you or anyone could tell me which object you did use.
    thanks in advance,
    Pablo
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 12:30 PM
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 8:59 PM
    Solved!

  • Using spool in a procedure

    Hi,
    I've a package with 6 procedures.
    In one procedure I need to load the data into a flat file. The procedure contains only one select statement.
    example:
    procedure pro_test as
    select * from emp;
    end pro_test;
    Shell script is being used to call one procedure inside the package and that procedure is calling remaining procedures inside it.
    connected to database using sqlplus.
    Can anyone help me out how I can spool the select statement inside the procedure. Version of oracle is 11g.

    Hi,
    Why do you want to do
    SELECT  *
    FROM    table_name;
    inside the procedure?  Why not have your script run the procedure (without the query above), and then do that query afterwards, when you can use SPOOL to put the results in a file?
    If you really must write a file from a procedure, here's an example of how to use utl_file.
    First, SYSTEM (or some other user with the CREATE ANY DIRECCTORY system privilege) must create a directory, and grant privileges to use it.  For example:
    CREATE OR RPLEACE DIRECTORY  a_dir  AS 'C:\Foo\A_Folder';
    GRANT ALL ON DIRECTORY  a_dir  TO PUBLIC;
    Typically, SYSTEM does this once, and other people use it hundreds of times.
    You might create a file in that directory like this:
    CREATE OR REPLACE PROCEDURE  write_dept
    IS
        f  utl_file.file_type;
    BEGIN
        f := utl_file.fopen ('A_DIR', 'Dept.txt', 'W');
        FOR  r  IN  (  SELECT  *
                       FROM    scott.dept
        LOOP
            utl_file.put_line ( f
                              , TO_CHAR (r.deptno, 'FM00')
                                || ' '
                                || RPAD (r.dname, 15)
                                || r.loc
        END LOOP;
        utl_file.fclose (f);
    END  write_dept;
    SHOW ERRORS

  • Using dynamic value in procedure on column

    I want a PL/sql procedure to select the data from the column dynamically into a variable .
    My friend suggested its not possible in PL/sql ,its only possible in sql .
    What i want is when i execute the PL/sql procedure the a_1 must get the value of the data in the table,i do not want to use execute immediate in pl/sql.
    I create a table A
    create table A (a1 number,a2 number,a3 number);
    insert into a values (1,2,3);
    then i create a procedure
    create or replace
    procedure test_a (var IN number)
    as
    a_1 number;
    i number;
    z varchar2(5);
    begin
    if var=1
    then
    i:=1;
    elsif var = 2
    then
    i:=2;
    z:='A2';
    end if;
    SELECT 'a'||i into a_1 from a;
    end;
    Edited by: user536416 on May 13, 2010 4:03 AM

    I prefer reference cursors over execute immediate if I must do dynamic SQL (and have learned not to do it unless necessary - among other things dynamic SQL is hard to debug and maintain).
    The advantages to ref cursors are
    * execute immedate will only retrieve one row, ref cursors as many as you want
    * easier for me to build the query first, then execute it (though you can do this with execute immediate too) for debugging
    You can buiid the query dynamcially but have to be careful to make sure the select list matches the INTO clause on the fetch statements. Although the queries in the example below are hard coded I could have done something like
      v_command_c := 'select '||var1||', '||var2||' from '''||table_name||'''';
      open refcur for v_command_c;To randomize your column selection use something like the above with IF logic and a randomizer, possibly the DBMS_RANDOM package or a time extraction.
    Something like
    SET SCAN OFF
    SET SERVEROUTPUT ON
    DECLARE
      --define composite data types
      --reference cursor type - structure
      TYPE RefCursorType   IS REF CURSOR;
      --collection (index-by table) type - structure
      TYPE TablesTableType IS TABLE OF user_tables.table_name%TYPE
        INDEX BY BINARY_INTEGER;
      --define ref cursors to be used in BEGIN section
      UserTablesCursor RefCursorType;
      UserViewCursor   RefCursorType;
      --define actual index-by tables to be used in BEGIN section
      NamesTable TablesTableType;
      ViewsTable TablesTableType;
      --define internal procedures to be used in this script
      PROCEDURE ListItems(RefCursor IN RefCursorType,
        DataTable IN OUT TablesTableType
        ) IS
        Counter   INTEGER := 1;
        TableName user_tables.table_name%TYPE;
      BEGIN
        FETCH RefCursor INTO DataTable(Counter);
        Counter := Counter + 1;
        WHILE RefCursor%FOUND LOOP
          FETCH RefCursor INTO DataTable(Counter);
          Counter := Counter + 1;
        END LOOP;
      END; --ListItems;
      PROCEDURE WriteItems(DataTable IN TablesTableType) IS
      BEGIN
        FOR i IN 1..DataTable.count LOOP
          dbms_output.put_line(DataTable(i));
        END LOOP;
      END; --WriteItems;
    BEGIN
      OPEN UserTablesCursor FOR
        SELECT table_name
          FROM user_tables;
      ListItems(UserTablesCursor,NamesTable);
      CLOSE UserTablesCursor;
      dbms_output.put_line('user_tables');
      dbms_output.put_line('--------------');
      WriteItems(NamesTable);
      --second defintion & set of calls
      dbms_output.put_Line(CHR(13));
      OPEN UserTablesCursor FOR
        SELECT view_name
          FROM user_views;
      ListItems(UserTablesCursor,ViewsTable);
      CLOSE UserTablesCursor;
      dbms_output.put_line('user_views');
      dbms_output.put_line('--------------');
      WriteItems(ViewsTable);
    END;
    /Edited by: riedelme on May 13, 2010 5:44 AM

  • How to use dll function in JDeveloper?

    I want to use function in dll to develope my application,but
    I can't find how to do that in the JDeveloper document.
    null

    You have to use the Java Native Interface to use dlls. The JNI
    tutorial at http://java.sun.com/docs/books/tutorial/native1.1/
    walks you through the basics and provides a sample too.
    Hope this helps.
    Regards,
    yinjun (guest) wrote:
    : I want to use function in dll to develope my
    application,but
    : I can't find how to do that in the JDeveloper document.Who can
    : give me an answer? Thanks a lot in advance.
    null

  • How to use dll in Labview ?

    I compile this code to dll file with VC++2010 filename is test_dll.dll .
    #include "stdafx.h"
    #include <iostream>
    #include <Windows.h>
    using namespace std;
    int main(int a){
        cout << "Test dll...............\n";
        return a;
    After that, I put Call Library Function node in editor and double click Call Library Function node. I browse test_dll.dll into Library name or path and set function prototype to int32_t main(int32_t a); but it show error Call Library Function Node 'test_dll.dll:main':function not found in libraly. How to use dll in Labview ?  And I have more question is what is differrent from Tools -> Import -> Shared Library(.dll) and use Call Library Function node.
    Solved!
    Go to Solution.

    The issue you are having is that LabVIEW is not capable of using C++ DLLs directly. It only handles C DLLs. This does not mean that if you you cannot use the DLL if it's compiled with the C++ compiler as opposed to the C compiler. Rather, it means that you must take extra steps in order to use it from LabVIEW. The primary issue is that of name mangling or adornment. This is discussed here: http://zone.ni.com/devzone/cda/tut/p/id/4877. Basically you need to prepend extern "C" in front of your prototypes in your header files. I would also suggest reviewing this article: https://decibel.ni.com/content/docs/DOC-14564.

  • How to use .dll compiled in Delphi in Java?

    Can anyone provide me information how to use .dll compiled in Delphi in Java? The .dll Delphi program may be non-OOP program.

    Hi
    If You want to write anything in PASCAL then simply write JNI code in C++ and call functions from this DELPHI DLL, but remember about changing the order of parameters etc when You call it. I had exactly the same problem, but it is possible, and we succeed.
    You will need exact description of input parameters required by PASCAL functions and of output parameters. Then construct in C++ objects wchich looks in memory exacly the same as they will look if You will be using PASCAL. Then PASCAL function will interprete this area in memory as known structure and will run.
    Maciek

  • How to Use DLL Function in Java Applet

    Hi all,
    I have been assigned a task to develop java applet. The problem is, I need to use DLL functions in my applet to read records. Could you pls anyone guide me how to interface DLL and applet to read records with sample code?
    I'm using JDK 1.5.0_06 and Windows XP OS. thanx..
    best rgds,
    jpdbay

    You will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html

  • Using DLL functions created with LabVIEW 6i in CVI 4.0.1

    I want use SQL functions from LabVIEW 6i in LabWindows/CVI 4.0.1. Building DLL with this LabVIEW-functions was succesfull, but after using DLL in CVI project and run, error message was generated: FATAL ERROR : LABVIEW.LIB was not called from a LabVIEW process. Can you help me? In attachment are VIs and build script for this DLL.
    Attachments:
    DLL.ZIP ‏24 KB

    The SQL toolkit appears to be an ActiveX program. Why not call the objects with activeX in CVI directly?
    There are several hits for labview.lib on ni's site. Goto http://search.ni.com/?col=alldocs&layout=TechResources&ql=a
    and search for labview.lib.

  • Subreport using the same Stored Procedure

    I have a main report and a subreport that uses the same stored procedure. The stored procedure has 12 parameters and what I want to avoid is the user having to enter the same parameter values twice. When I created the subreport I put in the parameters + one field, the employee id field so that I could just test it on one employee.
    After I entered the subreport into the main report, when I got to refresh the data, it's asking for params for BOTH reports. Is there any way to get around this? Because of the way the stored procedure returns the data, I had to create a subreport instead of just fitting it into one of the footers. I've looked at the subreport link and added the employee id as the key. When I ran it the first time, it returned the wrong date range on the sub.
    Help! this thing is Way passed due!!

    Right click on the sub report and choose change sub report links
    Top left pane contains your main report parameters use > to add
    In the bottom left corner of that dialog then scroll down until you see the corresponding sub report parameter
    Repeat for each parameter
    This should then take the main report params and pass into the sub report

  • Use of variable in Procedure

    I created a global variable that contains a result of a query.
    I used it in a procedure using SQL but when I run the prcedure I have the following error :
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
    Could you tell me how to use my variable ?
    My SQL Code is the following and I bolded the variable
    SELECT A.SESS_NAME ,
    A.SCEN_VERSION,
    A.SESS_BEG ,
    A.SESS_DUR,
    C.NNO,
    RTRIM(LTRIM(B.STEP_NAME)) TABLE_NAME
    ,SUM(C.STEP_DUR)
    , SUM(NB_INS) NB_INS
    FROM COUNT_TMP D , SNP_SESSION A , SNP_SESS_STEP B, snp_step_log C
    WHERE
    'PS_' || RTRIM(LTRIM(B.STEP_NAME)) = D.TABLE_NAME AND
    A.SESS_BEG >= TO_DATE( #DATE_BASCULE , 'DD/MM/YYYY') AND
    A.SESS_NO = B.SESS_NO AND
    B.SESS_NO = C.SESS_NO AND B.NNO = C.NNO
    GROUP BY A.SESS_NAME , A.SCEN_VERSION ,A.SESS_BEG ,A.SESS_DUR, C.NNO ,B.STEP_NAME
    ORDER BY A.SESS_NAME , A.SCEN_VERSION, C.NNO
    Thank you
    Meapri

    Thanks a lot it did not fail.
    Now I am going to check if my procedure does something.
    Steps to use a variable resulting from a query in a procedure. ( In my case I used a alphanumeric variable )
    1) I declare a global Variable My_Variable. I chose
    - type 'Alphanumeric'
    - default value SELECT TO_CHAR(DATE_LAST_PROCESS) FROM PS_S1_ODI_BASCULE
    - action 'Dernière valeur'
    - I refresh my variable by running the query on the RDBMS
    2)In the procedure I refer to my variable by writing '#My_Variable'. My SQL Code becomes
    SELECT A.SESS_NAME ,
    A.SCEN_VERSION,
    A.SESS_BEG ,
    A.SESS_DUR,
    C.NNO,
    RTRIM(LTRIM(B.STEP_NAME)) TABLE_NAME
    ,SUM(C.STEP_DUR)
    , SUM(NB_INS) NB_INS
    FROM COUNT_TMP D , SNP_SESSION A , SNP_SESS_STEP B, snp_step_log C
    WHERE
    'PS_' || RTRIM(LTRIM(B.STEP_NAME)) = D.TABLE_NAME AND
    A.SESS_BEG >= TO_DATE( '#DATE_BASCULE' , 'DD/MM/YYYY') AND
    A.SESS_NO = B.SESS_NO AND
    B.SESS_NO = C.SESS_NO AND B.NNO = C.NNO
    GROUP BY A.SESS_NAME , A.SCEN_VERSION ,A.SESS_BEG ,A.SESS_DUR, C.NNO ,B.STEP_NAME
    ORDER BY A.SESS_NAME , A.SCEN_VERSION, C.NNO

  • How to Know one condition Type (PR00) used in which pricing procedures

    Hi Friends,
    I have 20 pricing procdures I need information that condition type PR00 is used in which pricing procedures.
    by help of
      any report
      any table etc
    Thanking you
    Arun

    Dear Customer,
    in standard there is no report available for your requirement.
    In this case you can only create your own selection report therefore.
    regards
    Claudia

Maybe you are looking for

  • When I create a new mailbox in mail.app, the mailbox does not appear in the list of mailboxes

    I am trying to create a new mailbox in mail.app, but it never appears in the list of mailboxes. This USED TO WORK.

  • Newb here, need help! just check out what i have, make reccomendations please!!

    Windows xp 32-bit, 4 gigs ram, dual sli 7200 nvidia cards, 60gb internal hardrive, 1.5 terabyte external hard drive (brand new, very empty) Recorded 24p and 60i on a Canon XL-2 (miniDV) IEEE 1394 firewire connected from pc to uploading device. Unfort

  • UK online number not working

    Hi, I purchased an online UK number on 15/03. It has yet to work. Sometimes I get a 'broken' ring tone. Other times I get a message saying "We're sorry. There is currently a high demand for this destination".  I have chnaged my privacy settings as pe

  • CUCM 9.0 nod license

    Hi, Since some of 8.x versions there is no need to buy nod license for each additional node in cluster. But it's still need to be ordered even with 0$ price. Is there same trouble in 9 version or that trouble was definately solved with it's new ELM?

  • HP P2015d - every few hours has no response

    Hi I have HP p2015d printer. It works fine until few days ago. When I print document, it had no response. I try to change USB cable or re-install printer drive. It doesn't help. So everytime I have to turn off and on the printer. it only last half da