Running Connected Query with Run Control Parameters using App Engine

Hello,
I created a connected query that has 1 parent query and 1 child query, and use this as DataSource for the report that I am going to generate. I created an app engine that willl be called to generate this report. However, I encounter the error "Error occurred while processing the request. (228,101) PT_CONQRS.CONQRSMGR.OnExecute Name:GetXMLData PCPC:59072 Statement:1309". What could be causing this issue? One cause I am thinking is that the Connected Query not returning any data since I am not able to pass / map the values to the CQ's prompt fields. How is this done in CQ? I've done it in PS Query by using the function SetPSQueryPromptRecord+. I'm trying to search for this function's equivalent in CQ. I was able to search for a workaround (http://mfinchps.blogspot.com/2011/05/how-to-launch-connected-query-xml.html), but I still prefer to have a CQ data source.
Below is the code that should handle mapping of CQ prompt fields:
&oConQrsInst = create PT_CONQRS:CONQRSMGR(&OperId, &ReportName);
&result = &oConQrsInst.Open(&oConQrsInst.Const.InitExisting);
&CQPromptsArray = &oConQrsInst.QueriesPromptsArray;
&rcdQryRunParms = CreateRecord(@&PromptRec);
&sqlSelectQryParms = CreateSQL("%Selectall(:1) WHERE OPRID = :2 AND RUN_CNTL_ID = :3");
&sqlSelectQryParms.Execute(&rcdQryRunParms, &OperId, &RunControlId);
/*Loop through the Connected Query "Queries" and fill in each query's prompts as needed*/
For &arrCtr = 1 To &CQPromptsArray.Len
&rcdQryPrompts = &CQPromptsArray.Get(&arrCtr).QueryPromptRecord;
For &i = 1 To &rcdQryPrompts.FieldCount
While &sqlSelectQryParms.Fetch(&rcdQryRunParms)
If &rcdQryPrompts.GetField(&i).Name = &rcdQryRunParms.GetField(Field.BNDNAME).Value Then
&rcdQryPrompts.GetField(&i).Value = &rcdQryRunParms.GetField(Field.BNDVALUE).Value;
Break;
End-If;
End-While;
End-For;
&sqlSelectQryParms.Close();
End-For;
rem &oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);  -> need to have equivalent of this+
&oConQrsInst.Close();
Thanks!
Janet

i think you have run the code to generate the XML file from your connected query...
check the following things
1. Check the Report definition is defined or not for the file that you want generate.
2. if its defined check the RTF template is present or not.
3.Check your code in Appengine whether you have mentioned the Report Definition and template name,

