Analytical function fine within TOAD but throwing an error for a mapping.

Hi,
When I validate an expression based on SUM .... OVER PARTITION BY in a mapping, I am getting the following error.
Line 4, Col 23:
PLS-00103: Encountered the symbol "OVER" when expecting one of the following:
* & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
However, using TOAD, the expression is working fine.
A staging table has got three columns, col1, col2 and col3. The expression is checking for a word in col3. The expression is as under.
(CASE WHEN SUM (CASE WHEN UPPER(INGRP1.col3) LIKE 'some_value%'
THEN 1
ELSE 0
END) OVER (PARTITION BY INGRP1.col1
,INGRP1.col2) > 0
THEN 'Y'
ELSE 'N'
END)
I searched the forum for similar issues, but not able to resolve my issue.
Could you please let me know what's wrong here?
Many thanks,
Manoj.

Yes, expression validation in 10g simply does not work for (i.e. does not recognize) analytic functions.
It can simply be ignored. You should also set Generation mode to "Set Based only". Otherwise the mapping will fail to deploy under certain circumstances (when using non-set-based (PL/SQL) operators after the analytic function).

Similar Messages

  • Query working fine in 9i but throwing an error in Oracle 10g

    Hi All,
    I am having a query which contains large number of When clauses inside a case statement.
    The Same SQL is working fine in 9i, but not working in 10G.
    If we try to remove one of the When clause in the query, its working fine else it is giving the error ORA-00939 Too many arguments for functions.
    Can any one tell me the solution for this and what is the maximum number of when clauses allowed inside case statemen in oracle 10g.
    Thanks in advance
    Regards
    Karthik

    it should not have worked in 9iR2... it is correct according to the doc to return an error message when using more than 255 expressions...
    SQL> select version from v$instance;
    VERSION
    9.2.0.7.0
    SQL> select case 1
      2  when 2 then 3
      3  when 4 then 5
      4  when 6 then 7
      5  when 8 then 9
      6  when 10 then 11
      7  when 12 then 13
      8  when 14 then 15
      9  when 16 then 17
    10  when 18 then 19
    11  when 20 then 21
    12  when 22 then 23
    13  when 24 then 25
    14  when 26 then 27
    15  when 28 then 29
    16  when 30 then 31
    17  when 32 then 33
    18  when 34 then 35
    19  when 36 then 37
    20  when 38 then 39
    21  when 40 then 41
    22  when 42 then 43
    23  when 44 then 45
    24  when 46 then 47
    25  when 48 then 49
    26  when 50 then 51
    27  when 52 then 53
    28  when 54 then 55
    29  when 56 then 57
    30  when 58 then 59
    31  when 60 then 61
    32  when 62 then 63
    33  when 64 then 65
    34  when 66 then 67
    35  when 68 then 69
    36  when 70 then 71
    37  when 72 then 73
    38  when 74 then 75
    39  when 76 then 77
    40  when 78 then 79
    41  when 80 then 81
    42  when 82 then 83
    43  when 84 then 85
    44  when 86 then 87
    45  when 88 then 89
    46  when 90 then 91
    47  when 92 then 93
    48  when 94 then 95
    49  when 96 then 97
    50  when 98 then 99
    51  when 100 then 101
    52  when 102 then 103
    53  when 104 then 105
    54  when 106 then 107
    55  when 108 then 109
    56  when 110 then 111
    57  when 112 then 113
    58  when 114 then 115
    59  when 116 then 117
    60  when 118 then 119
    61  when 120 then 121
    62  when 122 then 123
    63  when 124 then 125
    64  when 126 then 127
    65  when 128 then 129
    66  when 130 then 131
    67  when 132 then 133
    68  when 134 then 135
    69  when 136 then 137
    70  when 138 then 139
    71  when 140 then 141
    72  when 142 then 143
    73  when 144 then 145
    74  when 146 then 147
    75  when 148 then 149
    76  when 150 then 151
    77  when 152 then 153
    78  when 154 then 155
    79  when 156 then 157
    80  when 158 then 159
    81  when 160 then 161
    82  when 162 then 163
    83  when 164 then 165
    84  when 166 then 167
    85  when 168 then 169
    86  when 170 then 171
    87  when 172 then 173
    88  when 174 then 175
    89  when 176 then 177
    90  when 178 then 179
    91  when 180 then 181
    92  when 182 then 183
    93  when 184 then 185
    94  when 186 then 187
    95  when 188 then 189
    96  when 190 then 191
    97  when 192 then 193
    98  when 194 then 195
    99  when 196 then 197
    100  when 198 then 199
    101  when 200 then 201
    102  when 202 then 203
    103  when 204 then 205
    104  when 206 then 207
    105  when 208 then 209
    106  when 210 then 211
    107  when 212 then 213
    108  when 214 then 215
    109  when 216 then 217
    110  when 218 then 219
    111  when 220 then 221
    112  when 222 then 223
    113  when 224 then 225
    114  when 226 then 227
    115  when 228 then 229
    116  when 230 then 231
    117  when 232 then 233
    118  when 234 then 235
    119  when 236 then 237
    120  when 238 then 239
    121  when 240 then 241
    122  when 242 then 243
    123  when 244 then 245
    124  when 246 then 247
    125  when 248 then 249
    126  when 250 then 251
    127  when 252 then 253
    128  when 254 then 255
    129  when 256 then 257
    130  end x from dual;
             X
    SQL> select version from v$instance;
    VERSION
    10.2.0.2.0
    SQL> select case 1
      2  when 2 then 3
      3  when 4 then 5
      4  when 6 then 7
      5  when 8 then 9
      6  when 10 then 11
      7  when 12 then 13
      8  when 14 then 15
      9  when 16 then 17
    10  when 18 then 19
    11  when 20 then 21
    12  when 22 then 23
    13  when 24 then 25
    14  when 26 then 27
    15  when 28 then 29
    16  when 30 then 31
    17  when 32 then 33
    18  when 34 then 35
    19  when 36 then 37
    20  when 38 then 39
    21  when 40 then 41
    22  when 42 then 43
    23  when 44 then 45
    24  when 46 then 47
    25  when 48 then 49
    26  when 50 then 51
    27  when 52 then 53
    28  when 54 then 55
    29  when 56 then 57
    30  when 58 then 59
    31  when 60 then 61
    32  when 62 then 63
    33  when 64 then 65
    34  when 66 then 67
    35  when 68 then 69
    36  when 70 then 71
    37  when 72 then 73
    38  when 74 then 75
    39  when 76 then 77
    40  when 78 then 79
    41  when 80 then 81
    42  when 82 then 83
    43  when 84 then 85
    44  when 86 then 87
    45  when 88 then 89
    46  when 90 then 91
    47  when 92 then 93
    48  when 94 then 95
    49  when 96 then 97
    50  when 98 then 99
    51  when 100 then 101
    52  when 102 then 103
    53  when 104 then 105
    54  when 106 then 107
    55  when 108 then 109
    56  when 110 then 111
    57  when 112 then 113
    58  when 114 then 115
    59  when 116 then 117
    60  when 118 then 119
    61  when 120 then 121
    62  when 122 then 123
    63  when 124 then 125
    64  when 126 then 127
    65  when 128 then 129
    66  when 130 then 131
    67  when 132 then 133
    68  when 134 then 135
    69  when 136 then 137
    70  when 138 then 139
    71  when 140 then 141
    72  when 142 then 143
    73  when 144 then 145
    74  when 146 then 147
    75  when 148 then 149
    76  when 150 then 151
    77  when 152 then 153
    78  when 154 then 155
    79  when 156 then 157
    80  when 158 then 159
    81  when 160 then 161
    82  when 162 then 163
    83  when 164 then 165
    84  when 166 then 167
    85  when 168 then 169
    86  when 170 then 171
    87  when 172 then 173
    88  when 174 then 175
    89  when 176 then 177
    90  when 178 then 179
    91  when 180 then 181
    92  when 182 then 183
    93  when 184 then 185
    94  when 186 then 187
    95  when 188 then 189
    96  when 190 then 191
    97  when 192 then 193
    98  when 194 then 195
    99  when 196 then 197
    100  when 198 then 199
    101  when 200 then 201
    102  when 202 then 203
    103  when 204 then 205
    104  when 206 then 207
    105  when 208 then 209
    106  when 210 then 211
    107  when 212 then 213
    108  when 214 then 215
    109  when 216 then 217
    110  when 218 then 219
    111  when 220 then 221
    112  when 222 then 223
    113  when 224 then 225
    114  when 226 then 227
    115  when 228 then 229
    116  when 230 then 231
    117  when 232 then 233
    118  when 234 then 235
    119  when 236 then 237
    120  when 238 then 239
    121  when 240 then 241
    122  when 242 then 243
    123  when 244 then 245
    124  when 246 then 247
    125  when 248 then 249
    126  when 250 then 251
    127  when 252 then 253
    128  when 254 then 255
    129  when 256 then 257
    130  end x from dual;
    when 16 then 17
    ERROR at line 9:
    ORA-00939: too many arguments for function
    SQL> del 129
    SQL> /
             X
    ----------

  • Query working fine in toad but not in forms 6i

    i have following coding on when button press triger
    declare
    CURSOR C1(year number,month number) IS
    SELECT ITM_NO,ITM_NAME,XAQ QTY,XAQ*TP VAL,gp
    FROM
    select ci.itm_no ITM_NO,ci.itm_name ITM_NAME ,cpg.group_id gp ,xaq ,ALLIED.CORP_PRIC_TP( ci.itm_no)TP from
    select prod_no,sum(xaq)*1 xaq
    from
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_01_02
    where year=year and f_prd=month
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_02_02
    where year=year and f_prd=month
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_03_02
    where year=year and f_prd=month
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_04_02
    where year=year and f_prd=month
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    group by prod_no
    ) A,allied.corp_inv ci,allied.corp_01_01 c01, allied.corp_01_02 c02,allied.corp_prod_group cpg,allied.v_prod_grp vpg
    where ci.itm_no=a.prod_no
    and ci.itm_no=c02.itm_no
    and c01.grp_id=c02.grp_id
    and c01.grp_id in(55,56,57,58,59)
    and vpg.prod_no =ci.itm_no
    and vpg.group_id=cpg.group_id
    where XAQ <>0;
    Begin
         delete from fiaz.tmp_topten_prod;
         for i in c1(:year,:month)
    loop
              insert into fiaz.tmp_topten_prod
              values(i.itm_no,i.itm_name,i.qty,i.val,i.gp,0);
         end loop;      
    standard.commit;
    message('inserted in temp');
         exception when others then
              message (dbms_error_text);
              message (dbms_error_text);
    End;
    Same Query (as used in cursor c1) works fine in toad but giving wrong result from forms... and the problem is xaq field i.e returns incorrect qty...
    i guess union clause is not working in this situation...
    plz suggest me the appropriate changes in the query to work well from form as well...
    combination:Forms 6i,Oracle 8.0.6
    Regards,
    Usman Afzal

    As per your suggestion i have created a stored procedure but the followin error prevents procedure creation
    create or replace procedure fiaz.topten_prod(v_yr number,v_mn number) is
    begin
    delete from fiaz.tmp_topten_prod;
    insert into fiaz.tmp_topten_prod(itm_no,itm_name,qty,val,grp_id,prority)
    SELECT ITM_NO,ITM_NAME,XAQ QTY,XAQ*TP VAL,gp,0
    FROM
    select ci.itm_no ITM_NO,ci.itm_name ITM_NAME ,cpg.group_id gp ,xaq ,ALLIED.CORP_PRIC_TP( ci.itm_no)TP from
    select prod_no,sum(xaq) xaq
    from
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq from allied.mrk_01_02
    where year=v_yr and f_prd=v_mn
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_02_02
    where year=v_yr and f_prd=v_mn
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_03_02
    where year=v_yr and f_prd=v_mn
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    union all
    select prod_no, sum(nvl(xrd_sqty,0)) Xaq
    from allied.mrk_04_02
    where year=v_yr and f_prd=v_mn
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    group by prod_no
    group by prod_no
    ) A,allied.corp_inv ci,allied.corp_01_01 c01, allied.corp_01_02 c02,allied.corp_prod_group cpg,allied.v_prod_grp vpg
    where ci.itm_no=a.prod_no
    and ci.itm_no=c02.itm_no
    and c01.grp_id=c02.grp_id
    and c01.grp_id in(55,56,57,58,59)
    and vpg.prod_no =ci.itm_no
    and vpg.group_id=cpg.group_id
    where XAQ <>0;
    commit;
    end;
    Error:
    "PLS-00201: identifier ALLIED.MRK_01_02 must be declared "
    i have not changed any thing in query working fine in toad without create procedure text and if i describe this table it shows the structure (desc allied.mrk_01_02)
    Now where is the problemmmmm
    Plz Help

  • HT4236 I've been using the iCloud Photo Stream with my PC for few months already. It work fine every time, but suddenly not work for today

    I've been using the iCloud Photo Stream with my PC for few months already. It work fine every time, but suddenly not work for today

    Hey lalitgupta,
    Thanks for the question. The following article provides troubleshooting steps for Photo Stream:
    iCloud: Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Thanks,
    Matt M.

  • H.264 inconsistent quality- Fine within Premiere but bad outside of it.

    On my windows XP system I can import into Premiere CS3 original H.264 clips taken with a Canon digicam and they look great in the timeline. They also export without error as a H.264 movie. I can also import these H.264 movies that Premiere created back into another sequence and they too look fine.
    Where I'm having problems is when those same H.264 movies are played back in common players like Quicktime, WMP, VLC, or Power DVD, they don't look at all pretty. It doesn't matter whether they are the original out of camera clips transferred to the computer or the movies created in Premiere using the H264 preset. Quicktime always displays the originals as faded. It plays the output files from Premiere fine at first but as soon as I resize, they too get faded. The other players show them as very dark and dingy. I've done some forum reading about this and have tried the gamma stripper utility on both the original clips and the output movies with no change in the results. Any other ideas? Remember these look fine WITHIN Premiere. I just can't find a commonly used player that will do them justice outside of Premiere.
    Thanks.

    I solved the problem by downloading and installing the Premiere Pro and After Effects patches from the same place as the Media Encoder update.
    http://www.adobe.com/support/downloads/new.jsp
    It seem to be working okay now.

  • Endeca : multi invoice pay throwing correct error for internal user but it is failing to throw the same error for external user

    Hi,
    1) Internal User expected exception:
    Exception: Payments,apply credits,disputes and print are not supported when multiple customer/currency transactions are selected
    2) External User is throwing below error instead of throwing above exception.
    Error
      You are trying to access a page that is no longer active.
      The referring page may have come from a previous session. Please select Home
       to proceed.
    found this MACCHECK from fnd logs of external user payment.
    MACCHECK: . Parameter failing validation is :mode. The parameter mode with value MultiPay could not be recognized as part of Server's response on the previous request.  Incoming URL is : /OA_HTML/OA.jsp?page=/oracle/apps/ar/irec/endeca/webui/EndecaDummyPG . Current URL is : /OA_HTML/OA.jsp?page=/oracle/apps/ar/irec/endeca/webui/OIREndecaCustHomePG&akRegionApplicationId=222&_ti=1125493452&oapc=10&retainAM=Y&addBreadCrumb=N&oas=6-LL4ndIUFLX-2zjQAQD6A.. . Referer URL is : https://<hostname>:4443/endeca/web/ar/customer?doAsUserLanguageId=en_US&languageId=en_US . HTTP Request Method is : POST
    can someone please help.
    Thanks,
    RRS

    Well, I compared my classpath between my windows batch file and the
    makefile (that comes with the samples installation) on Solaris and realized
    that I am using different sets of jars.
    So, I removed the extra jars from the makefile to narrow down the
    problem. If I remove the /opt/SUNWam/lib/servlet.jar from the makefile,
    I can reproduce this problem on the Solaris box as well.
    When I include this servlet.jar on my windows machine the program works!
    Only jars I have in my classpath are amclientsdk.jar and servlet.jar which
    I have copied from my installation (/opt/SUNWam/lib) on the Solaris box.
    Just the same way, by copying the am_services.jar, saaj-api.jar, and jaxm-api.jar,
    from the Solarix box to the windows machine,
    I am also able to pull the assertions from the Access Manager.
    I installed Sun Java Enterprise System 2005Q1 on a Solaris 10 machine.
    During the installation, I configured to install the Access Manager
    in Sun Application Server.
    Why do I need to have different set of jars on the windows machine
    for the Access Manager client SDK ?
    Could you please point me to a download link where I could download
    the correct Windows Access Manager Client SDK for
    Sun Java System Access Manager 6.0 (Sun JES 2005Q1)?
    Thanks.

  • Variable Substituition throwing an error for empty payload

    Hi All,
    I am using variable substituition in the receiver file adapter...
    Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition.
    Now  based on some condition the payload will be empty in the mapping then no file to be created...
    For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
    Now my question is how can we stop in creating an empty file...
    Even i tried using Dynamic Variable in the mapping but that to throws an error...
    Please suggest me on how to solve this...
    Regards,
    sridhar

    >
    sridhar reddy kondam wrote:
    > Now  based on some condition the payload will be empty in the mapping then no file to be created...
    > For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
    Make sure that the node is not created itself in the mapping so that you will not have the issue.
    IS that what you are looking for?
    Else give more details so that we can help

  • Excel Throws an error for large data dumps

    Hi,
    I have a report in which displays 10,00,000 records , for that i created an agent and run the report the data is loaded into excel when we open the excel it is throwing an error
    I so mimimum i need to display 5,00,000 records
    Thanks,

    Hi,
    you can filter out some condition on report wise as well as dashboard wise using a prompts.
    Example:
    If u have Period table in the report filter out for year=2012 only
    or
    If u have prompt in dashboard filter out.
    in agent also we have the conditions rule while downloading the report.
    Check this makshu.blogspot.com\increase-row-limits-in-table-properties.html
    Regards
    VG

  • Trigger works fine in Toad but not in the Application Form

    Hi All,
    I created a trigger that executes BEFORE UPDATE ON PO_REQUISITION_LINES_ALL. When I exceute in Toad a manual update on this table, the trigger appears correctly, but When I am on PIC form in PO, and execute save with blank value, the trigger doesn't work and doesn't appear.
    Do you know which is the reason?.
    Regards,
    Mariano.-

    Hi Srini,
    The problem is on Form POXRQERQ.fmx on PIC transactions. Trigger works fine If a create a new transaction. Because the message appears correctly in the screen, but when I update and change a value in the specific field on the screen, the message of the trigger doesn't appear and I don't know why...
    Please Help Me!
    Regards Mariano.-
    Version Of Application : 11.5.8
    Version Of Database : Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    Version Of OS : AIX Version 5.3!
    PROMPT Creating TRIGGER XX_PO_Espec_Iweb_Requis ...
    CREATE OR REPLACE TRIGGER XX_PO_Espec_Iweb_Requis
    BEFORE UPDATE OR INSERT ON PO_REQUISITION_LINES_ALL
    FOR EACH ROW
    DECLARE
    BEGIN
    RAISE_APPLICATION_ERROR(-20000,'You couldn't update or insert the PIC');
    END;
    SHOW ERRORS
    SPOOL OFF

  • Working in firefox, but throwing up errors in IE related to null objects

    firefox has no problems with my very simple spry data example but IE throws up the following errors, can anyone help?
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; InfoPath.2)
    Timestamp: Thu, 9 Sep 2010 17:31:34 UTC
    Message: 'Spry.Debug' is null or not an object
    Line: 961
    Char: 41
    Code: 0
    URI: file:///C:/Users/Gabriel/Documents/My%20Dropbox/GFA/website/dev/friedmanstudios.ca/SpryAss ets/SpryData.js
    Message: 'Spry.Data.initRegionsOnLoad' is null or not an object
    Line: 4855
    Char: 65
    Code: 0
    URI: file:///C:/Users/Gabriel/Documents/My%20Dropbox/GFA/website/dev/friedmanstudios.ca/SpryAss ets/SpryData.js

    in my header:
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("GFAWORKS.xml", "dataroot/GFAWORKS");
    var ds2 = new Spry.Data.XMLDataSet("GFAWORKS.xml", "dataroot/GFAWORKS");
    </script>
    within a script tag near the end
    Spry.$$(".RowContainer").addEventListener("click", function(){ alert("clicked!"); }, false);
    earlier on in the body:
      <div spry:repeat="ds2" class="RowContainer">
        <div class="RowColumn">{Name}</div>
        <div class="RowColumn">{Type}</div>
        <!-- test for url writing -->
        <div class="RowColumn"><a href="{Code}.html">project link</a></div>
        <div class="contentPlaceholder"> </div>
      </div>

  • MDG Material BS_MAT_OVP_03 application is fine in development but giving runtime errors when moved to quality

    Dear Experts,
    We are Facing a problem with BS_MAT_OVP_03, We have done some enhancements and it is working very much fine in development and when we move it to Quality we are getting runtime errors, they are not with the enhancements but with in standard code itself.
    "ASSERTION_FAILED" " ""CL_USMD_ACC_FLD_PROP_DATA=====CP" or "CL_USMD_ACC_FLD_PROP_DATA=====CM009" "VALIDATE_RETURNED_FLD_PROP"
    we are getting above runtime error, Please let us know the reason for issue, If some one have come across.
    Regards
    Sukumar

    Hi Sukumar,
    It's because of few generated structures could be in "Inactive" mode for your data model when you move to quality system.
    Refer each generated structure from SE11 and activate them individually..this can be a post processing activity everytime you move data model structures from one ECC to other ECC.
    Thanks
    Praveen

  • OT: Site works fine on Win2K IIS5 - throws an error on Win2K3 IIS6

    Hi,
    I've had serious server trouble and have moved some sites to
    a new Win2K3
    server running IIS6.
    Of the sites that have been moved (all of which were working
    fine prior to
    moving), one now gives me this error:
    Active Server Pages error 'ASP 0116'
    Missing close of script delimiter
    /curve/curve_login.asp, line 5
    The Script block lacks the close of script tag (%>).
    I have not changed anything in the code. I have simply moved
    the files to
    the new server.
    In testing, if I remove the block of ASP code that handles
    the login (all
    enclosed in <% %> tags) then the page loads. If I put
    the code back ointo
    the page, I get this error.
    The code works fine and has done for a year without issue on
    Win2K IIS5 - so
    I have to think that this is an issue outside of the code,
    but what?
    I have very similar login code on other sites that I have
    moved and thay are
    not causing me issues
    Any ideas or suggestions would be most appreciated as this
    site has
    basically been offline for a week now and I'm going insane!
    Cheers,
    Rob
    http://robgt.com/ [Tutorials and
    Extensions]

    I'd have to see the code...
    It would not be unusual for a new version of the ASP DLL to
    be less
    forgiving than an older version.
    "RobGT" <[email protected]> wrote in
    message
    news:e982h6$d3s$[email protected]..
    > Hi,
    > I've had serious server trouble and have moved some
    sites to a new Win2K3
    > server running IIS6.
    > Of the sites that have been moved (all of which were
    working fine prior to
    > moving), one now gives me this error:
    >
    > -------------------
    > Active Server Pages error 'ASP 0116'
    >
    > Missing close of script delimiter
    >
    > /curve/curve_login.asp, line 5
    >
    > The Script block lacks the close of script tag (%>).
    >
    > -------------------
    >
    > I have not changed anything in the code. I have simply
    moved the files to
    > the new server.
    > In testing, if I remove the block of ASP code that
    handles the login (all
    > enclosed in <% %> tags) then the page loads. If I
    put the code back ointo
    > the page, I get this error.
    >
    > The code works fine and has done for a year without
    issue on Win2K IIS5 -
    > so I have to think that this is an issue outside of the
    code, but what?
    >
    > I have very similar login code on other sites that I
    have moved and thay
    > are not causing me issues
    > Any ideas or suggestions would be most appreciated as
    this site has
    > basically been offline for a week now and I'm going
    insane!
    >
    > Cheers,
    > Rob
    >
    http://robgt.com/ [Tutorials and
    Extensions]

  • Oracle stored procedure works in toad but lots of error in java

    I've tested this stored procedure in toad 7.3 and it completes ok.
    I do pass the same IN parameters and OUT parameters.
    I registered the out parameter as a OracleTypes.CURSOR
    if it works in toad or pl/sql, what is wrong? how can this be fixed.
    however, when i execute this in java, this is the exception and garbage i receive:
    java.sql.SQLException: ORA-06550: line 1, column 22:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    := . ( @ % ;
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 33:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between is null is not || indicator is
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    my stored procedure is as follows:
    CREATE OR REPLACE PROCEDURE getUserByLogin (
    arg_subscriptionName IN varchar,
    arg_loginName IN varchar,
    arg_password IN varchar,
    arg_rec_userinfo_valLanguage OUT types.rec_userinfo_valLanguage
    ) AS
    var_userNum int;
    BEGIN
    select
    u.userNum into var_userNum
    from
    userInfo u,
    subscription s
    where
    s.subscriptionName = arg_subscriptionName AND
    s.subscriptionNum = u.subscriptionNum AND
    u.loginName = arg_loginName AND
    u.password = arg_password;
    if (var_userNum is null) then
    var_userNum := 0;
    end if;
    getUser(var_userNum, arg_rec_userinfo_valLanguage);
    END;
    /

    I'm using a callable statement.
    The strange thing is that, when i remove all IN and OUT paramters in the java code and the stored procedure, both the call to the stored procedure and teh execution of the stored procedure works.
    The moment I add in just a IN parameter (in the stored procedure, and setting it in the java code) it stops working, and i receive this error.
    java.sql.SQLException: ORA-06550: line 1, column 23:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    := . ( @ % ;
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    heres the java code and stored procedure
    CREATE OR REPLACE PROCEDURE sampleProcedure(tax out number)
    is
    BEGIN
    tax := 10 *.15;
    /END;
    CallableStatement statement =conn.prepareCall("{call sampleprocedure ?}");
    statement.registerOutParameter(1,java.sql.Types.INTEGER);
    statement.execute();
    ResultSet rs = statement.getResultSet();
    if((rs = statement.getResultSet()) != null){

  • More Lion issues - Throwing Console errors for non-existent application

    Again, with the bad side of Lion.
    I was receiving all kinds of console errors in Lion with TweetDeck and Adobe AIR apps so I de-installed these applications and removed them from the system. However, Apple's fantastic Lion Operating System still is complaining about them even though they are not to be found.
    In the console I am getting sandbox errors on locations and files that are non-existent. Below is a snapshot of the error messages, and the directory referred to:  /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast....  and the others DON'T EVEN EXIST!!
    How do I keep this from happening?  Why does the OS go after this when it's been removed?????
    8/20/11SaturdayAugust 5:30:14.113 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    8/20/11SaturdayAugust 5:31:11.000 PM    kernel    nstat_lookup_entry failed: 2
    8/20/11SaturdayAugust 5:31:44.239 PM    com.apple.SecurityServer    Session 100071 created
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/.fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:32:01.234 PM    Preview    snapshot of document took: 0.00030899 secs, calling unblockUserInteraction
    8/20/11SaturdayAugust 5:32:01.318 PM    Preview    writing of document took: 0.083616 secs, success = YES
    8/20/11SaturdayAugust 5:32:42.333 PM    rpcsvchost    sandbox_init: com.apple.msrpc.netlogon.sb succeeded
    8/20/11SaturdayAugust 5:32:42.483 PM    sandboxd    ([66316]) smbd(66316) deny job-creation
    8/20/11SaturdayAugust 5:32:42.583 PM    rpcsvchost    sandbox_init: com.apple.msrpc.srvsvc.sb succeeded
    8/20/11SaturdayAugust 5:32:42.609 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:32:53.587 PM    sandboxd    ([66320]) rpcsvchost(66320) deny mach-lookup com.apple.distributed_notifications@1v3
    8/20/11SaturdayAugust 5:34:53.329 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:39:32.429 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

    Don't know how you de-installed but you didn't fully uninstall them. If you did not have an uninstaller supplied with the applications, then here's what you need to consider in order to fully uninstall:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead.  Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • [8i] Subquery vs Multiple Analytic Functions

    Does anyone have an idea which is better performance-wise?
    I have a query that is 3 layers deep already with sub-queries. In the topmost level, I have a choice. I can calculate one analytic function twice, and one analytic function three times, or I can make the topmost level into a subquery, and calculate each analytic function only once.
    In case it matters for this problem, this query is running on an 8i database.
    A simplified example:
    CREATE TABLE     my_data
    (     order_no     CHAR(10)
    ,     seq_nbr          CHAR(4)
    ,     area_id          CHAR(4)
    ,     start_date     DATE
    ,     unit_time     NUMBER(7,2)
    INSERT INTO my_data VALUES ('0000567890','0010','A001',TO_DATE('05/01/2000','mm/dd/yyyy'),0.34);
    INSERT INTO my_data VALUES ('0000567890','0020','A001',TO_DATE('05/02/2000','mm/dd/yyyy'),0.78);
    INSERT INTO my_data VALUES ('0000567890','0030','A002',TO_DATE('05/03/2000','mm/dd/yyyy'),0.91);
    INSERT INTO my_data VALUES ('0000567890','0040','A003',TO_DATE('05/03/2000','mm/dd/yyyy'),0.27);
    INSERT INTO my_data VALUES ('0000123456','0010','A001',TO_DATE('04/01/2001','mm/dd/yyyy'),0.39);
    INSERT INTO my_data VALUES ('0000123456','0020','A001',TO_DATE('04/02/2001','mm/dd/yyyy'),0.98);
    INSERT INTO my_data VALUES ('0000123456','0030','A002',TO_DATE('04/03/2001','mm/dd/yyyy'),0.77);
    INSERT INTO my_data VALUES ('0000123456','0040','A003',TO_DATE('04/03/2001','mm/dd/yyyy'),0.28);
    INSERT INTO my_data VALUES ('0000123123','0010','A001',TO_DATE('12/01/2001','mm/dd/yyyy'),0.31);
    INSERT INTO my_data VALUES ('0000123123','0020','A001',TO_DATE('12/02/2001','mm/dd/yyyy'),0.86);
    INSERT INTO my_data VALUES ('0000123123','0030','A002',TO_DATE('12/03/2001','mm/dd/yyyy'),0.82);
    INSERT INTO my_data VALUES ('0000123123','0040','A003',TO_DATE('12/03/2001','mm/dd/yyyy'),0.23);
    INSERT INTO my_data VALUES ('0000111111','0010','A001',TO_DATE('06/01/2002','mm/dd/yyyy'),0.29);
    INSERT INTO my_data VALUES ('0000111111','0020','A001',TO_DATE('06/02/2002','mm/dd/yyyy'),0.84);
    INSERT INTO my_data VALUES ('0000111111','0030','A002',TO_DATE('06/03/2002','mm/dd/yyyy'),0.78);
    INSERT INTO my_data VALUES ('0000111111','0040','A003',TO_DATE('06/03/2002','mm/dd/yyyy'),0.26);
    INSERT INTO my_data VALUES ('0000654321','0010','A001',TO_DATE('05/01/2003','mm/dd/yyyy'),0.28);
    INSERT INTO my_data VALUES ('0000654321','0020','A001',TO_DATE('05/02/2003','mm/dd/yyyy'),0.88);
    INSERT INTO my_data VALUES ('0000654321','0030','A002',TO_DATE('05/03/2003','mm/dd/yyyy'),0.75);
    INSERT INTO my_data VALUES ('0000654321','0040','A003',TO_DATE('05/03/2003','mm/dd/yyyy'),0.25);My choices for the example are:
    SELECT     area_id
    ,     period_start
    ,     period_end
    ,     AVG(tot_area_unit_hrs)     
         OVER     (
              PARTITION BY     area_id
              ORDER BY     period_start
              RANGE BETWEEN     period_end - period_start     PRECEDING
                    AND     CURRENT ROW
         STDDEV(tot_area_unit_hrs)     
         OVER     (
              PARTITION BY     area_id
              ORDER BY     period_start
              RANGE BETWEEN     period_end - period_start     PRECEDING
                    AND     CURRENT ROW
              )           AS lo_unit_time
    ,     AVG(tot_area_unit_hrs)     
         OVER     (
              PARTITION BY     area_id
              ORDER BY     period_start
              RANGE BETWEEN     period_end - period_start     PRECEDING
                    AND     CURRENT ROW
              )               AS avg_unit_time
    ,     AVG(tot_area_unit_hrs)     
         OVER     (
              PARTITION BY     area_id
              ORDER BY     period_start
              RANGE BETWEEN     period_end - period_start     PRECEDING
                    AND     CURRENT ROW
              )               +
         STDDEV(tot_area_unit_hrs)     
         OVER     (
              PARTITION BY     area_id
              ORDER BY     period_start
              RANGE BETWEEN     period_end - period_start     PRECEDING
                    AND     CURRENT ROW
              )           AS hi_unit_time
    FROM     (
         SELECT     order_no
         ,     area_id
         ,     ADD_MONTHS(MIN(start_date),-24)+1     AS period_start
         ,     MIN(start_date)                    AS period_end
         ,     SUM(unit_time)                    AS tot_area_unit_hrs
         FROM     my_data
         GROUP BY     order_no
         ,          area_id
    ORDER BY     area_id
    ,          period_end
    ;or
    SELECT     area_id
    ,     period_start
    ,     period_end
    ,     avg_unit_time - stdev_unit_time     AS lo_unit_time
    ,     avg_unit_time
    ,     avg_unit_time + stdev_unit_time     AS hi_unit_time
    FROM     (
         SELECT     area_id
         ,     period_start
         ,     period_end
         ,     STDDEV(tot_area_unit_hrs)     
              OVER     (
                   PARTITION BY     area_id
                   ORDER BY     period_start
                   RANGE BETWEEN     period_end - period_start     PRECEDING
                         AND     CURRENT ROW
                   )           AS stdev_unit_time
         ,     AVG(tot_area_unit_hrs)     
              OVER     (
                   PARTITION BY     area_id
                   ORDER BY     period_start
                   RANGE BETWEEN     period_end - period_start     PRECEDING
                         AND     CURRENT ROW
                   )               AS avg_unit_time
         FROM     (
              SELECT     order_no
              ,     area_id
              ,     ADD_MONTHS(MIN(start_date),-24)+1     AS period_start
              ,     MIN(start_date)                    AS period_end
              ,     SUM(unit_time)                    AS tot_area_unit_hrs
              FROM     my_data
              GROUP BY     order_no
              ,          area_id
    ORDER BY     area_id
    ,          period_end
    ;My gut instinct would be that the 2nd option is faster (with the sub-query), but before I try this on my actual data set which is much larger, I'd like a second opinion. I don't want to accidentally start running a "neverending" query.

    Sorry for the delay in response here... I was busy deleting 39 GB of trace files, because some silly person (hangs head in shame) accidentally set TRACE_LEVEL_CLIENT=SUPPORT months ago and forgot to turn it off, and didn't notice until her hard drive was full and she couldn't save a file.....
    Anyway...
    @Dev
    For the real query...
    option 1 explain plan:
    OPERATION          OPTIONS          OBJECT_NODE   OBJECT_OWNER   OBJECT_NAME   OBJECT_INSTANCE   OBJECT_TYPE   OPTIMIZER      ID   PARENT_ID   POSITION   COST   CARDINALITY   BYTES    
    SELECT STATEMENT   REMOTE                                                                                      HINT: CHOOSE   0                6076       6076   1             91       
    SORT               ORDER BY                                                                                                   1    0           1          6076   1             91       
    WINDOW             SORT                                                                                                       2    1           1                 1             91       
    SORT               GROUP BY                                                                                                   3    2           1          6076   1             91       
    FILTER                                                                                                                        4    3           1                                        
    NESTED LOOPS                                                                                                                  5    4           1          6071   1             91       
    TABLE ACCESS       FULL             DB8I.WORLD    ASCHEMA        DETAILS       2                                              6    5           1          6068   1             50       
    INDEX              RANGE SCAN       DB8I.WORLD    ASCHEMA        ORDERS_IX3                      UNIQUE        ANALYZED       7    5           2          3      141930        5819130  
    TABLE ACCESS       BY INDEX ROWID   DB8I.WORLD    ASCHEMA        DETAILS       3                                              8    4           2          7      1             44       
    INDEX              RANGE SCAN       DB8I.WORLD    ASCHEMA        DETAILS_IX1                     NON-UNIQUE    ANALYZED       9    8           1          3      1                       option 2 explain plan:
    OPERATION          OPTIONS    OBJECT_NODE   OBJECT_OWNER   OBJECT_NAME   OBJECT_INSTANCE   OBJECT_TYPE   OPTIMIZER      ID   PARENT_ID   POSITION   COST   CARDINALITY   BYTES  
    SELECT STATEMENT                                                                                         HINT: CHOOSE   0                2777       2777   96            14208  
    SORT               ORDER BY                                                                                             1    0           1          2777   96            14208  
    VIEW                                        LOCALUSER                    1                                              2    1           1          2776   96            14208  
    WINDOW             SORT                                                                                                 3    2           1          2776   96            26400  
    HASH               GROUP BY                                                                                             4    3           1          2776   96            26400  
    FILTER                                                                                                                  5    4           1                                      
    REMOTE                        DB8I                                                         REMOTE                       6    5           1          1908   386           59830  
    REMOTE                        DB8I                         DETAILS                         REMOTE                       7    5           2          4      1             129     You should know, in order to get explain plan on these queries, I have to run them via a database link to the 8i database through XE 10g on my local machine, as I don't have access to run explain plan on the remote database itself. I've never seen my local user name appear before in an explain plan run this way, but it did in the one for option #2 (subquery), so I'd guess that wouldn't be the explain plan I'd get if I ran it just in the 8i database. I also find it really odd that the ORDERS table doesn't seem to be referenced in the 2nd explain plan... I do think that's still going to be my best option though, so I'm going to try it and hope it doesn't take too long.
    @Frank Kulash
    Agreed. That's what I'll try, and I also think that I can't put the analytic function in with the aggregates, without having to do some additional computations in that sub-query, which I think would defeat the purpose of putting them there in the first place.

Maybe you are looking for

  • The processing of Group Policy failed because of lack of network connectivity to a domain controller

    We are setting up a new AD environment  with one AD/DC running DNS services,  and a secondary DNS server configured with secondary zone. The problem is that none of the machines in the the domain are getting GPO. When I run a gpupdate /force from a m

  • Cannot properly install windows 7 on OSX Lion

    i went through the whole process of making sure i have a working windows 7 disk, went through bootcamp. restarted my early 2011 mbp w/ osx lion. it goes tot he black screen with flashing cursor for a few seconds, then goes to the "Press any key to in

  • Forte and MIDlet - how do you keep Forte from seeing J2SE classes?

    I am developing MIDlets with Forte; I have created a new MIDlet within a MIDlet suite, using the HelloWorld template. However Forte lets me use any old class in my code, not just the MIDP classes. For example, if I write a Float f = new Float(); line

  • Structured article (of type Set) in IS-Retail

    Dear Friends, I am using a structured article Set in IS-Retail which consists of components as other articles. I am not able to see the stock of main/parent structured article. When I do MB1C to increase stock of this struc article, only its componen

  • Cloud Computing Decrease Job Opportunity

    Hi Guru's, I have a query about Cloud Computing now everyone talking about the same, that from 2014 companies start thinking about the same. So it means DBA jobs are less in market So What need to do to cope up with this possibility. Kindly guide ove