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.

Similar Messages

  • Query returning inconsistent result at each execution

    Hi All,
    Does any 1 have an idea?.I have 2 tables with more than 60 lac records.In a query i have to inner join the 2 tables and there is a where clause.
    select dsp.col2, s.col3
    from table1 dsp inner join table2 s
    on dsp.col1=s.col1
    where dsp.col2='30-Jan-2009'
    The query output used to work earlier but nowadays it seems the where clause is not working.The o/p is varied resultset.

    What is your Oracle version?
    It is working - (Off course in a small environment i've tested it. ;) )
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>ed
    Wrote file afiedt.buf
      1  select e.ename, d.loc
      2     from emp e inner join dept d
      3     on ( e.deptno = d.deptno)
      4* where e.hiredate < sysdate
    satyaki>/
    ENAME      LOC
    WARD
    MARTIN
    SCOTT      NY
    KING       KOLKATA
    TURNER
    ADAMS      NY
    JAMES
    FORD       NY
    MILLER     KOLKATA
    Smith      KOLKATA
    Glen       KOLKATA
    11 rows selected.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Inconsistent results returned from the same query

    Hi,
    My company has a oracle 8i DB as backend for the website it is currently hosting. I wrote a plain SQL select query to retrive results from a table. Usually the query returns 50 to 100 records. We build an xml based on the results and cache the xml for subsequent user hits.
    But atleast once or twice a day we get a problem where it returns almost no records. So the resulting xml will be blank and from there on until we delete the cached xml the user sees the page as blank.
    I wonder why this happens, does this happen because of more hits to the oracle database?. Or is it because of the indexes created on the table?. Is oracle not able to handle multiple user requests?. We get mostly like 10 to 20 people clicking at the same time. I don't know what is causing the failure.
    Does any of you have this inconsistency problems with Oracle?
    Thanks in advance
    sony

    Please ask questions on Oracle Text (formerly InterMedia text) in the Oracle Text forum, you will get a quicker, more expert answer there.

  • 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

  • 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

  • Same query giving different results

    Hi
    I m surprised to see the behaviour of oracle. I have two different sessions for same scheema on same server. In both sessions same query returns different results. The query involves some calculations like sum and divisions on number field.
    I have imported this data from another server using export / import utility available with 9i server. Before export every thing was going fine. Is there some problem with this utility.
    I m using Developer 6i as the front end for my client server application. The behaviour of my application is very surprizing as once it shows the correct data and if I close the screen and reopen, it shows wrong data.
    I m really stucked with the abnormal behaviour. Please tell me the possiblities and corrective action for these conditions.
    Regards
    Asad.

    There is nothing uncommitted in both the sessions. But still different results are returned.
    I m sending u the exact query and result returned in both sessions.
    Session 1:
    SQL> rollback;
    Rollback complete.
    SQL> SELECT CC.CREDIT_HRS,GP.GRADE_PTS
    2 FROM GRADE G, COURSE_CODE CC, GRADE_POLICY GP
    3 WHERE G.COURSE_CDE=CC.COURSE_CDE
    4 AND G.SELECTION_ID=45 AND G.GRADE_TYP=GP.GRADE_TYP
    5 AND G.TERM_PROG_ID=17 AND GP.TERM_ID=14
    6 /
    CREDIT_HRS GRADE_PTS
    3 4
    4 3.33
    4 3.33
    3 4
    3 4
    3 4
    3 4
    7 rows selected.
    SQL>
    SESSION 2:
    SQL> rollback;
    Rollback complete.
    SQL> SELECT CC.CREDIT_HRS,GP.GRADE_PTS
    2 FROM GRADE G, COURSE_CODE CC, GRADE_POLICY GP
    3 WHERE G.COURSE_CDE=CC.COURSE_CDE
    4 AND G.SELECTION_ID=45 AND G.GRADE_TYP=GP.GRADE_TYP
    5 AND G.TERM_PROG_ID=17 AND GP.TERM_ID=14
    6 /
    CREDIT_HRS GRADE_PTS
    3 4
    4 3.33
    3 4
    3 4
    3 4
    3 4
    6 rows selected.
    SQL>
    U can see in session 1, seven rows are returned while in session 2 six rows are returned. I have issued a rollback before query to be sure that data in both sessions is same.

  • Passing Parameters to SQL Query and Displaying Result

    The user enters a serial number in a text box and then pushes a button to get info about the serial number. I do this with two regions. The first region has the text box and the button. The second region is a Report type region and contains the following SQL:
    select case
    when "WARRANTYSTATUS"."OUTOFWARRANTYDATE" >= sysdate then
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is in warranty.'
    else
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is out of warranty.'
    end as "The result is:"
    from "WARRANTYSTATUS"
    where "WARRANTYSTATUS"."SERIALNUMBER" in (:P1_SERIALNUMBER)
    For a single serial number of the form CU5-0799 every thing works. I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties. Not sure where the single quoties are being added.
    However, what I like to do is to enter more that one serial number, seperated by commas, in the same text box, and then the query return a result for each serial number. What I would like to enter is:
    CU5-0799, CU5-07132, CU5-89345
    The problem is this string of three serial numbers will needs to be have single quotes around each serial number at the level of the sql statement. So the question is how do I make this work?? Thanks for the help in advance.

    Bob,
    If you would change your OTN handle to something more mnemonically friendly, that would help us. Thanks.
    This topic is addressed fully, with various techniques described, here: Re: Search on a typed in list of values .
    I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties.
    Not true. Quotes are used for literals, not bind variables.
    Scott

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Same Query returning different result (Different execution plan)

    Hi all,
    To day i have discovered a strange thing: a query that return a different result when using a different execution plan.
    The query :
    SELECT  *
      FROM schema.table@database a
    WHERE     column1 IN ('3')
           AND column2 = '101'
           AND EXISTS
                  (SELECT null
                     FROM schema.table2 c
                    WHERE a.column3 = SUBSTR (c.column1, 2, 12));where schema.table@database is a remote table.
    when executed with the hint /*+ ordered use_nl(a c) */ these query return no result and its execution plan is :
    Rows     Row Source Operation
          0  NESTED LOOPS  (cr=31 r=0 w=0 time=4894659 us)
       4323   SORT UNIQUE (cr=31 r=0 w=0 time=50835 us)
       4336    TABLE ACCESS FULL TABLE2 (cr=31 r=0 w=0 time=7607 us)
          0   REMOTE  (cr=0 r=0 w=0 time=130536 us)When i changed the execution plan with the hint /*+ use_hash(c a) */
    Rows     Row Source Operation
       3702  HASH JOIN SEMI (cr=35 r=0 w=0 time=497839 us)
      22556   REMOTE  (cr=0 r=0 w=0 time=401176 us)
       4336   TABLE ACCESS FULL TABLE2 (cr=35 r=0 w=0 time=7709 us)It seem that when the execution plan have changed the remote query return no result.
    It'is a bug or i have missed somthing ?
    PS: The two table are no subject to insert or update statement.
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1
    Thanks.

    H.Mahmoud wrote:
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1Hard to say. You're using a very old and deprecated version of the database, and one that was known to contain bugs.
    9.2.0.7 was really the lowest version of 9i that was considered to be 'stable', but even so, it's old and lacking in many ways.
    Consider upgrading to the latest database version at your earliest opportunity. (or at least apply patches up to the latest 9i version before querying if there is bugs in your really low buggy version)

  • 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

  • Inconsistent Results Installing WebApps in Console.  The Secret?

    Hi:
    I'm having a difficult time understanding what exactly happens on my
    server when I use the mydomain->Deployments->Web Applications->Install
    a New Web Application dialog.
    Sometimes when I upload a .war file, it then displays in the Web
    Application section of the left pane where certificate and
    DefaultWebApp are shown. Othertimes? Nothing.
    I have tried installing my web application in several ways, and the
    results are not consistent. What settings should be made and where
    (for example, in files like config.xml) when I install a web
    application?
    I have also tried using the Configure a new Web Application dialog,
    and have similarly inconsistent results.
    Sometimes my config.xml gets updated, sometimes not. Sometimes it
    updates with an ineffective <Application> tag that does not include
    the <WebAppComponent> tag, and sometimes it works.
    Thanks for any insight. I'm really having a tough time of this.
    Thanks,
    Bill

    Hi.
    there should be no other file updated. You should open a case with support.
    Regards,
    Michael
    bill b3nac wrote:
    Yes, I'm using wls6.1 with sp2. jdk131 on windows 2000. my browser is
    msie 6.0.26.
    On installing a new web app through the console, is there any file
    that gets updated that I should keep my eye on other than
    ./wlserver6.1SP2/config/mydomain/config.xml?
    Thanks.
    Bill
    Michael Young <[email protected]> wrote in message news:<[email protected]>...
    Hi.
    Hmm. I'll presume you are running under wls 6.1. Make sure you are
    running with the latest service pack - sp2. Also, what platform/jdk are
    you using?
    If you already are using sp2 and are still seeing this inconsistency I
    recommend you open a case with support. However, be forwarned that they
    may not be able to help much if this only occurs randomly or rarely.
    Regards,
    Michael
    bill b3nac wrote:
    Hi:
    I'm having a difficult time understanding what exactly happens on my
    server when I use the mydomain->Deployments->Web Applications->Install
    a New Web Application dialog.
    Sometimes when I upload a .war file, it then displays in the Web
    Application section of the left pane where certificate and
    DefaultWebApp are shown. Othertimes? Nothing.
    I have tried installing my web application in several ways, and the
    results are not consistent. What settings should be made and where
    (for example, in files like config.xml) when I install a web
    application?
    I have also tried using the Configure a new Web Application dialog,
    and have similarly inconsistent results.
    Sometimes my config.xml gets updated, sometimes not. Sometimes it
    updates with an ineffective <Application> tag that does not include
    the <WebAppComponent> tag, and sometimes it works.
    Thanks for any insight. I'm really having a tough time of this.
    Thanks,
    Bill
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Inconsistent results with localtimestamp and current_timestamp

    Running XE on Windows XP with the system timezone to GMT rebooted, restarted XE)
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I'm getting incorrect and inconsistent results with current_timestamp and localtimestamp:
    With SQL, localtimestamp computes the wrong offset (appears to use 1987-2006 DST rules):
    select
    dbtimezone
    , sessiontimezone
    , current_timestamp
    , current_timestamp + numtodsinterval(18,'day') as current_timestamp18
    , localtimestamp
    from dual;
    +00:00     
    US/Eastern     
    17-MAR-10 10.27.17.376000000 AM US/EASTERN     
    04-APR-10 10.27.17.376000000 AM US/EASTERN     
    17-MAR-10 09.27.17.376000000 AM
    however, in PL/SQL, both current_timestamp and localtimestamp return the wrong hour value, and adding 18 to current_timestamp shows it is using 1987-2006 DST rules (1st sunday of april)/ note that this happens in straight PL/SQL and in embedded SQL (same results selecting from tables other than DUAL):
    begin
    for r1 in (
    select
    dbtimezone
    , sessiontimezone
    , current_timestamp
    , current_timestamp + numtodsinterval(18,'day') as current_timestamp18
    , localtimestamp
    from dual
    loop
    dbms_output.put_line('SQL dbtimezone = ' || r1.dbtimezone);
    dbms_output.put_line('SQL sessiontimezone = ' || r1.sessiontimezone);
    dbms_output.put_line('SQL current_timestamp = ' || r1.current_timestamp);
    dbms_output.put_line('SQL current_timestamp +18 = ' || r1.current_timestamp18);
    dbms_output.put_line('SQL localtimestamp = ' || r1.localtimestamp);
    end loop;
    dbms_output.put_line('dbtimezone = ' || dbtimezone);
    dbms_output.put_line('sessiontimezone = ' || sessiontimezone);
    dbms_output.put_line('systimestamp = ' || systimestamp);
    dbms_output.put_line('current_timestamp = ' || current_timestamp);
    dbms_output.put_line('current_timestamp +18 = ' || (current_timestamp + numtodsinterval(18,'day')));
    dbms_output.put_line('localtimestamp = ' || localtimestamp);
    end;
    SQL dbtimezone = +00:00
    SQL sessiontimezone = US/Eastern
    SQL current_timestamp = 17-MAR-10 09.29.32.784000 AM US/EASTERN
    SQL current_timestamp +18 = 04-APR-10 10.29.32.784000000 AM US/EASTERN
    SQL localtimestamp = 17-MAR-10 09.29.32.784000 AM
    dbtimezone = +00:00
    sessiontimezone = US/Eastern
    systimestamp = 17-MAR-10 02.29.32.784000000 PM +00:00
    current_timestamp = 17-MAR-10 09.29.32.784000000 AM US/EASTERN
    current_timestamp +18 = 04-APR-10 10.29.32.784000000 AM US/EASTERN
    localtimestamp = 17-MAR-10 09.29.32.784000000 AM
    dbtimezone = +00:00
    sessiontimezone = US/Eastern
    systimestamp = 17-MAR-10 02.16.21.366000000 PM +00:00
    current_timestamp = 17-MAR-10 09.16.21.366000000 AM US/EASTERN
    current_timestamp +18 = 04-APR-10 10.16.21.366000000 AM US/EASTERN
    localtimestamp = 17-MAR-10 09.16.21.366000000 AM
    is this a known bug?
    is there a patch or a work-around for XE?
    are other datasbase versions affected?

    Can't patch XE, unfortunately it comes with pre-2007 DST rules.
    There is a metalink note describing how to fix the DST changes, and while it's not really a "supported" method, neither is XE- if you can get updated timezone files from a later patch set for the same release, 10gR2, on the right operating system, shutdown/startup the database the updated DST rules will be in place. The timezone files are in $ORACLE_HOME/oracore/zoneinfo.
    Another unfortunately, any values already stored in the database using timestamp with local timezone datatypes for the affected period of the DST changes won't be correct, i.e. there is no 2010-03-14 02:01 (?) but with older timezone rules in place that would be a valid timestamp. The data has to be saved before updating the timezone file, and re-translated to timestamp w/local tz datatypes after the update.
    IMHO storing literal timezone info isn't an ideal practice, let the client settings do the time interpretation, time is always changing. Its the interpretation of the time that gets changed. From time to time. :(

  • Inconsistent results when exporting projects as new libraries

    I am trying to export a project as a new library without the original ("master") images and am getting inconsistent results. Each time I've tried this, I am careful not to check "Copy originals into exported library". Sometimes it works exactly as expected -- i.e., a new library file is created and, when I examine the contents of the new library, there are no master image files. Other times when I examine the new Aperture library file, I find that it contains master image files. Indeed, sometimes, the new library contains more master image files than there are images in the project from which the library was created.
    What am I doing wrong or missing? Is this normal behavior?
    (Aperture 3.4.3)

    After a bit of exploring, here is what I determined:
    1. Most of my projects were created by importing images from a folder without moving the original images (Files> Import> Folder as Projects> Store Files: In their original location). Using this method, the images in the project are all referenced images (i.e. the originals are not moved or copied into the Aperture library). When later export these projects as described above, the resulting library also does not contain any of the original image files or masters. This is my desired state and for most of my 2012 projects exactly what happened.
    2. If, however, any of the images in a given library were originally imported so that the master image resided in the Aperture library and that image was subsequently deleted, then the exported library will still contain the masters.
    The solution I found was to open the exported library file and empty the trash (Aperture> Empty Aperture Trash).
    (Of course, the longer term solution within my given workflow is to be careful not to import the masters at the beginning of the process.)
    Hope this helps someone.

  • Inconsistent results with ANSI LEFT JOIN on 9iR2

    Is this a known issue? Is it solved in 10g?
    With the following data setup, I get inconsistent results. It seems to be linked to the combination of using LEFT JOIN with the NULL comparison within the JOIN.
    create table titles (title_id int, title varchar(50));
    insert into titles values (1, 'Red Book');
    insert into titles values (2, 'Yellow Book');
    insert into titles values (3, 'Blue Book');
    insert into titles values (4, 'Orange Book');
    create table sales (stor_id int, title_id int, qty int, email varchar(60));
    insert into sales values (1, 1, 1, '[email protected]'));
    insert into sales values (1, 2, 1, '[email protected]');
    insert into sales values (3, 3, 4, null);
    insert into sales values (3, 4, 5, '[email protected]');
    SQL&gt; SELECT titles.title_id, title, qty
    2 FROM titles LEFT OUTER JOIN sales
    3 ON titles.title_id = sales.title_id
    4 AND stor_id = 3
    5 AND sales.email is not null
    6 ;
    TITLE_ID TITLE QTY
    4 Orange Book 5
    3 Blue Book
    1 Red Book
    2 Yellow Book
    SQL&gt;
    SQL&gt; SELECT titles.title_id, title, qty
    2 FROM titles LEFT OUTER JOIN sales
    3 ON titles.title_id = sales.title_id
    4 AND 3 = stor_id
    5 AND sales.email is not null;
    TITLE_ID TITLE QTY
    2 Yellow Book 1
    4 Orange Book 5
    3 Blue Book
    1 Red Book
    It seems to matter what order I specify the operands stor_id = 3, or 3 = stor_id.
    In the older (+) environment, I would understand this, but here? I'm pretty sure most other databases don't care about the order.
    thanks for your insight
    Kevin

    Don't have a 9i around right now to test ... but in 10 ...
    SQL> create table titles (title_id int, title varchar(50));
     
    Table created.
     
    SQL> insert into titles values (1, 'Red Book');
     
    1 row created.
     
    SQL> insert into titles values (2, 'Yellow Book');
     
    1 row created.
     
    SQL> insert into titles values (3, 'Blue Book');
     
    1 row created.
     
    SQL> insert into titles values (4, 'Orange Book');
     
    1 row created.
     
    SQL> create table sales (stor_id int, title_id int, qty int, email varchar(60));
     
    Table created.
     
    SQL> insert into sales values (1, 1, 1, '[email protected]');
     
    1 row created.
     
    SQL> insert into sales values (1, 2, 1, '[email protected]');
     
    1 row created.
     
    SQL> insert into sales values (3, 3, 4, null);
     
    1 row created.
     
    SQL> insert into sales values (3, 4, 5, '[email protected]');
     
    1 row created.
     
    SQL> SELECT titles.title_id, title, qty
      2   FROM titles LEFT OUTER JOIN sales
      3   ON titles.title_id = sales.title_id
      4   AND stor_id = 3
      5   AND sales.email is not null
      6   ;
     
      TITLE_ID TITLE                                                     QTY
             4 Orange Book                                                 5
             3 Blue Book
             1 Red Book
             2 Yellow Book
     
    SQL>
    SQL> SELECT titles.title_id, title, qty
      2   FROM titles LEFT OUTER JOIN sales
      3   ON titles.title_id = sales.title_id
      4   AND 3 = stor_id
      5   AND sales.email is not null;
     
      TITLE_ID TITLE                                                     QTY
             4 Orange Book                                                 5
             3 Blue Book
             1 Red Book
             2 Yellow Book
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options

  • Inconsistent results for SDO_RELATE

    Using SDO_VERSION = 10.2.0.2.0
    I am getting inconsistent results using SDO_RELATE. If I do the whole table (over 200,000 records), one particular record that I know of is skipped while if I pick a smaller range of records ie. 4 records in this case, the record is not skipped. The particular relationship with this record is "touch". Is there any limitation on table size or is this something else? Here is the example :
    -- The column is set to null
    SQL> update nad_als_fixed_stn_10G_HQ set insidecheck = null;
    231484 rows updated.
    -- SDO_RELATE on a few records which actually finds the correct relationship
    SQL> UPDATE nad_als_fixed_stn_10G_HQ C SET C.insidecheck = '1'
    2 WHERE EXISTS (SELECT 1 FROM MetroRegions A, nad_als_fixed_stn_10G_HQ B
    3 WHERE SDO_RELATE(B.location83r, A.geoloc, 'mask=anyinteract') = 'TRUE'
    4 AND C.lic_no = B.lic_no and C.lic_no between 4687157 and 4687223 )
    5 ;
    3 rows updated.
    -- Displays the correct relationship for that record (this is a "touch")
    SQL> select insidecheck from nad_als_fixed_stn_10G_HQ where lic_no = 4687161;
    Inside
    check
    1
    -- Reset the column to null
    SQL> update nad_als_fixed_stn_10G_HQ set insidecheck = null;
    231484 rows updated.
    -- SDO_RELATE on the complete table
    SQL> UPDATE nad_als_fixed_stn_10G_HQ C SET C.insidecheck = '1'
    2 WHERE EXISTS (SELECT 1 FROM MetroRegions A, nad_als_fixed_stn_10G_HQ B
    3 WHERE SDO_RELATE(B.location83r, A.geoloc, 'mask=anyinteract') = 'TRUE'
    4 AND C.lic_no = B.lic_no );
    48488 rows updated.
    -- This particular record which was located correctly earlier appears to be skipped
    SQL> select insidecheck from nad_als_fixed_stn_10G_HQ where lic_no = 4687161;
    Inside
    check
    SQL>
    François Sigouin

    Thanks but it did not solve the problem of inconsistent results. The response time for the first update is much improved though. When I added the hint on the second update (which is about 600 records), it never came back so I tested without it. Any other ideas ?
    François.
    TEST
    SQL> update nad_als_fixed_stn_10G_HQ set insidecheck = null;
    231484 rows updated.
    -- First update with hint, response time is improved but same results obtained
    SQL> UPDATE nad_als_fixed_stn_10G_HQ C SET C.insidecheck = '1'
    2 WHERE EXISTS (SELECT /*+ ORDERED */ 1 FROM MetroRegions A, nad_als_fixed_stn_10G_HQ B
    3 WHERE SDO_RELATE(B.location83r, A.geoloc, 'mask=anyinteract') = 'TRUE'
    4 AND C.lic_no = B.lic_no );
    48488 rows updated.
    SQL> select insidecheck from nad_als_fixed_stn_10G_HQ where lic_no = 4687161;
    Inside
    check
    SQL> update nad_als_fixed_stn_10G_HQ set insidecheck = null;
    231484 rows updated.
    --The second update has to be without the hint otherwise it does not come back.                                                                                                  
    SQL> UPDATE nad_als_fixed_stn_10G_HQ C SET C.insidecheck = '1'
    2 WHERE EXISTS (SELECT 1 FROM MetroRegions A, nad_als_fixed_stn_10G_HQ B
    3 WHERE SDO_RELATE(B.location83r, A.geoloc, 'mask=anyinteract') = 'TRUE'
    4 AND C.lic_no = B.lic_no and C.lic_no between 4687157 and 4687223 )
    5 ;
    3 rows updated.
    SQL> select insidecheck from nad_als_fixed_stn_10G_HQ where lic_no = 4687161;
    Inside
    check
    1

