Transform Again Gives Inconsistent Results

When building albums, I place a number of pictures on a page; these pictures are generally the same size.  So I bring the first image into a template and then Free Transform (Ctl+T) it to, say 4 X 6."   Then I bring in others, do a Transform Again (Shift+Ctl+T).  60-70% of the time I will get 4 X 6" images but in 30-40% of the time, I get some other dimension either bigger of smaller than 4 X 6."  I then cancel the errant transform (Ctl+Z) and do a new Free Transform and get a correct 4 X 6."  This erratic behavior of Transform Again really slows down my work flow.  I'm wondering if it is something that I am doing to a file in Camera Raw (like cropping or straightening) before bringing it into Photoshop that is creating this problem???

Here is my workflow.
1. I open a blank template that is 20 X 30.'
2. I then open 8 images.
3. I drag the first image into the template and then free transform to a
size that I like, say 4 X 6."
4. I then drag a second image into the template and apply free transform
again (ShiftCtlT).
5. I drag 9 more images into the template and one-by-one FT them to 4 X
6."  Except, they do not all end up 4 X 6"even though I use the Free
Transfrom again command.
Sometimes the second image is transformed to 4 X 6," other times to some
other size.

Similar Messages

  • Sdo_union gives inconsistent results

    Hi,
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    We are using sdo_union to convert line geometries. Some of the geometries that are inserted into our database have sdo_gtype 2006, but can be easily converted to 2002 using a query like:
    update lines_tb l
    set    shape = case when sdo_geom.sdo_union(l.shape, l.shape, 0.001).sdo_gtype = 2002
                        then sdo_geom.sdo_union(l.shape, l.shape, 0.001)
                        else l.shape
                   end
    where  l.shape.sdo_gtype = 2006;We notice however that if you run the query again, it keeps finding results! It does not make any sense...
    The only conslusion I can make is that sdo_union is not consistent in its results!
    Can anyone confirm this behaviour?
    Thanks,
    Rop

    Here's an example that shows the issue:
    with g as ( select sdo_geometry(2006,31370,sdo_point_type(null,null,null),
                       sdo_elem_info_array( 1,2,1,7,2,1,15,2,1,53,2,1,61,2,1),
                       sdo_ordinate_array( 63634.1550000012,183385.377799999,63638.9395999983,183373.2269,63641.8335999995,183365.5623,63634.1550000012,183385.377799999,63634.1600999981,
                                           183385.3662,63634.1458000019,183385.400899999,63634.1550000012,183385.377799999,63632.0187999979,183387.558600001,63632.0841000006,183387.529199999,
                                           63632.2485999987,183387.4463,63632.4094000012,183387.356400002,63632.5659999996,183387.259599999,63632.7184000015,183387.156100001,63632.8660999984,
                                           183387.046100002,63633.0088,183386.9298,63633.1463999972,183386.807300001,63633.2780999988,183386.679499999,63633.4047999978,183386.545499999,63633.5253999978,
                                           183386.406199999,63633.6398999989,183386.261799999,63633.7479000017,183386.112599999,63633.8493999988,183385.958799999,63633.9442000017,183385.800799999,
                                           63634.0319999978,183385.638799999,63634.1125999987,183385.473099999,63634.1550000012,183385.377799999,63632.0187999979,183387.558600001,63632.1538000032,
                                           183387.529800002,63631.9161999971,183387.604800001,63632.0187999979,183387.558600001,63619.0442000032,183388.850099999,63629.3642999977,183388.124699999,
                                           63632.0187999979,183387.558600001 )) geom from dual )
    select sdo_geom.sdo_union(g.geom,g.geom, 0.001).sdo_gtype
    from   g
    ,    ( select * from all_tables where rownum <= 100)On our database (10g Enterprise Edition Release 10.2.0.4.0) this will give results like:
    2002
    2006
    2006
    2006
    2006
    ...But sometimes it gives only 2002 and other times only 2006...
    Edit: All geometries have been validated.

  • Oracle gives an inconsistent result. what am I supposed to do?

    I was very upset with Oracle XML DB after I found that Oracle didn't give a consistent result.
    I guess my Oracle XML DB didn't fully installed.
    I got an help from Geoff Lee
    his xquery
    select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    let $in-xml :=
    <noNamespace>
    <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance">
    <unprefixed>testing</unprefixed>
    </xbrli:prefixed>
    </noNamespace>
    return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual
    gives me errors with Oracle 10g 10.2.0.3.0 in SunOS 5.8 sun4u sparc SUNW,Netra-T12
    SQL> select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;declare namespace iso4217="http://www.xbrl.org/2003/iso4217";let $in-xml := <noNamespace> <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance"> <unprefixed>testing</unprefixed> </xbrli:prefixed></noNamespace>return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual
    ORA-19112: 평가 중 오류 발생:
    ORA-06550: 줄 1, 열13:PLS-00201: 'SYS.DBMS_XQUERYINT' 식별자가 정의되어야 합니다
    ORA-06550: 줄 1, 열7:PL/SQL: Statement ignored
    but gives me correct answer expected with Oracle 10g 10.2.0.1.0 in Windows XP
    SQL> select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    let $in-xml :=
    <noNamespace>
    <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance">
    <unprefixed>testing</unprefixed>
    </xbrli:prefixed>
    </noNamespace>
    return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual;
    XMLQUERY('DECLARENAMESPACE...
    xbrli:prefiexd
    1 rows selected
    I asked Oracle technical support team to come , what am I supposed to ask them to fix the problem?
    I have things to ask.
    this query works fine.
    select extract( value(it),
    '/krfr-pte:*',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ).getStringVal() as output
    from XBRLO r,
    table (
    xmlsequence(
    extract(object_value,
    '/xbrli:xbrl/krfr-pte:*[@contextRef="D20070331_001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) it
    where existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10
    please focus on extracting element with prefix , krfr-pte:*.
    But this kind of xpath failed with Xquery , it's weird.
    I tested this xquery with both CLOB based XBRLC, Object-relational XBRLO table, both ot them failed.
    select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/krfr-pte:*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLO o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10
    I definitely believe this xquery is correct, I checked it out with XMLSPY which gave me correct answer.
    and CLOB table XBRLC, Object-relational table XBRLO
    They behaved differently with same xquery that made me frustrated a lot.
    I changed xquery with prefix krfr-pte: and applied it to XBRLC (Clob based)
    it made a correct answer.
    SQL> select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLC o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10;
    OUTP
    <link:schemaRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="http://www.xbrlkorea.com/taxonomies/kr/kisinfo/fr/application/ci/2007-02-09/kisinfo-ci-std-2007-02-09.xsd" xlink:type="simple"/>
    <xbrli:context xmlns:xbrli="http://www.xbrl.org/2003/instance" id="I20070331_001097">
    <xbrli:entity>
    this time , I tried it with XBRLO - Object-relational
    SQL>trucate table XBRLO;
    SQL>insert into XBRLO select OBJECT_VALUE from XBRLC;
    SQL> select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLO o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10;
    OUTP
    0 rows selected.
    How could I do with inconsistent result .
    I'm really in trouble . please get me out !!

    These look bugs to me. Please work with Oracle support to file TARs with these problems. In the meantime, does extract() with XPath meet your needs?
    Regards,
    Geoff

  • Endeca dimension search on first throw error and when hit again gives result

    Getting below error for search terms like - 'the the of the book' , which converts to dimension search.
    status >> ENE error
    ENEException
    com.endeca.navigation.ENEException: Navigation Engine not able to process request 'http://10.1.0.205:9300/search?terms=the+the+paper&opts=mode+matchall&rank=0&offset=0&compound=1&irversion=601'.
    When hit the same URL again returns the result set.
    Please provide a solution

    The formatting is pretty terrible, but I included the ULS logs with that correlation id in my initial post.  I can't make out any useful information from it, hence heading here.
     

  • Why is the rotate point moving when using Transform Again on a triangle?

    I am trying to create a pattern that I have created in previous itterations of Illustrator. In CC when I create a triangle (either via Star, Poly, or Pen tool) and then try to rotate it via Transform Each > Transform again, the rotation point moves according to what the bounding box would be if I reset it, rather than staying in one (original) spot relative to the actual bounding box and triangle. I cannot find any settings that would be affecting the rotate point in this way. I am pretty confident that I am using the same procedure now that I did in older versions of Illustrator. Perhaps I am using the wrong procedure.
    Naturally, if you are rotating something around its center you should expect that it would end up create a circular pattern. It is more of a square with concave sides. The red is a perfect circle that I grouped to the triangle to demonstrate the rotate points movement. It is located in the exact center according to the align tools.

    With the rotate tool, option click to set you point of rotation.
    You also may want to look into the transform effect, theres is a box with 9 points for your anchor points you can try. You can also add an object filled with none, group this with your object, and transform the group, to get offset results with the transform effect.

  • Inconsistent results with MDX formula

    Hi. I'm converting a BSO cube to ASO, and it has dynamically calculated formulas that I'm converting to MDX. I have a formula that is supposed to accumulate an account (Order Intake) through the months and years until it gets to the current month of the current year (set by substitution variables) and then just carries that balance forward until the end.
    This is the formula I wrote in MDX.
    IIF( Count( Intersect( {MemberRange([Years].[FY95], [&Auto_CurYr].Lag(1))}, {Years.CurrentMember} ) ) = 1,
    IIF(CurrentMember ([Period]) = [Jan],
    [Order Intake] + ([Contract Value],[Adj],[Years].CurrentMember.PrevMember),     
    [Order Intake] + ([Contract Value],[Period].CurrentMember.PrevMember)
    IIF( CurrentMember ([Years]) = [&Auto_CurYr],
    IIF( CurrentMember ([Period]) = [Jan],
    [Order Intake] + ([Contract Value],[Adj],[Years].CurrentMember.PrevMember),
    IIF( Count( Intersect( {MemberRange([Period].[Feb], [&Auto_CurMoNext_01].Lag(1))}, {Period.CurrentMember} ) ) = 1,
    [Order Intake] + ([Contract Value],[Period].CurrentMember.PrevMember),
    ([Contract Value],[Period].CurrentMember.PrevMember)
    ([Contract Value],[Adj],[Years].CurrentMember.PrevMember) /*This is the statement that evaluates for months and years after the current month and year*/
    The inconsistent results are as follows:
    I have a spreadsheet that has the years and months across the top in columns. The substitution variables are set to FY09 for the year and Oct for the month. The formula works fine until it gets to Jan of FY10, at which point it produces a number out of thin air, and carries that incorrect number through to the end.
    When I put the years and months into my rows, however, and then drill down on the months, I get different results. Not only different, but different results at different times, too. When I first drilled, all results were correct. Now when I drill, it produces a random number in October of FY09 (not entirely random, but actually double what it's supposed to be), then #missing in Nov of FY09, then the correct number thereafter. Same exact data intersection on both spreadsheets, different results. I've retrieved over and over again, and the only time it might change is if I re-drill. I've used both Essbase Add-in and Smart View with consistently inconsistent results.
    Has anyone ever encountered this sort of behavior with an MDX formula?

    Well, I finally got a formula that works. I did end up using a combination of CASE and IIF, but I never did figure out how to deal with summing up ranges of data correctly, accounting for changing substitution variables, so I had to do a lot of hard coding by month. For instance, I couldn't ask it to sum([Order Intake],[Jan],[&Auto_CurYr]:([Order Intake],[&Auto_CurMo],[&Auto_CurYr]). Although it validated fine, when I tried to retrieve it said members were not of the same generation, presumably because my substitution variable could potentially be a non - level 0 month (it worked if I hard coded the end month). Also, I really don't like the MDX version of @LSIBLINGS and @RSIBLINGS.
    But this works.
    CASE
    When Count( Intersect( {MemberRange([Years].[FY95], [&Auto_CurYr].Lag(1))}, {Years.CurrentMember} ) ) = 1
    THEN IIF(CurrentMember ([Period]) = [Jan],
    [Order Intake] + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Feb],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Feb]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Mar],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Mar]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Apr],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Apr]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [May],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[May]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Jun],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Jun]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Jul],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Jul]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Aug],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Aug]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Sep],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Sep]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Oct],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Oct]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Nov],
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Nov]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Dec]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember))
    When CurrentMember ([Years]) IS [&Auto_CurYr]
    THEN IIF(CurrentMember ([Period]) = [Jan],
    [Order Intake] + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Feb] AND CONTAINS([Feb], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Feb]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Mar] AND CONTAINS([Mar], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Mar]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Apr] AND CONTAINS([Apr], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Apr]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [May] AND CONTAINS([May], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[May]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Jun] AND CONTAINS([Jun], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Jun]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Jul] AND CONTAINS([Jul], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Jul]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Aug] AND CONTAINS([Aug], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Aug]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Sep] AND CONTAINS([Sep], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Sep]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Oct] AND CONTAINS([Oct], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Oct]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    IIF(CurrentMember ([Period]) = [Nov] AND CONTAINS([Nov], {MEMBERRANGE([&Auto_CurMoNext_01].FirstSibling, [&Auto_CurMoNext_01].Lag(1))}),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[Nov]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember)),
    Sum(CrossJoin({[Order Intake]}, {[Jan]:[&Auto_CurMo]})) + sum(([Order Intake],[YearTotal],[FY95]):([Order Intake],[YearTotal],[Years].CurrentMember.PrevMember))
    WHEN CONTAINS([Years].CurrentMember, {MemberRange([&Auto_CurYr].Lead(1), [Years].[FY15])})
    THEN ([Contract Value],[Adj],[Years].&Auto_CurYr)
    END
    Thanks for looking at it, Gary, I appreciate it.
    Sabrina
    Edited by: SabrinaD on Nov 18, 2009 2:29 PM
    Edited by: SabrinaD on Nov 18, 2009 2:31 PM
    Edited by: SabrinaD on Nov 18, 2009 2:34 PM
    Edited by: SabrinaD on Nov 18, 2009 2:35 PM

  • Calling PL/SQL Procedure In Another Schema Gives Unexpected Result

    I have a SQL Script that does this:
    conn pnr/<password for user pnr>;
    set serveroutput on;
    exec vms.disable_all_fk_constraints;
    SELECT owner, constraint_name, status FROM user_constraints WHERE constraint_type = 'R';
    and the disable_all_fk_constraints procedure that is owned by user 'vms' is defined as:
    create or replace
    procedure disable_all_fk_constraints is
    v_sql   VARCHAR2(4000);
    begin
    dbms_output.put_line('Disabling all referential integrity constraints.');
    for rec in (SELECT table_name, constraint_name FROM user_constraints WHERE constraint_type='R') loop
    dbms_output.put_line('Disabling constraint ' || rec.constraint_name || ' from ' || rec.table_name || '.');
    v_sql := 'ALTER TABLE ' || rec.table_name || ' DISABLE CONSTRAINT ' || rec.constraint_name;
    execute immediate(v_sql);
    end loop;
    end;
    When I run the SQL script, the call to vms.disable_all_fk_constraints disables the FK constrains in the 'vms' schema, whereas I wanted it to disable the FK constraints in the 'pnr' schema (the invoker of the procedure). I know that I could make this work by copying the disable_all_fk_constraints procedure to the 'pnr' schema and calling it as "+exec disable_all_fk_constraints;+" from within the SQL script but I want to avoid having to duplicate the PL/SQL procedure in each schema that uses it.
    What can I do?
    Thank you

    You have two issues to solve.
    First you need to write a packaged procedure that works with INVOKER rights. The default is DEFINER rights.
    The difference is excatly what you need. Usually the package has the rights from the schema where it is defined (=Definer rights). In your case schema VMS. Whereas you need the privileges from the user that calls the package (PNR).
    => Check out the documentation for INVOKER rights
    The second problem is that the view "user_constraints" will not give the results you expect when called from inside a procedure in another schema. An alternative could be to use the view DBA_CONSTRAINTS with a filter on the owner (where owner = 'PNR'). Not sure if there are other working possibilities. Well you could create a list of constraint names that you want to disable, instead of creating the list dynamically.
    And you could have another potential disaster creeping up upon you. If you run this thing, then at this moment you don't have any referential integrity anymore. You can't be sure that you can create the FKs again after this action. This is EXTREMLY DANGEROUS. I would never ever do this in any kind of production or test database. I would be very careful when I do it on a development database.

  • Any by Any returns inconsistant results

    Hi All, hope someone can help.
    Our system is BPC 5.1 MS, running on SQL 2005.
    We have a strange issue where the standard Any by Any report provided with the installation is returning inconsistant results.
    What is happening is that when I create an Any by Any report, the results in the table do not list all the possible values (i.e. the line/column headers [members] are there, but an amount does not appear in the intersection). The totals at the bottom & right are correct, showing what is in the system.
    An evDRE report creating exactly the same layout will show all the values, so the problem is not in the system.
    Does anyone have any idea what could be causing this?
    Regards,
    Peter

    Hi Patrick,
    Thanks for that SAPNote.
    I think that the issue may be along these lines!
    The Any by Any is using an evEXP to create it's expansion, the evEXP is referring to an MDX expression.
    The problem comes in when looking at the MDX expression ...
    1.) The SAPNote is referring to NESTED expansions ... this is not the case in the Any-by-Any
    2.) The SAPNote is referring to Dimensions with multiple hierarchies ... but the Any-by-Any gives the same issue even if I choose 2 dimensions that both only have a single hierarchy.
    The reason I think we may be on the right track, is that the lines that are missing are exactly the ones that would be expludes by "<>0" ... The problem is that the evEXP is only testing the TOP member chosen, & therefore misses out the ones where there may be values at a lower level, but they nett off.
    The SAPNote says that:
    "("&$I$24&".Currentmember,["&J25&"])<>0"
    Should change to ...
    "(["&$I$24&".H1].Currentmember,["&J25&"])<>0"
    The Any-by-Any I have has:
    "(["&$G$13&"],["&$E$17&"])<>0"
    I have tried the following:
    1.) Added in .CurrentMember ...
    a.)
    "(["&$G$13&"].CurrentMember,["&$E$17&"])<>0"
    b.)
    "(["&$G$13&".H1].CurrentMember,["&$E$17&"])<>0"
    2.) Removed the square brackets ...
          a.)
    "("&$G$13&",["&$E$17&"])<>0"
          b.)
    "("&$G$13&","&$E$17&")<>0"
          c.)
    "(["&$G$13&"],"&$E$17&")<>0"
    None of the options above work
    Any ideas?
    PS ... I see my greater than / less than operators are missing just before the zeroes ... they are there, I just can't get them to show on the HTML

  • Select for update gives wrong results. Is it a bug?

    Hi,
    Select for update gives wrong results. Is it a bug?
    CREATE TABLE TaxIds
    TaxId NUMBER(6) NOT NULL,
    LocationId NUMBER(3) NOT NULL,
    Status NUMBER(1)
    PARTITION BY LIST (LocationId)
    PARTITION P111 VALUES (111),
    PARTITION P222 VALUES (222),
    PARTITION P333 VALUES (333)
    ALTER TABLE TaxIds ADD ( CONSTRAINT PK_TaxIds PRIMARY KEY (TaxId));
    CREATE INDEX NI_TaxIdsStatus ON TaxIds ( NVL(Status,0) ) LOCAL;
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100101, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100102, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100103, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100104, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200101, 222, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200102, 222, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200103, 222, NULL);
    --Session_1 return TAXID=100101
    select TAXID from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_2 waits commit
    select TAXID from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_1
    update TAXIDS set STATUS=1 Where TaxId=100101;
    commit;
    --Session_2 return 100101 opps!?
    --Session_1 return TAXID=100102
    select TAXID, STATUS from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_2 waits commit
    select TAXID, STATUS from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_1
    update TAXIDS set STATUS=1 Where TaxId=100102;
    commit;
    --Session_2 return 100103                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This is a bug. Got to be a bug.
    This should be nothing to do with indeterminate results from ROWNUM, and nothing to do with read consistency at the point of statement start time in session2., surely.
    Session 2 should never return 100101 once the lock from session 1 is released.
    The SELECT FOR UPDATE should restart and 100101 should not be selected as it does not meet the criteria of the select.
    A statement restart should ensure this.
    A number of demos highlight this.
    Firstly, recall the original observation in the original test case.
    Setup
    SQL> DROP TABLE taxids;
    Table dropped.
    SQL> 
    SQL> CREATE TABLE TaxIds
      2  (TaxId NUMBER(6) NOT NULL,
      3   LocationId NUMBER(3) NOT NULL,
      4   Status NUMBER(1))
      5  PARTITION BY LIST (LocationId)
      6  (PARTITION P111 VALUES (111),
      7   PARTITION P222 VALUES (222),
      8   PARTITION P333 VALUES (333));
    Table created.
    SQL>
    SQL> ALTER TABLE TaxIds ADD ( CONSTRAINT PK_TaxIds PRIMARY KEY (TaxId));
    Table altered.
    SQL>
    SQL> CREATE INDEX NI_TaxIdsStatus ON TaxIds ( NVL(Status,0) ) LOCAL;
    Index created.
    SQL>
    SQL>
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100101, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100102, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100103, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100104, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200101, 222, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200102, 222, NULL);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> Original observation:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> Session 2 with same statement hangs until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> At which point, Session 2 returns
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session2>There's no way that session 2 should have returned 100101. That is the point of FOR UPDATE. It completely reintroduces the lost UPDATE scenario.
    Secondly, what happens if we drop the index.
    Let's reset the data and drop the index:
    Session1>UPDATE taxids SET status=0 where taxid=100101;
    1 row updated.
    Session1>commit;
    Commit complete.
    Session1>drop index NI_TaxIdsStatus;
    Index dropped.
    Session1>Then try again:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> Session 2 hangs again until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> At which point in session 2:
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100102
    Session2>Proves nothing, Non-deterministic ROWNUM you say.
    Then let's reset, recreate the index and explicity ask then for row 100101.
    It should give the same result as the ROWNUM query without any doubts over the ROWNUM, etc.
    If the original behaviour was correct, session 2 should also be able to get 100101:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    taxid         = 100101
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> same statement hangs in session 2 until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> so session 2 stops being blocked and:
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    taxid         = 100101
      6  FOR UPDATE;
    no rows selected
    Session2>Of course, this is how it should happen, surely?
    Just to double check, let's reintroduce ROWNUM but force the order by to show it's not about read consistency at the start of the statement - restart should prevent it.
    (reset, then)
    Session1> select t.taxid
      2   from
      3    (select taxid, rowid rd
      4      from   taxids
      5      where  locationid = 111
      6      and    nvl(status,0) = 0
      7      order by taxid) x
      8   ,  taxids t
      9   where t.rowid = x.rd
    10   and   rownum = 1
    11   for update of t.status;
         TAXID
        100101
    Session1>
    --> Yes, session 2 hangs until...
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> and then
    Session2> select t.taxid
      2   from
      3    (select taxid, rowid rd
      4      from   taxids
      5      where  locationid = 111
      6      and    nvl(status,0) = 0
      7      order by taxid) x
      8   ,  taxids t
      9   where t.rowid = x.rd
    10   and   rownum = 1
    11   for update of t.status;
         TAXID
        100102
    Session2>Session 2 should never be allowed to get 100101 once the lock is released.
    This is a bug.
    The worrying thing is that I can reproduce in 9.2.0.8 and 11.2.0.2.

  • Maps can not find my location, or gives incorrect results

    when I tap the "locator" icon at the bottom right of Maps, it can't find my location, or gives incorrect results such as San Francisco, or somewhere south of Detroit, MI

    This is what I did, and it worked for me. My location was coming up in the correct city, Philadelphia, but at the wrong neighborhood, a couple of miles away. I turned off the wifi, and made the locator find me by Edge only. Then I turned the Wifi back on and had the locator find me again, and it went back to the wrong location, but 2 seconds later found the correct address within a few blocks. I have the Original iPhone BTW.

  • Iphone 5 app store search gives blank result all the time, please advise how to solve?

    iphone 5 search in app store always gives blank result all the time, please advise how to solve? It worked several times when I first used the phone from unboxed, but since then, it never work again. Could you please advise how to fix? Thanks

    Try reseting (not just turning off) your phone: hold down the Home button and the Power button on the top until the Silver Apple appears (ignore the red slider if it appears). See if the reset clears things up!
    Cheers,
    GB

  • Custom search using boolean attribute set to True gives no result

    I am setting up an auto-query using the custom search portlet. This is to show all items where a boolean custom attribute is checked, ie = True.
    In step 3 I have tried to set the operator to Equals to and the default value to True. This gives no results even though several items have this attribute set to True.
    The Auto Query check box is checked.

    Found that True = 1 in database. When set to this the search works.

  • Query resulting inconsistent results

    Hi,
    I'm running Oracle 10.2.0.4 and have a partitioned table.
    When I run the query
    select bse_rem_bse, ben_aly_num from dw_cn2.prs_old
    where bse_rem_bse = 3
    I'm getting records with null data (i.e. bse_rem_bse is 'null') and the correct data (i.e. bse_rem_bse is 3).
    bse_rem_bse is a number type data field.
    Can anyone help me understanding the inconsistent result
    and how to find what's broken in table.
    Thanks
    Tarun

    Post your table structure along with data type and some sample data here. Also, post your DB version by executing the following query -
    select * from v$version;Regards.
    Satyaki De.

  • P/L A/c for a single day gives different results for different users

    Hi!
         We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
    Thanks
    Sreekumar

    Hi Jitin,
              Thanks for your reply.
              I tried the way you mentioned. However, the result is the same.
              The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
              To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
    Thanks & Regards
    Sreekumar
    Edited by: Sreekumar on Jan 31, 2012 5:58 PM

  • Inconsistent results from rpm

    Hi Oracle Forums,
         I am installing packages required for Oracle Database 11gR2, and am having problems with rpm responses.
         When I query rpm about a package, it tells me that the package is not installed. When I go to install the package, rpm informs me that the package is already installed. An example is shown below:
    [root@OELVM02 Server]# uname -a
    Linux OELVM02.localdomain 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# pwd
    /media/OL5.8 x86_64 dvd 20120229/Server
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# ls -alrt binutils-2.17.50.0.6-20.el5.x86_64.rpm
    -rw-r--r-- 1 root root 3069914 Dec 28  2011 binutils-2.17.50.0.6-20.el5.x86_64.rpm
    [root@OELVM02 Server]#
    [root@OELVM02 Server]#  rpm -q ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
    package ./binutils-2.17.50.0.6-20.el5.x86_64.rpm is not installed
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# rpm -ivh ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
    warning: ./binutils-2.17.50.0.6-20.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
    Preparing...                ########################################### [100%]
            package binutils-2.17.50.0.6-20.el5.x86_64 is already installed
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# rpm -q ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
    package ./binutils-2.17.50.0.6-20.el5.x86_64.rpm is not installed
    [root@OELVM02 Server]#     I do not understand the inconsistent results that rpm is giving me.
         Any help would be greatly appreciated
         Thanks
         Gavin

    Hi Avi,
         Thanks for your quick response!!
         The Oracle documentation requires that both the 32 and 64 bit rpm's be installed for some packages. In the below scenario, is rpm telling me that both 32 and 64 bit packages are installed?
    [root@OELVM02 Server]# uname -a
    Linux OELVM02.localdomain 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# pwd
    /media/OL5.8 x86_64 dvd 20120229/Server
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# ls -alrt *glibc-2*
    -rw-r--r-- 1 root root 1544040 Nov 18  2010 compat-glibc-2.3.4-2.26.x86_64.rpm
    -rw-r--r-- 1 root root 1069214 Nov 18  2010 compat-glibc-2.3.4-2.26.i386.rpm
    -rw-r--r-- 1 root root 5607577 Feb 26  2012 glibc-2.5-81.i686.rpm
    -rw-r--r-- 1 root root 4997627 Feb 26  2012 glibc-2.5-81.x86_64.rpm
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# rpm -q glibc-2.5-81.i686
    glibc-2.5-81
    [root@OELVM02 Server]#
    [root@OELVM02 Server]#  rpm -q glibc-2.5-81.x86_64
    glibc-2.5-81
    [root@OELVM02 Server]#
    [root@OELVM02 Server]#     Thanks heaps
         Gavin