Similar Messages

  • Ora-03114 running a query with group by

    Hi, I've a query with a group by on a sub-query, something like
    SELECT <40+ fields>
      FROM (SELECT <40+ fields>
              FROM table
    GROUP BY <40+ fields> I don't have any problem running this query directly via toad. This query is a cursor in a procedure in a package and, if I invoke it on the same data, the session crash "with ora-03114 not connected to oracle". If I modify the query selecting less fields, 22, I don't have any problem while with 23 the crash appears.
    Furthermore, I don't have any problem in other databases with similar data.
    The db version is 9.2.0.6.0 - 64bit
    Any idea/advice?
    Edited by: 912104 on 3-feb-2012 2.02
    Edited by: 912104 on 3-feb-2012 2.03
    Edited by: 912104 on 3-feb-2012 2.03

    912104 wrote:
    I have difficult to have more information, I can only add:
    select * from v$version
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0 ;   Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production Can I ask what do you think about the different behavior via toad and via package? I mean, it's possible that is a server bug?
    Edited by: 912104 on 3-feb-2012 4.02Are you retrieving the entire result set via toad? or just the first few records?
    Are there any TOAD non-fetched column values in your result set, i.e. CLOBS, XMLTypes, nested types?
    What does your code do with the cursor? Presumably you don't loop through it and do nothing. Are you sure it's the select that's causing the error, or something you are doing with the data in the procedure?
    Can you not adding some instrumentation to your code so that you know exactly what line/data values are processed at the time of the crash? Does it always crash on the same values/line or does it vary?
    "Furthermore, I don't have any problem in other databases with similar data." ... what do you mean by "similar data". You only need one odd value in one column to cause you a 3114 in the right circumstances. It seems like you are long way off establishing what exactly the problem is. It's always useful not to close doors to lines of thought. You need to systematically track down the root cause of the issue by exclusion and assumptions are the enemy of that process.

  • Run the query with previous weeks date automatically

    Hi Guyz,
    I need to  dynamically populate the previous weeks  date value every week,
    i.e Run the query every Monday automatically, with previous weeks date value .
    Is there any SAP Exit which I can use ??
    Regards,
    Ravi
    Edited by: Ravi Srinivas on Aug 4, 2009 1:40 PM
    Edited by: Ravi Srinivas on Aug 4, 2009 1:52 PM

    Ravi,
    If you are thinking of re-running the previous week's queries automatically in the front-end, then U. Tummers is correct.  You can create new columns alongside your existing query if you so wish and use your restrictions with an offset sepending on how far back you'd like to go.
    Best,
    Philips

  • Problem for running Update query with Chinese

    Hi all,
    I am running a web application in Lotus Domino.
    I have a Lotus Script Agent which need to update Oracle 8i Database with Chinese Character throught ODBC but i find that all characters become some strange characters.
    I got the problem only for update query.
    I have no problem for select query for getting the chinese data.
    Also, I got no problem to run the update query with chinese characters in Sqlplus.
    I also try to run the same update query which the ODBC connection is pointing to an MS Access Database. It works too.
    So the only things i leave is the Oracle ODBC driver.
    Anythings I should do for the Oracle ODBC server?
    Thanks very much.

    Hi, I checked the registry of Oracle and
    in the NLS_LANG field, the values is AMERICAN_AMERICA.UTF8. In the server side, I set the same.
    It should be okay, as i can retrieve the chinese content in the Oracle. Just that when i try to run a query contain chinese, such as,
    "insert into TableA values ('���')". i will got some strange character inserted in the databasae.
    Could you tell me what should i do?
    Thanks a lot a lot.

  • Query with running Total

    Hello,
    I have a insert from query:
         insert into tablexxxx
         SELECT ALL      G.c1, G.c2,
                         CASE
                         WHEN G.colt1  NOT IN ( 'A', 'B', 'C') THEN G.DATA1
                         WHEN G.colt1      IN ( 'B', 'C')      THEN &DATASF
                         WHEN G.colt1      =   'A'             THEN &DATASI
                         END colt3,
                     CASE G.colt2 WHEN 'D' THEN  G.IMP1  else 0   END    IMPD,
                    CASE G.colt2 WHEN 'A' THEN  G.IMP1  else 0   END    IMPA,
                         CASE
                         WHEN G.colt1  NOT IN ( 'B', 'C')
                         THEN (&VALU1 -1)
                         ELSE COLX
                         END      COLX,
         FROM table1 G, table2 S, table3 C
         WHERE  G.colt4    = S.colt4      
         AND (     (G.colt1  = 'M' AND  G.DATA1 BETWEEN &DATA_IP AND &DATA_FP AND G.TCOL6 = EXTRACT(YEAR FROM &DATA_IP) - 1 )
                OR (G.colt1 <> 'M' AND  G.DATA1 BETWEEN &DATA_IP AND &DATA_FP)
                OR (G.colt1  = 'A'  AND (&DATASI BETWEEN &DATA_IP AND &DATA_FP AND G.DATA1 = &DATAIE) )
                OR (G.colt1  = 'B'  AND (&DATASF BETWEEN &DATA_IP AND &DATA_FP AND G.DATA1 = &DATAFE) )
                OR (G.colt1  = 'C'  AND (&DATASF BETWEEN &DATA_IP AND &DATA_FP AND G.DATA1 = &DATAFE) )  )
         AND  G.colt5  = C.colt5(+)
         ORDER BY 3,4,5 ; 
         NOW I HAVE TO INSERT in previous query 2 RUNNING TOTALE e.g:
               sum(CASE G.colt2 WHEN 'D' THEN  G.IMP1 + &myvalue1  else 0   END    IMPD) over (order by CASE
                         WHEN G.colt1  NOT IN ( 'A', 'B', 'C') THEN G.DATA1
                         WHEN G.colt1      IN ( 'B', 'C')      THEN &DATASF
                         WHEN G.colt1      =   'A'             THEN &DATASI
                         END) running_sum,
             sum(CASE G.colt2 WHEN 'A' THEN  G.IMP1 + &myvalue2  else 0   END    IMPA) over ((order by CASE
                         WHEN G.colt1  NOT IN ( 'A', 'B', 'C') THEN G.DATA1
                         WHEN G.colt1      IN ( 'B', 'C')      THEN &DATASF
                         WHEN G.colt1      =   'A'             THEN &DATASI
                         END) running_sum1    Could anyone help me to write it? ( maybe is better write it with SELECT-UNION?)
    Thanks in advance

    Hi IceMan,
    I think about having resolved in this way, I don't sincerely believe that is the optimal solution,
    but of sure it is that simpler,anyway, one opinion of yours would be very pleasant:
    1) I have made an Insert-Select with the 2 runnings total = 0
    INSERT INTO  TABLEX
    SELECT ALL G.c1, G.D2,
    CASE
      WHEN G.colt1 NOT IN ( 'A', 'B', 'C') THEN G.DATA1
      WHEN G.colt1 IN ( 'B', 'C') THEN &DATASF
      WHEN G.colt1 = 'A' THEN &DATASI
    END D1,
    CASE G.colt2 WHEN 'D' THEN G.IMP1 else 0 END IMPD,
    CASE G.colt2 WHEN 'A' THEN G.IMP1 else 0 END IMPA,
    CASE
    WHEN G.colt1 NOT IN ( 'B', 'C')
    THEN (&VALU1 -1)
    ELSE COLX
    END COLX, 0 RUNIMP_D, 0 RUNIMP_A
    FROM table1 G, table2 S, table3 C
    WHERE ........
    ORDER BY 3,4,5 ;2) in the populated table(step 1) I have made an UPDATE-SELECT getting the 2 runnings total
    UPDATE TABLEX A SET  (RUNIMP_D, RUNIMP_A ) =(
    SELECT  --G.D1, G.D2, G.IMPD,G.IMPA,
             SUM(G.IMPD) OVER (ORDER BY G.D1, G.D2,G.IMPD) RS1  ,
           SUM(G.IMPA) OVER (ORDER BY  G.D1, G.D2,G.IMPA) RS2
      FROM TABLEX G
    WHERE  G.ROWID = A.ROWID     
    --ORDER BY 1,2
    where G.D1 is that I get from
    CASE
    WHEN G.colt1 NOT IN ( 'A', 'B', 'C') THEN G.DATA1
    WHEN G.colt1 IN ( 'B', 'C') THEN &DATASF
    WHEN G.colt1 = 'A' THEN &DATASI
    END D1
    and
    G.IMPD is:
    CASE G.colt2 WHEN 'D' THEN G.IMP1 else 0 END IMPDThanks again for your reply

  • Can we run a query with variable screen at start up in Bex Analyzer

    Hello all,
    I have a query which asks for fiscal year and posting period at the start of query run. But when I run the query in analyzer, it gives me this error all the time.
    "Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in Program CL_RSR_REQUEST and form TEXT_ELEMENTS_GET: VARIABLE"
    Can someone help,
    Thanks in advance.

    Hello,
    Please check if OSS note 858458 is applicable in your case.
    Regards,
    Praveen

  • Running Crystal report( with subreport)  from VB6 using CRAXDRT.Report

    The application (vb5 with CRAXDRT.Report version 11.5) works for more than 50 different reports.
    This special report has a subreport with 5 Link elements.
    Report works fine with Crystal XI. But when gets fired  from vb6 application, after 2 or 3 times
    (sometimes at the first time), application crashes with following error message pops up:
    vb6.exe-Application Error.
    Instruction at 0x0000000 referenced memory could not be "read"
    The link elements of subreports are:
    (MSP for Main report's stored proc, SSP for Subreport's stored proc)
    MSP . @Prior  -> SSP.@Prior
    MSP . @managerID -> SSP.@managerID
    MSP . @showall -> SSP.@showall
    MSP . officeid-> SSP.@officeid
    MSP . manager -> SSP.manager  (items with @ sign are Parameters)
    If I delete the last link element this error never happens !
    Any clue ?

    For starters, get the latest Service Pack for CR XI r2 from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Make sure you also have the latest SP for VB 6.
    Ludek

  • Running Reports with a Process Definition/XMLPublisher App Engine

    Is there any documentation for creating the Application Engine to run XMLP reports from the PeopleSoft menu?  We are converting our Crystal reports to XMLP and I get the report to run fine through Report Viewer but the user wants to access it on the report menu.  The Data Source is query and the query has 7 run control prompts.  I can see how other report App Engines run using three fields UserID, Run Control, Language but this query would have seven prompts to pass from the run control page to the query/report.  I'm assuming I would have to use bind variables.  I don't want to use the method of passing three prompts from the run control table and then setting criteria in the query but to just pass all of the prompt values directly to the report because the query is a union so that complicates the process.  I was wondering if there is a paper, documentation or something to explain the process for passing the prompts (through peoplecode) to the report when running the report from the process definition to the App Engine from the menu?

    Anil and Rohit,
    Thank you both for the help and getting back to me timely. So let me be sure I understand. When running my report in JDeveloper, I am not able to run the rwservlet because it is not deployed on the 9iDS instance of OC4J that JDeveloper uses, because JDeveloper uses a lightweight version of the 9iDS OC4J containers (Or rather, is it not even a version of 9iDS OC4J?). So, I have to start a separate 9iDS OC4J instance which does have rwservlet deployed. So if I try the unsupported trick and deploy reports_ids.ear to the same OC4J instance that Jdeveloper is using, I may be able to get everything working with one instance of OC4J. If I do, what about when I deploy my report to a production 9iAS server? I'm thinking that the 9iAS instance of OC4J would have the rwservlet deployed, so my application would be fit for this environment, and I would still be running everything on one instance of 9iAS OC4J. I also have the idea, for development, of instead of running my application and reports using the internal JDeveloper OC4J instance, I would use a standalone 9iDS OC4J instance on my machine and just run everything (my web application and reports) on this. Do you think this would be feasible? Should I be able to use the JDeveloper debugger to remotely debug all this?
    Thanks and sorry for so many questions!
    Bill

  • SQL Report query with condition (multiple parameters) in apex item?

    Hello all,
    I have a little problem and can't find a solution.
    I need to create reports based on a SQL query or I.R. Nothing hard there.
    Then I need to add the WHERE clause dynamically with javascript from an Apex item.
    Again not very hard. I defined an Apex item, set my query like this "SELECT * FROM MYTAB WHERE COL1 = :P1_SEARCH" and then I call the page setting the P1_SEARCH value. For instance COL1 is rowid. It works fine.
    But here is my problem. Let's consider that P1_SEARCH will contain several rowids and that I don't know the number of those values,
    (no I won't create a lot of items and build a query with so many OR!), I would like sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (:P1_SEARCH) with something like : ROWID1,ROWID2 in P1_SEARCH.
    I also tried : 'ROWID1,ROWID2' and 'ROWID1','ROWID2'
    but I can't get anything else than filter error. It works with IN with one value but as soon as there are two values or more, it seems than Apex can't read the string.
    How could I do that, please?
    Thanks for your help.
    Max

    mnoscars wrote:
    But here is my problem. Let's consider that P1_SEARCH will contain several rowids and that I don't know the number of those values,
    (no I won't create a lot of items and build a query with so many OR!), I would like sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (:P1_SEARCH) with something like : ROWID1,ROWID2 in P1_SEARCH.
    I also tried : 'ROWID1,ROWID2' and 'ROWID1','ROWID2'
    but I can't get anything else than filter error. It works with IN with one value but as soon as there are two values or more, it seems than Apex can't read the string.For a standard report, see +{message:id=9609120}+
    For an IR&mdash;and improved security avoiding the risk of SQL Injection&mdash;use a <a href="http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm#CACFAICJ">collection</a> containing the values in a column instead of a CSV list:
    {code}
    SELECT * FROM MYTAB WHERE ROWID IN (SELECT c001 FROM apex_collections WHERE collection_name = 'P1_SEARCH')
    {code}
    (Please close duplicate threads spawned by your original question.)

  • I am having ongoing connection problems with the Clash of Clans app which means that I lose battles, resources or boost times. This results in a loss of gems which I have purchased but will not be refunded as they will not accept responsibility.

    Whilst playing Clash of Clans I will continually lose the internet connection. This means that I lose battles, resources, gold etc and lose boost times. I have informed Supercell who blame my internet connection even though the iPhone, laptop and TV all work fine so it is obviously a technical problem with their game and probably something to do with their last updates.
    As I have purchased gems I feel that I should be compensated for my loss but they will not accept responsibility nor investigate the technical issue. The loss of connection occurs constantly with the game often freezing during replays or searching for battles. This is obviously not a connection issue.
    What suggestions do you have to resolve this situation?

    Hi.
    Thanks for the reply. I asked because I also wanted to see if others had encountered the same problem.
    I have no problems with my internet connection as I run my TV, laptop and iPhone off the same connection with no problems. I believe that since the recent updates to the game this has caused the problem. The game often freezes, cancels out or returns me to the main game screen during battles or replays.
    What I want to know is how do I get the game designers or owners to acknowledge my problem as at this time they keep telling me it is my internet that is a problem and not their game. How do they know this when they refuse to investigate. What can I do and who do I go to for support if they won't accept responsibility?
    I am very grateful to you for replying but concerned that if this can happen to me then how many other gamers are losing out and paying for something that they are not going to receive.
    Many thanks.

  • SQL statement running balance query with previous balance taken into account

    Hi Guys
    I have a SQL statement which caclulates the running balance
    for a list of transactions in a transactions table. This SQL
    statement is as follows:
    SELECT transID, debit, credit,
    (SELECT SUM(debit-credit)
    FROM transactions as D1
    WHERE D1.transID <= D0.transID) AS balance
    FROM transactions AS D0
    The only problem I'm having is that I have to display
    transactions between a particular date range. I have for eg.
    transID, transDate, debit, credit fields in my db.
    However the problem I'm having is that when the transaction
    records are pulled out for the specified date range the balances
    are only calculated for those records. I need someway of having a
    balance b/f (brought forward) so that the selected records use that
    as a 'starting' balance and then calculate the running balance as
    normal.
    Any easy solutions?
    Many, many thanks for your help in advance.
    All the best
    Wesley

    You'd need to determine the b/f then apply it against the
    transaction records when they are pulled for a date range. So if
    the date range is
    Feb 1st, 2009 -> Feb 28th, 2009
    You'd need to also get the previous balance in a separate
    query, then use it to correctly display the running balance when
    you output the date range.
    I suppose a simpler way involving a little more DB work (and
    possibly lots of coding) is to store the current balance as well
    with each transaction; then when performing a date range you'd have
    the balance as well and not have to calculate it on the fly.

  • Running a class with command line parameters from IDE

    Hi there,
    I want to run a class from with the developer IDE. But I also want to pass in some command line parameters. Is there any way to do this from within the IDE, without having to go out to a Dos Prompt or shell?
    Thanks in advance
    Johnny

    In JDeveloper 10.1.3, Project Properties->Run/Debug->Edit
    choose the program that should be be the default run target.
    Click "Tool Settings" in the left pane and then in the right pane under "Additional Runner Options" select "Allow program input".
    It works, but the input works better in the command prompt. The problem is that after entering one input the Input-line looses focus and one have to click it to re-focus. A bug?
    However, this lets me use the "Run" button. All in all, a more efficient way of developing programs.

  • Error running PL/SQL with too many parameters

    Developer 10g (9.0.5.1 Build 1605) seems to have a memory limitation when running a PL/SQL procedure. The dialog box that is created to allow running and/or debugging of PL/SQL procedures defaults the parameter sizes to 200 bytes. At a certain point the number of parameters causes an oracle error. When I remove the 20th IN parameter the procedure works.
    Is there a way to do any of the following:
    1) Increase memory used so that more parameters can be used
    2) Change the default of 200 to a smaller value
    3) Bind the size of the IN parameters (in the procedure definition, not each time you run the procedure)
    --Oracle error:
    An error was encountered performing the reequested operation:
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 819
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at line 10
    ORA-06502: PL/SQL: numeric or value error: character string
    buffer too small
    -- Example PL/SQL code
    CREATE OR REPLACE PACKAGE "PKGTEST" AUTHID
    CURRENT_USER AS
    TYPE GENCURTYPE IS REF CURSOR;
    PROCEDURE EXTRACT (
    REQUEST_P1 IN VARCHAR2,
    REQUEST_P2 IN VARCHAR2,
    REQUEST_P3 IN VARCHAR2,
    REQUEST_P4 IN VARCHAR2,
    REQUEST_P5 IN VARCHAR2,
    REQUEST_P6 IN VARCHAR2,
    REQUEST_P7 IN VARCHAR2,
    REQUEST_P8 IN VARCHAR2,
    REQUEST_P9 IN VARCHAR2,
    REQUEST_P10 IN VARCHAR2,
    REQUEST_P11 IN VARCHAR2,
    REQUEST_P12 IN VARCHAR2,
    REQUEST_P13 IN VARCHAR2,
    REQUEST_P14 IN VARCHAR2,
    REQUEST_P15 IN VARCHAR2,
    REQUEST_P16 IN VARCHAR2,
    REQUEST_P17 IN VARCHAR2,
    REQUEST_P18 IN VARCHAR2,
    REQUEST_P19 IN VARCHAR2,
    REQUEST_P20 IN GENCURTYPE,
    --REQUEST_P21 IN VARCHAR2,
    --REQUEST_P22 IN VARCHAR2,
    --REQUEST_P23 IN VARCHAR2,
    --REQUEST_P24 IN VARCHAR2,
    --REQUEST_P25 IN VARCHAR2,
    --REQUEST_P26 IN VARCHAR2,
    --REQUEST_P27 IN VARCHAR2,
    --REQUEST_P28 IN VARCHAR2,
    --REQUEST_P29 IN VARCHAR2,
    --REQUEST_P30 IN VARCHAR2,
    RESPONSE_RETURN_CODE OUT CHAR,
    RESPONSE_ERROR_MSG OUT VARCHAR2
    END PKGTEST;
    CREATE OR REPLACE PACKAGE BODY "PKGTEST" AS
    PROCEDURE EXTRACT (
    REQUEST_P1 IN VARCHAR2,
    REQUEST_P2 IN VARCHAR2,
    REQUEST_P3 IN VARCHAR2,
    REQUEST_P4 IN VARCHAR2,
    REQUEST_P5 IN VARCHAR2,
    REQUEST_P6 IN VARCHAR2,
    REQUEST_P7 IN VARCHAR2,
    REQUEST_P8 IN VARCHAR2,
    REQUEST_P9 IN VARCHAR2,
    REQUEST_P10 IN VARCHAR2,
    REQUEST_P11 IN VARCHAR2,
    REQUEST_P12 IN VARCHAR2,
    REQUEST_P13 IN VARCHAR2,
    REQUEST_P14 IN VARCHAR2,
    REQUEST_P15 IN VARCHAR2,
    REQUEST_P16 IN VARCHAR2,
    REQUEST_P17 IN VARCHAR2,
    REQUEST_P18 IN VARCHAR2,
    REQUEST_P19 IN VARCHAR2,
    REQUEST_P20 IN GENCURTYPE,
    --REQUEST_P21 IN VARCHAR2,
    --REQUEST_P22 IN VARCHAR2,
    --REQUEST_P23 IN VARCHAR2,
    --REQUEST_P24 IN VARCHAR2,
    --REQUEST_P25 IN VARCHAR2,
    --REQUEST_P26 IN VARCHAR2,
    --REQUEST_P27 IN VARCHAR2,
    --REQUEST_P28 IN VARCHAR2,
    --REQUEST_P29 IN VARCHAR2,
    --REQUEST_P30 IN VARCHAR2,
    RESPONSE_RETURN_CODE OUT CHAR,
    RESPONSE_ERROR_MSG OUT VARCHAR2
    AS
    BEGIN
    -- Initialize return variables
    RESPONSE_RETURN_CODE := 'F';
    RESPONSE_ERROR_MSG := 'Oracle JDeveloper does not work';
    RESPONSE_RETURN_CODE := 'S';
    RESPONSE_ERROR_MSG := 'Oracle JDeveloper works';
    END EXTRACT;
    END PKGTEST;

    Vijay,
    It turns out the problem concerns the size of the text buffer that JDeveloper generates (the code we display in the dialog). We inadvertantly limited the size of the code to 2000 characters. So the limitation isn't on the number of parameters, but the amount of code generated for each parameter.
    We have fixed the problem; however, this fix will be in the next release of JDeveloper (the production release of 10.1.3) due later this year.
    - John McGinnis
    Oracle JDeveloper Team

  • Huge query  with  parameter for to use Dynamic Cursor with Parameters

    Hi
    Is possible put the query below like dynmic cursor passing Parameters ?
    How can I do it ?
        OPEN P_CURSOR FOR
        WITH NOTIFICACAO AS(
          SELECT 
           t1.cd_consultora,
           t1.dc_nome_consultora,
           t2.nm_notificacao_cn,
           t2.dt_notificacao_cn dt_notificacao,
           t2.dt_atendimento_notificado,
           t1.cd_tipo_estrutura_comercial,
           t1.cd_estrutura_comercial
            FROM t_consultora t1, nc.t_nc_notificacao_cn t2
           WHERE t2.dt_notificacao_cn BETWEEN w_DTA_INI AND w_DTA_FIM
             AND t2.cd_consultora = t1.cd_consultora
             AND t1.cd_setor = w_cd_setor
             AND t1.cd_tipo_estrutura_comercial = p_tp_estrutura_comercial
             AND t1.cd_estrutura_comercial = p_cd_estrutura_comercial),
        T_NOTIFICADA AS ( select Count(t1.nm_notificacao_cn) over (partition by  t1.cd_consultora,t1.nm_notificacao_cn ) QTD_NOTAS,
                                 Count(t2.nm_item_notificacao_cn) over (partition by  t1.cd_consultora,t1.nm_notificacao_cn ) QTD_ITENS,
                                 T3.*
                                  from nc.t_nc_notificacao_cn t1,
                                       nc.t_nc_item_notificacao_cn  T2,
                                       NOTIFICACAO                  T3 
                                   where       t1.dt_notificacao_cn >= to_date('01/09/2006','dd/mm/yyyy')
                                    and   t3.nm_notificacao_cn = t1.nm_notificacao_cn
                                   and    t1.nm_notificacao_cn = t2.nm_notificacao_cn
                                   and    ((t2.cd_tipo_item_nc = 4 and t2.cd_subtipo_item_nc = 6)
                                           or t2.cd_tipo_item_nc = 2 or t2.cd_tipo_item_nc = 3)
                                           and t3.cd_consultora = t1.cd_consultora (+)  )  ,
        T_BLOQUEADA AS ( SELECT T4.* FROM
                     (SELECT  T3.*,
                            CASE WHEN T3.BLOQUEADA = -1 THEN  'Bloqueada'
                                 WHEN  T3.BLOQUEADA = 0 THEN
                              (CASE WHEN T3.QTD_NOTAS > 2 THEN
                                 CASE WHEN T3.QTD_ITENS > 8 THEN 'Atencao / Analise'
                                 ELSE
                                    'Normal'
                                 END
                               ELSE
                                 'Atencao / Analise'   
                              END)
                             END OBSERVACAO
                      FROM  (SELECT CASE WHEN NVL(T2.ID_CN_BLOQUEADA,1) = 1 then -1
                                   WHEN NVL(T2.ID_CN_BLOQUEADA,1) = 0  THEN 0
                                   END BLOQUEADA, T1.*
                        FROM   T_NOTIFICADA T1,
                               T_PS_CONSULTORA T2 
                               WHERE T1.CD_CONSULTORA = T2.CD_PESSOA)T3) T4 )
            select *
              from (SELECT t1.*, ROWNUM r_linha
               FROM (SELECT  cd_consultora,
                       dc_nome_consultora,
                       fnc_busca_telefone(CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(CD_CONSULTORA, 2) TELEFONE2,
                        EMAIL,
                        observacao,
                       nm_notificacao_cn,
                       nvl(vl_total_final,0) vl_total_final,                  
                       dt_notificacao,
                       qt_produto_item_nc,
                      sg_notificacao,
                      ID_SITUACAO,
                       qtd_registros
                    FROM (SELECT /*+ INDEX(W5 I0_NC_TIPO_ITEM_NC) */
                       W1.cd_consultora,
                       W1.dc_nome_consultora,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 2) TELEFONE2,
                       fnc_busca_email(w1.CD_CONSULTORA) EMAIL,
                       W1.OBSERVACAO observacao,
                       W1.nm_notificacao_cn,
                       sum(W4.qt_produto_nf *
                           W4.vl_unitario_final_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) vl_total_final,
                       W1.dt_notificacao,
                       sum(W4.qt_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) qt_produto_item_nc,
                       'PENDENTE' sg_notificacao,
                       W5.dc_tipo_item_nc ID_SITUACAO,
                       W_qtd_registros qtd_registros
                        FROM T_BLOQUEADA               W1,
                             nc.t_nc_item_notificacao_cn W2,
                             nc.t_nc_produto_item_nc     W3,
                             nc.t_nc_produto_item_nf     W4,
                             nc.t_nc_tipo_item_nc        W5
                       WHERE W1.dt_atendimento_notificado is null
                         and W1.nm_notificacao_cn =
                             W2.nm_notificacao_cn
                         and W2.cd_tipo_item_nc = W5.cd_tipo_item_nc
                         and W2.nm_notificacao_cn =
                             W3.nm_notificacao_cn(+)
                         and W2.nm_item_notificacao_cn =
                             W3.nm_item_notificacao_cn(+)
                         and W3.nm_notificacao_cn =
                             W4.nm_notificacao_cn(+)
                         and W3.nm_item_notificacao_cn =
                             W4.nm_item_notificacao_cn(+)
                         and W3.nm_sequencia_produto_item_nc =
                             W4.nm_sequencia_produto_item_nc(+)
                         and W2.cd_tipo_item_nc not in (6, 7)
                         and ((W2.id_situacao_item_nc = 1) OR
                             (W2.id_situacao_item_nc = 3 OR
                             W2.id_solucao_definida is not null))
                      UNION
                      SELECT /*+ INDEX(W5 I0_NC_TIPO_ITEM_NC) */
                       W1.cd_consultora,
                       W1.dc_nome_consultora,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 2) TELEFONE2,
                       fnc_busca_email(w1.CD_CONSULTORA) EMAIL,
                       W1.OBSERVACAO observacao,
                       W1.nm_notificacao_cn,
                       sum(W4.qt_produto_nf *
                           W4.vl_unitario_final_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) vl_total_final,
                       W1.dt_notificacao,
                       sum(W4.qt_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) qt_produto_item_nc,
                       'ATENDIDO' sg_notificacao,
                       W5.dc_tipo_item_nc ID_SITUACAO,
                       W_qtd_registros qtd_registros
                        FROM T_BLOQUEADA                W1,
                             nc.t_nc_item_notificacao_cn W2,
                             nc.t_nc_produto_item_nc     W3,
                             nc.t_nc_produto_item_nf     W4,
                             nc.t_nc_tipo_item_nc        W5
                       WHERE W1.dt_atendimento_notificado is not null
                         and W1.nm_notificacao_cn =
                             W2.nm_notificacao_cn
                         and W2.cd_tipo_item_nc = W5.cd_tipo_item_nc
                         and W2.nm_notificacao_cn =
                             W3.nm_notificacao_cn(+)
                         and W2.nm_item_notificacao_cn =
                             W3.nm_item_notificacao_cn(+)
                         and W3.nm_notificacao_cn =
                             W4.nm_notificacao_cn(+)
                         and W3.nm_item_notificacao_cn =
                             W4.nm_item_notificacao_cn(+)
                         and W3.nm_sequencia_produto_item_nc =
                             W4.nm_sequencia_produto_item_nc(+)
                             )T2
    ---- here with NDS   I changed order by
                       ORDER BY DECODE(p_nm_asc_desc,0,DECODE(p_nm_col_ordem ,1, cd_consultora,2,dc_nome_consultora)) ASC, --,8,vl_total_final)) ASC,
                       DECODE(p_nm_asc_desc,1,DECODE(p_nm_col_ordem ,1, cd_consultora,2,dc_nome_consultora)) desc --,8,vl_total_final)) DESC
                             ) T1
               where rownum <= W_TO_REC)
             where r_linha >= W_FROM_REC;Is It Query very much great and how can I to pass parameters w_DTA_INI ,w_DTA_FIM, W_TO_REC,W_FROM_REc ....etc
    TIA

    I did (some time ago and it was a packaged procedure) something like
    Procedure p(p_one in datatype,p_two in datatype,p_dataset out sys_refcursor) is
      the_sql varchar2(32000);
      the_cursor sys_refcursor;
    begin
      the_sql = 'WITH NOTIFICACAO AS( ' ||
                '      SELECT ' ||
                '       t1.cd_consultora, ' ||
                '                               where       t1.dt_notificacao_cn >= to_date(''01/09/2006'',''dd/mm/yyyy'') ' ||  -- note the ''
                '           where rownum <= :W_TO_REC) ' ||   -- parameter 1
                '         where r_linha >= :W_FROM_REC ';     -- parameter 2
      open the_cursor for the_sql using p_one,p_two;  -- just by the book
    end p;if I remember correctly
    Regards
    Etbin

  • How to find Query with Running time

    dear frnds,
    I need to find the query details and query execution time from a DB USER. am using oracle 11g. how to generate this report
    please give me any idea.,
    thanks.
    Edited by: Velsjeya on May 14, 2012 1:07 AM
    Edited by: Velsjeya on May 14, 2012 1:07 AM

    Velsjeya wrote:
    thanks a lot,
    here i need to show query running time also...( how many mins that particular query ran) ... please help mePlease do search for the question's answer. V$SQL should be able to show you what you are looking for. Asktom's thread given below discusses the same,
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:912859800346801944
    Aman....