Maybe you are looking for

  • Reg:Opening and Closing Stock For Plant

    Hi All,   i want to calculate the opening stock and closing stock for plant wise for the given Posting Period Date. Am having the opening balance and closing balance for all months but i need it as month wise. considering this example, the date is fr

  • 2008 imac - beachball lock ups and no-boot 'question mark in file' issue

    Firstly apologies am new to this forum.. am happy imac user (2008) but recently my imac is freezing in use and/or failing to boot on startup; the grey screen showing for a bit and then a file with a question mark in it.  This now happens frequently a

  • Can't configure counter units to give Ticks

    Hello, What I need is: For my application, I have an external signal pulsing at a random frequency and I want to count the number of pulses between 2 another external signals. What I use is: NI-DAQmx library version 7.1.0f1 NI 6624 counter/timers boa

  • SBL-DBC-00104 error using External Business Component

    Hi all, I'm trying to use a EBC for querying datas in the Export View. It works fine the most of the times but in some querys, it shows the error SBL-DBC-00104: Error retrieving next record from the database. ORA-24345: A Truncation or null fetch err

  • Mavericks has deleted my partitions on external drive!

    I have a GTech 4TB drive attached that had two partitions. Now it just sees the drive as 'MyBook' with no data. (Note: MyBook was an old drive that I no longer use). Help! And how do I inform Apple, as I can'y fathom how to log it as a bug? Thanks in