Maybe you are looking for

  • Hide Calendars in iCal

    Hi there, Does anyone know if there is a way to hide calendars in iCal on the iPhone? I have an Automator calendar that I just don't need to see in every day. Can I get rid of it?

  • BADI ME_GUI_PO_CUST for PO screen

    Hello, I need to add a button to the ME21n/22/23 transaction to call my own screens. I am trying to identify some screen enhancements through which I can add my push button. I am working on ERP2005. I identified badi ME_GUI_PO_CUST, but it does not h

  • Accounting Doc is created and it is in RSA3, but not loaded into BW side ?

    Hi all,     One Accounting Document (of Credit Memo type) has been created with Tcode VF01 and this document exists in Extractor Checker (RSA3) and BSEG & BKPF tables and it has the corresponding Billing Document (VBELN) details in those tables. The

  • Messages in Buffered queue not beeing applied

    Hi All, Im running a streams environment. The receiving server crashed and was restarted. The apply process was restarted and the buffer was flooded with messages. Flow control initiatied on the sending database. The apply process doesn't show errors

  • Is there a note app that features encryption, folders, backup, and import/export?

    Hi friends, I have been searching for a month for a Notetaking app for the iphone which has these attributes: able to import/export notes from some form of text file suchas csv. I need to bring over a large number of notes from my android phone. I ca