Maybe you are looking for

  • JBO-33001 bc4j.xcfg CLASSPATH problem in deployed java web service

    Hi I have deployed a web service that uses a simple java class to update some BC4J EO's. I have included the deployed jar files in the OC4J Classpath. I have also deployed the web service to the application server. I then call the web service from BP

  • USB 3.0 port thinks it is USB 2.0

    I just bought a new HP ENVY 15-j101tu Notebook PC. When I plug the external USB 3.0 hard drive the system pops up message saying the device can perform faster when connected to USB 3.0. The speed of file transfer from laptop to the external hard disk

  • I need a .pdf file of 5 photos - NOT a BOOK

    Maybe I'm dreaming here, thinking that surely there is a way to export a small selection of photos from iPhoto08 into a .pdf file... That is the assignment for a photography class I'm taking: each week, bring in five photos, compiled into a .pdf file

  • [ANNOUNCE] JSF 1.2_05 RC3 has been released

    See the announcement[1] for details. [1] https://javaserverfaces.dev.java.net/servlets/NewsItemView?newsItemID=5397

  • Error messages when opening PSE 7

    When I open Photoshop Elements 7 I get two messages.  Tvichw 32 driver error and  Can't Load aspi layer driver.  Adobe support is worse than useless.  Can anyone tell me what these are, how I can correct the problem and do they matter.   It seems to