Index not working fine

hi,
i am facing a problem that is i have a table with name PAP_WF_PATHDETAILS.
i have created a index wf_step_ind on column WF_PD_STEPID IN THAT TABLE.
i hane distinct WF_PD_STEPID values like this
-1,1,2,3,4,5,6,7,8,9,10,11,12,13
when i am using drl command like
"SELECT WF_PD_ACTIONTIME FROM PAP_WF_PATHDETAILS WHERE WF_PD_STEPID="
index is working for all the values expect -1 and 1.
i am not understanding the reason
can any one help me,
regards,
kishore

Hi,
Sorry dear I can not make out any things from the explain plan you have posted. Cant you format it before posting?
Moreover can you use select * from table(dbms_xplan.display()) to show the output. It seems whatever you are using is not giving complete information.
I wanted to know the number of rows oracle is thinking for each value.
It seems you have lot many number of records in the table with WF_PD_STEPID set to -1 and 1 when compared to other values.
This makes oracle believe that doing a full table scan for these two values would be much faster than doing index range scan.
Other way to test the performance for index scan on these two values, would be by forcing query to use hint. How to do this? - You can get the information in Oracle documentation/google.
Regards
Anurag

Similar Messages

  • Query not working fine

    Hi
    db version is 9.2.0.8.0
    in dev the query is working fine.But in qa the query is not working fine(hanging).I had checked the explain plans.
    Both are different.This is due to difference in volume of data.
    I am pasting the explain plans of both the queries in qa and dev
    qa explain plan
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
    | 0 | SELECT STATEMENT | | 606M| 118G| | 107M (1)|
    | 1 | SORT GROUP BY | | 606M| 118G| 524G| 107M (1)|
    | 2 | HASH JOIN | | 1869M| 363G| | 50748 (1)|
    | 3 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 9066 | 318K| | 331 (1)|
    | 4 | HASH JOIN | | 2474K| 408M| 2232K| 50400 (1)|
    | 5 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 54396 | 1593K| | 330 (1)|
    | 6 | HASH JOIN | | 2474K| 337M| | 31791 (1)|
    | 7 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 206 | 3296 | | 25 (4)|
    | 8 | HASH JOIN | | 3162K| 382M| | 31745 (1)|
    | 9 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 3087 | 27783 | | 25 (4)|
    | 10 | HASH JOIN | | 3162K| 355M| 2952K| 31699 (1)|
    | 11 | MERGE JOIN CARTESIAN | | 62930 | 2212K| | 14627 (1)|
    | 12 | INDEX FAST FULL SCAN | SYS_C0013071 | 2923 | | | 4 (25)|
    | 13 | BUFFER SORT | | 22 | 792 | | 14623 (1)|
    | 14 | TABLE ACCESS BY INDEX ROWID| CURCY_CONVERT_RATE | 22 | 792 | | 6 (17)|
    | 15 | INDEX RANGE SCAN | XPKCURRATE | 22 | | | 5 (20)|
    | 16 | TABLE ACCESS FULL | SHIPPABLE_BACKLOG_FACT | 321K| 25M| | 15494 (1)|
    dev explain plan
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
    | 0 | SELECT STATEMENT | | 17M| 2978M| | 927K (1)|
    | 1 | SORT GROUP BY | | 17M| 2978M| 6504M| 927K (1)|
    |* 2 | HASH JOIN | | 17M| 2978M| | 2726 (1)|
    |* 3 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 4992 | 180K| | 416 (1)|
    |* 4 | HASH JOIN | | 41051 | 5852K| 2872K| 2309 (1)|
    | 5 | TABLE ACCESS FULL | DIM_GEOGRAPHY_HIER | 69888 | 2047K| | 415 (1)|
    |* 6 | HASH JOIN | | 41051 | 4650K| | 1504 (1)|
    |* 7 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 206 | 3296 | | 37 (3)|
    |* 8 | HASH JOIN | | 52460 | 5123K| | 1467 (1)|
    | 9 | TABLE ACCESS FULL | DIM_PRODUCT_HIER | 3087 | 27783 | | 37 (3)|
    |* 10 | HASH JOIN | | 52460 | 4661K| | 1430 (1)|
    |* 11 | TABLE ACCESS FULL | SHIPPABLE_BACKLOG_FACT | 7718 | 414K| | 513 (1)|
    | 12 | MERGE JOIN CARTESIAN | | 48941 | 1720K| | 915 (0)|
    | 13 | INDEX FULL SCAN | SYS_C0060330 | 1827 | | | 7 (15)|
    | 14 | BUFFER SORT | | 27 | 972 | | 913 (0)|
    | 15 | TABLE ACCESS BY INDEX ROWID| CURCY_CONVERT_RATE | 27 | 972 | | 2 (50)|
    |* 16 | INDEX RANGE SCAN | XPKCURRATE | 27 | | | 4 (25)|
    Here is the query
    SELECT 'BACKLOG' AS SUBJECT_AREA, 'CURRENT' AS TIME_RANGE
    ,GEO_ROLLUP.GEOGRAPHY_HIER_KEY
    ,PRODUCT_ROLLUP.PRODUCT_HIER_KEY
    , backlog_FACT.DISTRIBUTION_CH_ID
    , backlog_FACT.SALES_DISTRICT_ID
    , SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0) - NVL(backlog_FACT.GC_biilled_AMT,0)) AS billing_backlog_AMT
    , SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0)- NVL(backlog_FACT.GC_DELIVERED_AMT,0)) AS delivery_backlog_AMT
    , SUM(NVL(backlog_FACT.GC_SCHEDULED_AMT,0) - NVL(backlog_FACT.GC_REV_REC_AMT,0)) AS rev_rec_backlog_AMT
    , CURCY.VALID_FROM
    FROM fact.shippable_backlog_FACT backlog_FACT
    , DIM.DIM_PRODUCT_HIER PRODUCT
    , DIM.DIM_GEOGRAPHY_HIER GEO
    , DIM.DIM_DATE DT
    , DIM.DIM_PRODUCT_HIER PRODUCT_ROLLUP
    , DIM.DIM_GEOGRAPHY_HIER GEO_ROLLUP
    , DIM.CURCY_CONVERT_RATE CURCY
    WHERE
    PRODUCT.PRODUCT_HIER_KEY = backlog_FACT.GEF_PRODUCT_HIER_KEY
    AND GEO.GEOGRAPHY_HIER_KEY = backlog_FACT.GEF_SHIP_TO_GEO_HIER_KEY
    AND ( backlog_FACT.DELIVERY_COMPLETE_DATE IS NULL
         OR backlog_FACT.BILLING_COMPLETE_DATE IS NULL
         OR backlog_FACT.REV_REC_COMPLETE_DATE IS NULL
    AND PRODUCT.PRODUCT_TYPE = PRODUCT_ROLLUP.PRODUCT_TYPE
    AND PRODUCT_ROLLUP.HIER_LEVEL_NUM = 4
    AND PRODUCT_ROLLUP.CURRENT_RECORD_IND = 'Y'
    AND GEO_ROLLUP.SUB_POLE = GEO.SUB_POLE
    AND GEO_ROLLUP.HIER_LEVEL_NUM = 3
    AND GEO_ROLLUP.CURRENT_RECORD_IND = 'Y'
    AND CURCY.VALID_FROM <= BACKLOG_FACT.ORDER_LINE_CREATE_DATE
    AND CURCY.VALID_TO > BACKLOG_FACT.ORDER_LINE_CREATE_DATE
    AND CURCY.EXCHANGE_TYPE_ID = 'M'
    AND CURCY.TO_CURRENCY_ID = 'USD'
    AND CURCY.FROM_CURRENCY_ID = BACKLOG_FACT.DOCUMENT_CURRENCY_ID
    GROUP BY
    PRODUCT_ROLLUP.PRODUCT_HIER_KEY,
    GEO_ROLLUP.GEOGRAPHY_HIER_KEY,
    backlog_FACT.DISTRIBUTION_CH_ID,
    backlog_FACT.SALES_DISTRICT_ID,
    CURCY.VALID_FROM;
    I analyzed all the tables involved in it.
    can anybody give me suggestion in crating indexes or anything else?
    Thanks
    Veer

    Veer,
    Modify your post and enclose your code and output between \ tags for formatting
    \Your code or output goes here
    \Now, are table stats are upto date on all the table on QA machine? If not, analyze your table and indexes and re-run your query
    Regards
    Edited by: OrionNet on May 7, 2009 3:35 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 5233 cell not working fine after new theme install...

    My 5233 cell is not working fine after new theme installation.
    As soon as i installed new theme  MENU options are not coming, Only showing new theme image.
    Pls help.

    Be careful when you install themes or apps. Make sure their sources are reliable and the app works properly on your phone model.
    If you want to thank someone, just click on the blue star at the bottom of their post

  • Smartform : line type not working fine when used on Next page

    Hi ,
    Please help on below :
    I have a smartform and have line type which is used in printing the items.
    When I use this line type on very first page , it works fine.
    But for the next page which is the exact copy of first page ,
    the line type does not work fine with printing first line item on next page,
    it refreshed the work area which i am printing. so on the next page very first element gets all the values 000
    But on the next iteration it works fine and does not refresh work area.
    Please see why is such abnormal behavior happening.
    Regards,
    Uma Dave

    Hi Ameya
    there might be syntax error. Try to get what exaclty is an error using following code.
    CALL FUNCTION <smartform>
        EXCEPTIONS
        IF SY-SUBRC  0.
           CALL FUNCTION 'SSF_READ_ERRORS'
                IMPORTING
                     ERRORTAB = IT_ERRORLIST.
         ENDIF.
    In IT_ERRORLIST you will get error message.
    Regards
    Sachin G Patil

  • French characters insertion not working fine

    Hi all,
    I'm using Oracle database 10.2.0.3, i migrate the database from 9i.
    My problem is in my new database version i mean 10g when i'm inserting french characters like "éèà" in my database it's not working fine, i check to my old database (9i) it's working and i compare the parameters (NLS parameters they are same). i cannot find where is the problem making this appear, if anybody can help me.
    here bellow that i did.
    SQL> insert into dept values(0,'échec','éèàù');
    1 ligne crÚÚe.
    SQL> commit;
    And from query i got:
    SQL> select * from dept where deptno=0;
    DEPTNO DNAME LOC
    0 ┐chec ┐┐┐┐
    here are some parameters i check:
    SQL> sho parameter nls;
    NAME TYPE VALUE
    nls_calendar string
    nls_comp string
    nls_currency string
    nls_date_format string
    nls_date_language string
    nls_dual_currency string
    nls_iso_currency string
    nls_language string AMERICAN
    nls_length_semantics string BYTE
    nls_nchar_conv_excp string FALSE
    nls_numeric_characters string
    NAME TYPE VALUE
    nls_sort string
    nls_territory string AMERICA
    nls_time_format string
    nls_timestamp_format string
    nls_timestamp_tz_format string
    nls_time_tz_format string
    I need your help because it's very important for our database.
    regards
    raitsarevo

    I goth nothong, i think it's not yet set here bellow the result:
    oracle@ab-db1:/abdb_data2/expdp$ env|grep NLS
    oracle@ab-db1:/abdb_data2/expdp$
    to my old server (9i) here the result:
    [oracle@abillity3db oracle]$ env|grep NLS
    ORA_NLS33=/home/oracle/product/9.2.0.4/ocommon/nls/admin/data
    [oracle@abillity3db oracle]$
    When i run the command env only i got for the new server HPux 10g:
    oracle@ab-db1:/abdb_data2/expdp$ env
    SFTP_PERMIT_CHOWN=1
    MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/ldapux/share/man:/opt/ldapux/ypldapd/man:/opt/ipf/man:/usr/dt/share/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man:/opt/VRTS/man:/opt/graphics/common/man:/opt/sfmdb/pgsql/man:/opt/sec_mgmt/share/man:/opt/dsau/man:/opt/gnome/man:/opt/perl/man:/opt/sec_mgmt/share/man/%L:/opt/ssh/share/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/audio/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/cadvise/share/man/%L:/opt/cadvise/share/man:/opt/image/share/man:/opt/imake/man
    ORA_CRS_HOME=/home/oracle/crs
    TERM=xterm
    SHELL=/sbin/sh
    ERASE=^H
    SFTP_LOG_LEVEL=3
    SSH_CLIENT=192.168.0.45 1525 22
    SSH_TTY=/dev/pts/0
    SFTP_LOG_FACILITY=2
    USER=oracle
    LD_LIBRARY_PATH=/home/oracle/oracle/product/10.2.0/db_1/lib
    ORACLE_SID=abdb1
    COLUMNS=157
    MAIL=/var/mail/oracle
    PATH=/home/oracle/oracle/product/10.2.0/db_1/bin:/home/oracle/crs/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/ipf/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/bin/X11:/opt/resmon/bin:/usr/contrib/kwdb/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/sfm/bin:/opt/upgrade/bin:/opt/sec_mgmt/bastille/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/gnome/bin:/opt/mozilla:/opt/perl/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/hpsmh/bin:/opt/gwlm/bin:/usr/contrib/bin/X11:/opt/ignite/bin:/opt/aCC/bin:/opt/cadvise/bin:/opt/langtools/bin:/opt/imake/bin:.
    LOG_SFTP=0
    PWD=/abdb_data2/expdp
    EDITOR=vi
    TZ=EAT-3
    PS1=oracle@ab-db1:$PWD$
    LINES=60
    SHLVL=1
    SFTP_PERMIT_CHMOD=1
    HOME=/home/oracle
    LOGNAME=oracle
    SSH_CONNECTION=192.168.0.45 1525 192.168.0.233 22
    SFTP_UMASK=
    ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
    _=/usr/bin/env
    OLDPWD=/abdb_data2
    And for the old server RHL (9i):
    [oracle@abillity3db oracle]$ env
    PWD=/home/oracle
    ORACLE_SID=abillity
    HOSTNAME=abillity3db
    LD_LIBRARY_PATH=/home/oracle/product/9.2.0.4/lib:
    PVM_RSH=/usr/bin/rsh
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    XPVM_ROOT=/usr/share/pvm3/xpvm
    USER=oracle
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
    MACHTYPE=i386-redhat-linux-gnu
    MAIL=/var/spool/mail/oracle
    INPUTRC=/etc/inputrc
    EDITOR=vi
    LANG=en_US
    ORACLE_BASE=/home/oracle
    ORACLE_HOME=/home/oracle/product/9.2.0.4
    LOGNAME=oracle
    SHLVL=1
    ORA_NLS33=/home/oracle/product/9.2.0.4/ocommon/nls/admin/data
    SHELL=/bin/bash
    HOSTTYPE=i386
    OSTYPE=linux-gnu
    HISTSIZE=1000
    LAMHELPFILE=/etc/lam/lam-helpfile
    PVM_ROOT=/usr/share/pvm3
    HOME=/home/oracle
    TERM=xterm
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    PATH=/home/oracle/product/9.2.0.4/bin:/opt/IBMJava2-131/bin:/opt/IBMJava2-131/jre/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    SSH_TTY=/dev/pts/1
    _=/usr/bin/env
    I saw that in my old server environment variable LANG=en_US is set but in the new not.
    What's your advice.
    Thanks Nicolas
    raitsarevo

  • Af:setActionListener can not work fine in the af:iterator in ADF Faces RC

    Hi all,
    af:setActionListener can not work fine in the af:iterator/af:commandbutton. My code is as below:
    <af:iterator value="#{backing_Bean.testList}"   var="var" >
           <h:panelGrid columns="1">
          <af:commandButton icon="images/system/class.png"
                                              text="#{var.name}" >
             <af:setActionListener from="#{var.name}" to="#{backing_Bean.testText}"/>              
          </af:commandButton>
          </h:panelGrid>
    </af:iterator>The name [var.name] can be shown on the command buttoncorrectly, but when I click the button, the name can not be transferred to the testText in backing bean. why?
    Thanks
    Hart

    Hi,
    works for me. Not sure how you want to access to the value, but if the bean is in request scope then the values are only available during this period.
    Frank

  • Af:richTextEditor can not work fine in the popup dialog.

    Hi all:
    I want to use af:richTextEditor in a pop up dialog, but it can not be used correctly. The code is like below:
    <af:popup id="***">
    <af:dialog >
    <af:richTextEditor contentStyle="width:100%" value="this is a test" inlineStyle="width:100%" binding="#{backing_myBackingBean.richTextEditor1}"
    id="richTextEditor1"/>
    </af:dialog>
    <af:popup>
    The value "this is a test" can not be shown in the editor and I can not write/edit in this rich text editor.
    Anyone has some experience on using these components? Please help me.
    Thanks
    Hart

    Hi Frank,
    Below is my test code, the text editor does not work fine actually. Can you help me to find where I was wrong using this code OR is is a bug to use richtexteditor in popup dialog?
    <?xml version='1.0' encoding='GBK'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=GBK"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="This is test page"/>
    <af:commandButton text="PopupRichTextEditor">
    <af:showPopupBehavior popupId="test">
    </af:showPopupBehavior>
    </af:commandButton>
    <af:popup id="test">
    <af:dialog modal="true">
    <af:richTextEditor value="this is for test">
    </af:richTextEditor>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance.
    Hart
    Message was edited by:
    harth
    Message was edited by:
    harth

  • Af:setActionListener can not work fine in the af:iterator/af:commandbutton

    Hi all,
    af:setActionListener can not work fine in the af:iterator/af:commandbutton. My code is as below:
    <af:iterator value="#{backing_Bean.testList}"   var="var" >
           <h:panelGrid columns="1">
          <af:commandButton icon="images/system/class.png"
                                              text="#{var.name}" >
             <af:setActionListener from="#{var.name}" to="#{backing_Bean.testText}"/>              
          </af:commandButton>
          </h:panelGrid>
    </af:iterator>The name [var.name] can be shown on the command buttoncorrectly, but when I click the button, the name can not be transferred to the testText in backing bean. why?
    Thanks
    Hart

    Hi Frank,
    I use Jdeveloper 11g preview 2 and ADF rich client to run the code above I have posted.
    And I found the reason: I add a render attribute in af:iterator, It is not beacuse of the af:iterator component.
    When I set the "render" attribute to "true" manually, then the value can be passed to backend bean.
    But I set the "render" attribute to "false" at the start and change to "true" by clicking a button in the same page, the value can not be passed to the backing bean. What's the reason?
    Thanks
    Hart
    Message was edited by:
    harth

  • Siril not working fine in my i5 with new ios7

    Dear sir,
    I believe my Siri is not working fine with IOS 7 in my iPhone 5.Only 1 function it works on is call my dad or call contact people. It does not act well, when i ask to do other tasks like message my dad or other contacts /  what is the climate / or anything else
    It says please try after a little while.
    Bit same task are performed better on other iPhones
    How to re install the software or how to rectify this issue
    Regards
    Ashish
    <Personal Information Edited by Host>

    I have asked the hosts to remove all the personal information - this is a public forum (only other users here - Apple does not generally participate) and it is not safe to show email, phone numbers, and addresses.
    Good luck!

  • Why bitmap index not working?

    I have a table containing 4.2M rows and 16 distinct fs_type_code. So I created a bitmap index ntr_fs_type_code_ind on the column. Then I run the query:
    update /*+ INDEX_COMBINE(NTR_FS_TYPE_CODE_IND) */ ntr_CORPALL_20050801 d
    set eqt_basket_id = NULL, index_weight = NULL
    where
    fs_type_code in ('EQGR','EQVG','EQDL')
    and eqt_basket_id = equity_symbol
    and index_weight = 0;
    I clearly tell optimizer to use the bitmap index. But it turns out the optimizer ignore the index and still use full table scan.
    When I created regular b-tree index, the same query (without hint) use index scan.
    Can anybody tell me why the bitmap index not working here?
    Thanks,

    <quote>I clearly tell optimizer to use the bitmap index</quote>
    You are clearly not doing it right (see bellow). But anyway …
    1. For frequently modified tables (OLTP type application) you may want to rethink the applicability of bitmap indexes …
    low cardinality in itself is not enough justification for using bitmap indexes.
    2. Your update statement may modify a minority, a majority, or anything in between of the total number of
    rows in your table … here is no one universal access method which is always better
    (if there were one they wouldn’t have bothered with coding the rest).
    In short, index access is not always the better way.
    3. Don’t rush into hinting (because that optimizer is such a lousy piece of software) …
    and if you do, make sure you do it correctly and for the right reasons.
    flip@FLOP> create table t as select * from all_objects;
    Table created.
    flip@FLOP> insert into t select * from t;
    30043 rows created.
    flip@FLOP> insert into t select * from t;
    60086 rows created.
    flip@FLOP> insert into t select * from t;
    120172 rows created.
    flip@FLOP> insert into t select * from t;
    240344 rows created.
    flip@FLOP> create bitmap index tx on t (object_type);
    Index created.
    flip@FLOP> exec dbms_stats.gather_table_stats(user,'T',method_opt=>'for all indexed columns',cascade=>true)
    PL/SQL procedure successfully completed.
    flip@FLOP> select object_type,count(*) from t group by rollup(object_type);
    OBJECT_TYPE          COUNT(*)
    CONSUMER GROUP             32
    DIRECTORY                  32
    EVALUATION CONTEXT         16
    FUNCTION                 1648
    INDEX                   23152
    INDEX PARTITION          2048
    INDEXTYPE                 128
    JAVA CLASS             163024
    JAVA RESOURCE            3120
    LIBRARY                   224
    LOB                        16
    MATERIALIZED VIEW          32
    OPERATOR                  464
    PACKAGE                  5488
    PACKAGE BODY               32
    PROCEDURE                 640
    SEQUENCE                  144
    SYNONYM                202512
    TABLE                   18816
    TABLE PARTITION           880
    TRIGGER                  4768
    TYPE                    10640
    TYPE BODY                  16
    VIEW                    42816
                           480688
    flip@FLOP> set autotrace on explain
    update few rows … CBO goes with the index … no hinting
    flip@FLOP> update t d set object_id=object_id-1 where object_type in ('INDEX','PACKAGE','PACKAGE BODY','TABLE');
    47488 rows updated.
    Elapsed: 00:00:09.02
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=536 Card=47488 Bytes
              =1044736)
       1    0   UPDATE OF 'T'
       2    1     INLIST ITERATOR
       3    2       BITMAP CONVERSION (TO ROWIDS)
       4    3         BITMAP INDEX (SINGLE VALUE) OF 'TX'
    update lots of rows … CBO goes with the ft … no hinting
    flip@FLOP> update t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
    365536 rows updated.
    Elapsed: 00:00:25.04
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
              s=8041792)
       1    0   UPDATE OF 'T'
       2    1     TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
              041792)
    update lots of rows … wrong hint syntax … CBO goes with the ft
    flip@FLOP> update /*+ index_combine(tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
    365536 rows updated.
    Elapsed: 00:00:21.00
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
              s=8041792)
       1    0   UPDATE OF 'T'
       2    1     TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
              041792)
    update lots of rows … correct hint syntax … CBO goes with the index … but was it better than the ft?
    flip@FLOP> update /*+ index_combine(d tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM')
    365536 rows updated.
    Elapsed: 00:00:25.01
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=1665 Card=365536 Byt
              es=8041792)
       1    0   UPDATE OF 'T'
       2    1     INLIST ITERATOR
       3    2       BITMAP CONVERSION (TO ROWIDS)
       4    3         BITMAP INDEX (SINGLE VALUE) OF 'TX'
    flip@FLOP>

  • Parallel hint as part of index not working

    Hello,
    I think that I am misusing the parallel hint on this one, and would appreciate some guidance. I have an insert statement as such:
    INSERT INTO TABLE1
    SELECT column1, column2
    FROM table2;
    I modified the query so that it has a parallel:
    SELECT /*+ FULL(table2) PARALLEL(table2, 4) */
    column1, column2
    FROM table2;
    This parallel helps with the query's speed. However, when I use it with the insert statement on the top, it does not insert any record, nor does it give an error message:
    INSERT INTO TABLE1
    SELECT /*+ FULL(table2) PARALLEL(table2, 4) */
    column1, column2
    FROM table2;
    I put EXECUTE IMMEDIATE 'ALTER SESSION ENABLE PARALLEL DML'; at the beginning of the procedure, but that did not help.
    I really need the parallel to be in the SELECT statement, that statement runs for about 3 hours without a parallel (due to large amounts of data - no problems with query itself), however it returns only about 10,000 records, and I don't need to insert those with a parallel hint.
    Edited by: user577453 on Mar 17, 2009 12:25 PM -- Added last paragraph.

    user577453 wrote:
    I think that I am misusing the parallel hint on this one, and would appreciate some guidance. I have an insert statement as such:
    I put EXECUTE IMMEDIATE 'ALTER SESSION ENABLE PARALLEL DML'; at the beginning of the procedure, but that did not help.
    I really need the parallel to be in the SELECT statement, that statement runs for about 3 hours without a parallel (due to large amounts of data - no problems with query itself), however it returns only about 10,000 records, and I don't need to insert those with a parallel hint.First of all, your subject is probably supposed to be "Parallel hint as part of *insert* not working" rather than "Parallel hint as part of *index* not working", am I right?
    Can you show us the EXPLAIN PLAN output you get for your query and the one you get for your INSERT when using the parallel hints as posted?
    Please mention your database version (4-digits, e.g. 10.2.0.3).
    Please use DBMS_XPLAN.DISPLAY to format the EXPLAIN PLAN output if you're already on 9i or later, and please use the \ tag before and after the DISPLAY output to format it in fixed font for readability.
    What seems to be odd that you say that the result of the query seems to be different when using it as part of the INSERT statement? Are you sure that running the query standalone returns data whereas using exactly the same query in the INSERT statement inserts no records? This would be buggy behaviour.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • TOA functionality is not working fine on iPad(iOS6).

    Hi,
    We have published some content using Captivate 7. The TOA (Button) functionality is not working fine on iPad(iOS6) while its working fine on desktop browsers. It stops working affter few taps.
    Thanks,
    -Manish

    moh1002 wrote:
    I have ios 5 on my ipad1 and i was wondering why did not apple add to the ios5 for ipad voice search feature
    Do you mean Siri on the iPhone 4S?
    It was not realeased on the iPad because it was released only for the iPhone 4S.
    or weather app on the notification like iphone or ipod.
    Apple has not stated why these are not released for the iPad.

  • Proximity sensor not working fine on io5 running on iphone 4 black...fine before update...urgent help ??

    I recntly updated my iphone 4 to io5...and found that proximity sensor are not working fine... 2 out of 5 times it work...really annoyed with problem..look like a problem in 4.1 os...need urgent help...thanx in advance...and ya proximty sensor was fine before update

    I got a new 4s and gave my wife my old 4 after upgrading it to ios5. Now her phone has proximity sensor issues big time on a phone that never did before the update. It hangs up am
    nd makes another call while talking to someone. When I'm on the phone with her I can here buttons beeping and then it disconnects. It's making her hate the iphone and wanting to get an Android. Ack! We gotta stop her.

  • My lock button is not working fine for iphone5

    lock button for my iphone 5 is not working fine ....it started behaving like this since last week only.
    have restarted the phone many times. wats the solution for the same.

    Yep.
    £ 166.44

  • Search indexing not working in Outlook PST files

    My boss recently got Office 2010 on his new laptop.  I copied his PST's from his old laptop whihc had Office 2003 on it to the new one and added them to his profile.  They are there and look to be workign fine, until you try any sort of search
    on them.
    If I am looking at the eMails in the PST and I see a whole lot from
    [email protected] and then in the search box I type
    [email protected] the emails are all firltered away and I am told that there are no items that match the criteria.  This also happens when I try try to run an advanced search.
    So according to this post,
    http://social.technet.microsoft.com/Forums/en/outlook/thread/b1859770-dfb5-4224-995f-be828bd21333, I disabled Indexing of outlook, then search stops working on my default location, i.e. if I search my inbox or anything in that datafile, I get
    no results returned, but if I search one of the archieve PST files for say
    [email protected] the search runs for ages with out retunring any results, if I stop the search and then rerun it then I get results.
    It just seems a bit strange that I have to choose iether or.
    Please help ASAP as my boss leave tomorrrow on a trip to Australia and I would like to get this sorted out be fore he leave.
    Regards
    A user needs the admin password like nitro glycerine needs a good shake.

    This seems to be an ongoing problem. The instant search feature in Outlook 2010 is not working correctly for a large number of users. I have read many, many posts here in TechNet and many more that come up with a Google search. None of the solutions provided
    are permanently solving the problem.
    I have tried every potential solution I have found:
    Rebuilding the index did not work
    The registry key(s) PrevenIndexingOutlook, PreventIndexingEmailAttachments, did not exist (the Search Key did not exist). I tried adding both keys in 2 different suggested locations (HKCU and HKLM) Search indexing did not work with or without those keys
    added.
    I have tried everything that I have found everwhere to resolve this problem. I found one solution that appeared to work a month or so ago. Unfortunately, I cannot find it again and no new emails have been added to the index since that day (09/15/2010).
    I tried rebuilding the index (again). This process has removed all of the emails from the index that had been there after I applied the fix that seemed to work. I am continuing to research this problem in the hope that I will find that previous partial solution.
    It would be nice to get some feedback from Microsoft to let us know if this problem is being looked into. All of the solutions provided from Microsoft on these forums have failed to correct this long term problem.
    FYI: I am running Windows 7 Ultimate (64 bit) and Office Professional Plus 2010. These were fresh installs, not upgrades. After installation the instant search feature in Outlook was working, I do not know exactly when it stopped working.

Maybe you are looking for

  • Button to launch another java file????

    Hi there, Was wondering if someone could help with the following: I have a button, which once clicked opens another java file, and am aving some difficulty in doing this. The file which has the button is: import java.awt.*; import java.awt.event.*; i

  • Transaction code

    Hi, I have created a new report program.Now I need to run this report using a Z transaction code.How can I assign a tcode for this report?

  • Sine waves?

    I am having a problem with a ridiculously simple issue. I need a sine wave - a flat tone that does not change in volume. The sub synth seems to be the best software sound, but it fades gradually as it endures. I have messed with the equalizer, compre

  • Oracle Warehouse Builder 10g Release 2

    I need implement Oracle Warehouse Builder 10g Release 2 under Oracle 10g R2 standard Edition, is free to this vertion of database?

  • I/O Field in a Docking Container

    Hii Experts, I have created a Docking Container, which i have splitted into two containers. First one should contain ALV, second one should have a couple of i/o fields and pushbuttons placed on it. I have placed the Pushbuttons using Toolbar Class (c