StoredProcedure and Varchar2 input parameter...

hello,
I call stored procedure with Varchar2 input parameter a RefCursor output parameter. Procedure returns empty dataset.probably is not set input parameter correctly.I'm using 8i oracle database and client and ODP.NET in C#.
thank you
peter

Peter,
Check if you get the OracleRefCursor correctly from the
output RefCursor parameter.
If the OracleRefCursor is returned properly, called the OracleDataAdapter.Fill(DataSet dataSet, OracleRefCursor refCursor) method to fill the dataset.
Thanks
Martha

Similar Messages

  • Call a storedprocedure with CLOB input parameter gives ORA-24811 error

    Hi all,
         I am calling a storedprocedure from VB using ADO and OraOLEDB. Calling stored procedure as mention in OraOLED documentation.
         The procedure accepts a varchar and a CLOB parameter.
         While executing the store procedure its throw an error as “Error while trying to retrieve text for error ORA-24811”
         Then I executed a storeprocedure with only one CLOB out parameter. It is working fine.
         Oracle version is
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for Linux IA64: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
         O/S: Linux.
         OLEDB version 9.0.1.0.1
         But exact code working with
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 – Production
    O/S window 2003
    OLEDB version 9.0.1.0.1
    Can somebody help me on this?
    Regards,
    Mani
    Sample code of stored of stored procedure and VB function pasted below.
    StoreProcedure
    ============
    create or replace procedure xmltext (EmpName varchar2,EmpDetails CLOB)
    as
    begin
    insert into emptmp values (EmpName);
    end;
    VB function
    =========
    Dim Oracon As New ADODB.Connection
    Dim cmd As New ADODB.Command
    Dim param1 As New ADODB.Parameter
    Dim param2 As New ADODB.Parameter
    Dim empname As String
    Dim empdetails As String
    Set Oracon = CreateObject("ADODB.Connection")
    Oracon.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=testdb;User ID=newtest;Password= newtest;PLSQLRSet=1;SPPrmsLOB=1"
    Oracon.Open
    empname = "Mani"
    empdetails = "<EmpDet/>"
    Set cmd.ActiveConnection = Oracon
    cmd.CommandType = adCmdText
    Set param1 = cmd.CreateParameter("param1", adVarChar, adParamOutput, 10, empname)
    cmd.Parameters.Append param1
    Set param2 = cmd.CreateParameter("param2", adLongVarChar, adParamInput, 10000, empdetails)
    cmd.Parameters.Append param2
    cmd.CommandText = "{ call xmlText(?,?)}"
    cmd.Execute

    code for my procedure testblob is :
    create or replace procedure testblob(bpic blob) as
         val               blob;
         v_rdata          blob;
         v_start          BINARY_INTEGER := 1;
         v_buffer     BINARY_INTEGER := 32767;
    BEGIN
    select pic into val from my_pic where no=1 for update;
    DBMS_LOB.OPEN (val, DBMS_LOB.LOB_READWRITE);
    FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(bpic) / v_buffer)
         LOOP
         v_rdata :=DBMS_LOB.SUBSTR(bpic, v_buffer, v_start) ;
         DBMS_LOB.WRITEAPPEND(val, DBMS_LOB.GETLENGTH(v_rdata), v_rdata);
         v_start := v_start + v_buffer;
         END LOOP;
    dbms_lob.close(val);
    exception
         when others then
              raise_application_error(-20000,sqlerrm);     
    end;

  • How to Receive soap input parameter value in BPEL

    Hi
    Please provide the solution to receive the input parameter value from a soap call i.e. . invoking a BPEL process from a PL/SQL client and with input parameter value.
    Following Xpath expression does not work ,if a value is passed from SOAP input parameter
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    This works fine only if avalue is passed from 'client' partnerlink(from console).
    Please do the needful.

    Hi
    Thank you for your response
    sample PL/SQL code to call a BPEL process along with some input parameter
    req P_A2a_Call_Bpelprocess.request;
    resp P_A2a_Call_Bpelprocess.response;
    inputvar VARCHAR2(100) := ' START PROCESS';
    ls_method VARCHAR2(25) := 'process';
    ls_namespace VARCHAR2(100) := 'xmlns="http://xmlns.oracle.com/Helloworld"';
    ls_url     VARCHAR2(254) := 'http://nooslux036t.gl.2wglobal.com:7777/orabpel/A2A/Helloworld/1.0';
    BEGIN
    req := P_A2a_Call_Bpelprocess.new_request(ls_method, ls_namespace);
    P_A2a_Call_Bpelprocess.add_parameter(req, 'input', 'xsd:string', inputvar);
    resp := P_A2a_Call_Bpelprocess.invoke(req, ls_url,ls_method);
    The input value is 'START PROCESS' and Can I get this value from Xpath experssion usiing bpws:getVariableData or any other function? .Please let me know.
    sample Xpath expression to get 'client' partnerlink data.
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    Thanks in advance

  • About mapping-input-parameter operator !

    hi all:
    There is a problem,
    I deploy a mapping,the mapping have a mapping input parameter, the mapping is runing a time every day£¬and
    every day's parameter is different.
    I want to mapping input parameter of the mapping can auto get a value from some soure now.
    and the input parameter of the mapping is a "group by"
    condition at mapping!
    is this possible succed?

    Depending on what the (dynamic) source of you parameter value look like, you can either add it as a Mapping Table operator or create a simple function to use as a Pre-Mapping Process.
    Nikolai Rochik

  • Sybase Input Parameter ?

    folks
    i am trying to execute a sybase stored procedure it expects one input parameter , below is the stored procedure name and the input parameter,
    sp_case '@sCase_ID'
    From my program if i pass in <b>Case_ID</b> to this stored procedure , It's complaning about stored procedure expects <b>@sCase_ID</b>,
    I appreciate if any one could guide me how to pass the input parameter in the above case that would be really greatful
    thanks
    PM

    Use double quotes for the default value, like this "1234", since you are
    entering a Javascript string.
    Gary Xue
    Actuate Corporation - Product Development
    BIRT Committer
    "Terry Tam" <[email protected]> wrote in message
    news:a2858f14e3eaedf3581b981a13f355a4$[email protected]..
    > I have a stored procedure spu_Get_CustomerName in Sybase. It receives one
    > input parameter @as_customerno. I have defined the data set as follows:
    >
    > Stored proc: spu_Get_CustomerName
    > Parameter:
    >
    > parameter data type input/output default value
    > --------- --------- ------------ -------------
    > @as_customerno String input '1234'
    >
    > I have tried to specify the following in the query
    >
    > call spu_Get_CustomerName (?)
    >
    > but it returns an error of "Incorrect syntax near '@p0'"
    >
    > What's wrong with my query? How can I fix it?
    >
    > Thanks~~
    >

  • Qaaws input parameter mapping

    It is very time consuming to map a lot of input parameters to Qaaws data providers in Xcelsius.  This thread is to find out if anybody knows of any flexcelsius code that can help automate that or if SAP/BobJ is planning any enhancements to make this more user-convenient and less time-consuming. 
    There are several constraints that I know of: (a) individually re-mapping same input parameters to multiple Qaaws; (b) if Qaaws has to be re-imported for any reason, there is no option to retain any input or output mappings; (c) increasing any number of inputs to a single in-list prompt is very time-consuming.  I have no complaints about Qaaws - it is very fast and works well.  I am just hoping the setup and maintenance can be made easier.  I know I can do more with Live Office, but I am very reluctant to introduce this extra layer into the application (and that is primarily because of previous experience with Microsoft-based automation and constant patches etc.)
    Anybody have any thoughts?

    Hi,
    Given the error message you have and clue you give, problem is beyond QaaWS and Xcelsius, and is very likely to come from BW connection & universe (WIS 10901 identifies errors triggered from outside WebI server).
    Although universe design and BW are far from being my specialty, I'd suggest you update everything from universe to Xcelsius to character (so to be consistent with what's seems expected in the universe query) to see if error is still there.
    Besides, have you checked how that mm/dd/yyyy date is provided to the universe by QaaWS & Xcelsius? From experience, this can be really tricky, as Xcelsius usually supplies QaaWS with a fully qualified datetime (formatted like YYYY-MM-dd HH:mm:ss.µµµ Z set on GMT timezone) which is then transformed into server time zone datetime and sent to the query as YYYY-MM-dd (server timezone). Changes from GMT to server timezone might change the actual date (e.g. when your server timezone is GMT-7) which might then return no value (e.g. 2009-12-02 02:17:45.367Z provided by Xcelsius is turned into 2009-12-01 19:17:45.367 for a server into GMT-7 timezone, and date input parameter provided to the query is the 2009-12-01 instead of the 2009-12-02 selected on the dashboard). I have never been told of this generating errors, though.
    This can be become even more puzzling when DST has to be taken into account... Sadly all these date offsets are required since QaaWS servlet & server have no way to know dashboard client localtime.
    If you could change this input date parameter into e.g. three string parameters (or numerals) : day, month and year, this might avoid some ambiguities...
    Hope that helps,
    David.

  • ABAP program to take input parameter from variant, execute KSB1 and export

    Hi Friends,
    My client asking  change request in CO
    The Change request is "ABAP program to take input parameter from variant, execute KSB1 and export the output into an excel sheet and park the document in a designated location"
    Pls let me know  actually i am a FICO consultant what i can do in this change request
    Thanks,
    Santi

    Hi
    First I dont you would need to create a ABAP to generate the report in Excel.
    You can look at this option. Execute the report Go to->Change Layout, Click on the view option, On the Preferred View Select Microsoft Excel, Save the layout, provide a layout name with /XYZ.
    Now when you want to execute KSB1 with excel, just execute KSB1 with /XYZ layout, it would open in Excel, export to which ever location you want.
    Or just simply save the report as Excel using the Excel button on the tool bar.
    Regards,
    Suraj

  • Input parameter setting when calling a DLL(Built from LabVIEW and a kind of VISA communication driver) in Teststand.

    In labVIEW7.1 I wrote a COM port communications driver by using "VISA Write/Read". I put a string as the input of "VISA Write" and made it the input of the whole vi. Then I converted the vi into a DLL, which is called in Teststand3.1 by specifying DLL adapter. In "Edit C/C++ DLL Call" dialog, I pass a message of "60 6A 94 80 86 81" as the input parameter. My problem is I tried three kinds of methods to pass the message, see attached 1.jpg,2.jpg and 3.jpg. and found the first one sometimes doesn't work, the second work fine and the last doesn't work all time. I don't know why the first one and last one don't work well.
    Thanks!
    Jacky
    Attachments:
    31.jpg ‏38 KB
    11.jpg ‏36 KB
    21.jpg ‏49 KB

    Hi Srinivas,
    Just another note, I noticed that the Math Interface Toolkit version (MIT) 1.0 is not compatible with LabVIEW 7.1. You’ll need version 1.0.1. of the MIT toolkit in order for it to work with LabVIEW 7.1.
    The LabVIEW 7.0 lvanlys.dll is also attached. I had to rename it with a .txt extension, so you’ll want to delete the extension.
    Kileen
    Attachments:
    lvanlys.dll.txt ‏516 KB

  • How to get and parse xml input parameter?

    Hi,
    If one transaction input parameter is xml string, like as below.
    <a>
    <b>
        <c>1</c>
        <d>2</d>
    </b>
    <b>
        <c>3</c>
        <d>4</d>
    </b>   
    </a>
    If I would like to get each element (maybe by repeater action), how to do that?
    Thanks!

    Hi,
    You must convert the string into xml with necessary action block. (XML Functions --> String to XML Parser)
    Then you must put a repeater after converter action and you must set Xpath expression for repeater (configuration) like below:
    String_To_XML_Parser_0.Output{/ARef/BRef}
    after repeater you can use values like below:
    Repeater.Output{/BRef/c}
    Repeater.Output{/BRef/d}
    Regards.

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • In Which scenario do we use Input parameter and Variable in HANA?

    Hi Every one,
    Can any one let me know in which scenario do we use the Input parameter and Variables in HANA.??
    Do variables does the same functionality as like Input paramater.
    Is there any major differences between these??
    Thanks and regards
    Sanjay

    Hi
    Have a look on this:
    Input Parameters and Variables in SAP HANA Modeling
    Regards,
    Krishna Tangudu

  • Date Format on OWB 11.1.0.7 to use for input parameter for a mapping

    All,
    What is the Date Format on OWB 11.1.0.7 to use for passing in an input parameter for a mapping to execute?
    I have tried '01-01-2010','01-JAN-2010','01.01.2010', 01/01/2010 and I get the following error:
    Error RPE-01003: An infrastructure condition prevented the request from completing.
    Error RPE-01038: Failed to evaluate expression declare l_expression DATE := 01/01/2010;begin :result := wb_rt_conversions.from_date(l_expression);end;. Please modify the expression, redeploy and retry again.
    RA-06550: line 1, column 32:
    PLS-00382: expression is of wrong type
    ORA-06550: line 1, column 24:
    PL/SQL: Item ignored
    ORA-06550: line 1, column 90:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 1, column 51:
    PL/SQL: Statement ignored
    I am using a Mapping Input parameter object and have a START_DATE_IN as a DATE and an END_DATE_IN as a DATE
    Any information you could provide would be greatly appreciated.
    Thanks,
    Shaun

    Hello Shaun,
    The function wb_rt_conversions.from_date is (at least in OWB10.2) overloaded and can with input-types as
    date, timestamp_unconstrained, timestamp_tz_unconstrained, timestamp_ltz_unconstrained or varchar2.
    If it doesn't work with varchar2 I would try Date:
    For example: to_date('2010-01-01','YYYY-MM-DD')
    I also found this thread:
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=608257
    Hoping this helps...
    Guenther

  • Problems with Mapping Input Parameter

    Hi everybody,
    just another question. I have a Mapping with an Mapping Input Parameter. If i provide a Parameter with an prefixed 0 e.g.: 01234 the output of this is 1234.
    How can i manage this that the output of the Input Parameter ist 01234 and not like now 1234?
    Many thanks in advance.
    Greetings

    The Mapping Input Parameter is of type varchar2 and it still gives 1234. The Problem is i have to provide the whole input parameter for logging proposes. I managed this now by building a workflow an provide the mapping input parameters to new variables. Now the Input 01234 gives 01234....:-)
    Does anybody know another solution for this problem?
    Greetings

  • Wrong Input Parameter in Job Details

    Hi,
    i start a OWB10.2.0.1 mapping by calling its main-Procedure including the default-parameters and a individual plant location-parameter 'B' as MappingInput (used later as filter), f.e.:
    declare
    p varchar2(4000);
    begin
    fact_map.main(p, 'B', NULL, NULL, NULL, NULL, NULL, NULL);
    end;
    THe mapping works fine, the 'B'-data is loaded but in the job details windows of the CCM on the Input Parameter tab it´s written an 'A' (the default plant location) instead of 'B'.
    OK, it´s not very important at the first moment, but later, if you want to check something in your loading-history - you are lost...
    Any idea, how to fix this?
    jwehner

    Please see commented lines below :
    BEGIN
      Log(
        '6B6C6D'                       -- this is not a RAW
      , '06-Aug-12'                    -- this is not a TIMESTAMP
      , 'COM.TESt'
      , 'OH'
      , 'AUT'
      , 'NOTRANSACT'
      , '<ACORD><SignonRq>'            -- this is not an XMLType (not even valid XML)
      , '000000E0LN1D000029FNSRRGTest'
      , '000009N1D000029FNJ9OITest'
    END;Use the correct datatypes and their constructors (if necessary).
    For example, you can build a RAW from a string with HEXTORAW() function. An XMLType can be built via the XMLType() constructor or the XMLParse() function, etc.

Maybe you are looking for

  • Recruitment Vs E recruitment

    Hello People I have one clarification to make. Is recruitment prerequist for E recruitmetn or not? I mean can we implement E recruitment without the implementation of recruitment.

  • BOM IDOC : BOM send with delta

    Hello, I have a BOM with 2 composants. When I modify one of the composant of the BOM, the IDOC created contains only the modification. The composant which was not modified is not sent. The delta mode seems to be activated. How I can desactivate it. I

  • Home screen is minimized

    My daughter minimized her home screen and we cannot get it back to normal size.  I am not able to restore because I need to turn off ipad location first.  Help.  We tried 2 fingers to maximize, tapping on it and nothing works.

  • Aja IO XT syncing issue

    I have an IO XT card and I'm trying to stream to flash media server and the audio and video is de-syncing really badly. I'm using FMLE 3.2 and have tried both single and multi-bitrate streams. I've also experimented with many bitrates and the like. F

  • RMA Status Ch

    How long does it normally take to update the satus? I sent my player in two days ago for repair (dum klutz that I am) and although fedex shows the package as deli'vered RMA status still says not recieved. Anyone have a benechmark for me? I'm getting