Remote index not used with INSERT in the local table on dblink

Hi all

I don't know if anyone has come across this problem before, but for some reason any the remote index remains unused ONLY* in the insertion on the local database operation. Let me explain this pseudo-device code

insert into LOCAL_TABLE
Select / * + index_combine (alias_remote_tab IDX_LOG_DATE) * /.
trunc (log_datetime),
Count (*)
of REMOTE_TABLE@DBLINK alias_remote_tab
When trunc (log_datetime) = trunc(sysdate-1)
Trunc Group (log_datetime);

where:
REMOTE_TABLE is a table partitioned on log_datetime (monthly)
IDX_LOG_DATE is an index of bitmap of based on a valid function on log_datetime created in the trunc (log_datetime)
local database: 10 gr 2
remote database: 11 GR 1 material
OS: windows (both)

More funny thing is when I just run the select query independently on the only both local and remote, the index is used. I checked by printing the command explain for the select query plan. But when I prefix the query with the insert lose all hell breaks and local database plays the ignorance about the index. The command for the insert query explain plan has no mention of the index even when I explicitly place the index indicator in the select part of the query.

If this should not be simple enough for ORACLE? Am I missing something here?

Jonathan describes the details and the reasons for the behavior you see in following blog post http://jonathanlewis.wordpress.com/2008/12/05/distributed-dml/
Your SELECTION is performed remotely (filtering and grouping) and sends only the (relatively) small results via dblink local database while the in an INSERTION, filtering only occurs at the remote and data site (relatively) important are sent via dblink to the local database, the consolidation takes place.
You can give a try to the approach proposed by michaels2. If the approach from the view result grouping and filtering which will take place in the remote database, you will see improved performance.

PS BTW, if the sql code that I suggested to check the plane, in my previous post using an index, then the cause of your performance issue is certainly not due to the index not used and is due to the amount of data transferred to dblink.

Tags: Database

Similar Questions

  • When I opened TB start page is not used. I lists the local folders only. Bar menu, tool or Nosend.

    I don't have a normal opening page, when I opened TB. The only thing on the screen is a list of local folders on the left side of the screen with only 3 listed columns. Subject, from, and Date. There is no address list, tool or menu bars, writing, sending view etc. The change of the screen that's happened several weeks ago. I pressed a button and the screen changed from normal to one that only shows the screen of the local folder. I was not able to respond to my email or write brand new. I have concluded that if there is no other choice, other than to uninstall and reinstall new TB please don't let me know. I have been without email for about 3 weeks now and that must be fixed. I'd appreciate any help you can give. I'm not a computer language and technical or program explanation writers are usually not easy for me to decipher so if there is no simple solution to my problem don't let me know and I'll uninstall and reinstall the latest version. Thank you

    First of all, try to open in safe mode:
    Hold your shift down when you start Tbird. Don't make permanent changes. Click on continue in integrated security mode.
    Any change?
    Right-click on the top border. You get an opportunity to activate the menu and mailtools? In the affirmative.

  • Drop-down menu used with anchor on the long table of data links

    Hello

    I have a page on our site where we used a drop shape with anchor tags to let the visitor easy access to specific locations within a long table of data on the same page. Recently, I noticed that the anchors are walking around is no longer the tags in the page but only the beginning of the table anyway. I don't know if over time a few additional codes may have been added to the page that is not in conflict with the form of drop down menu, or if it's something else. I've been agonizing about this for awhile now and unable to fix. I'm hoping a new set of eyes will revisit the issue. the url is http://www.vectron.com/products/saw/saw.htm

    Thank you

    Looks like there are a good number of errors html on this page, some of them have to do with using the code of the named anchor.

    Looks like you have placed the anchors between the openingand the child of the opening. Content cannot go there, move them in theTags and see if that helps.

    It could be something else however, html errors are one of the main causes of the problems of display/functionality. Visit the validator to http://validator.w3.org to clean up your errors. If you work with the code clean and correctly positioned anchors, after return and we can take a closer look.

  • NLSSORT function not used with CHAR and VARCHAR2 column index

    Hello!

    Create a test bench:
    CREATE TABLE scott.nls_demo
          (
          col_varchar            varchar2(4),
          col_char               char(4),
          col_varchar_NLS_GERMAN varchar2(4),
          col_char_NLS_GERMAN    char(4)
          );
     
    INSERT INTO scott.nls_demo (
          col_varchar,
          col_char,
          col_varchar_NLS_GERMAN,
          col_char_NLS_GERMAN  )
      SELECT 
             substr(object_name,1,4),
             substr(object_name,1,4),
             substr(object_name,1,4),
             substr(object_name,1,4)
      FROM all_objects where rownum<5000;
    
    COMMIT; 
    
    create index scott.i_varchar on scott.nls_demo (col_varchar);  
    create index scott.i_char    on scott.nls_demo (col_char);
    
    create index scott.i_varchar_NLS_GERMAN on scott.nls_demo ( NLSSORT(col_varchar_NLS_GERMAN,'nls_sort=''GERMAN_CI'''));  
    create index scott.i_char_NLS_GERMAN    on scott.nls_demo ( NLSSORT(col_char_NLS_GERMAN,   'nls_sort=''GERMAN_CI'''));
     
    Now "explain plan" these 8 select statements in SQL * more:
    variable c char(4);
    variable v varchar2(4);
    
    exec :c:= 'abc';
    exec :v:= 'abc';
    
    explain plan for SELECT /* 1*/ * FROM scott.nls_demo where col_varchar=:v;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 2*/ * FROM scott.nls_demo where col_char=:c;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 3*/ * FROM scott.nls_demo where col_varchar_NLS_GERMAN=:v;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 4*/ * FROM scott.nls_demo where col_char_NLS_GERMAN=:c;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    ALTER SESSION SET NLS_COMP = linguistic;
    ALTER SESSION SET NLS_SORT = german_ci;
    
    explain plan for SELECT /* 5*/ * FROM scott.nls_demo where col_varchar=:v;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 6*/ * FROM scott.nls_demo where col_char=:c;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 7*/ * FROM scott.nls_demo where col_varchar_NLS_GERMAN=:v;
    SELECT * FROM TABLE(dbms_xplan.display);
    
    explain plan for SELECT /* 8*/ * FROM scott.nls_demo where col_char_NLS_GERMAN=:c;
    SELECT * FROM TABLE(dbms_xplan.display);
     
    What I see on 11.2.0.2 is:

    1.) statement 1 would use the I_VARCHAR index, that is what I expected.
    2.) statement 2 would use the I_CHAR index, that is what I expected.
    3.) no clue used, because none are available right here for you. Understood.
    4.) no clue used, because none are available right here for you. Understood.

    And when define us NLS_SORT = german_ci:

    5.) no clue used, because none are available right here for you. Understood.
    6.) no clue used, because none are available right here for you. Understood.
    7.) I_VARCHAR_NLS_GERMAN we used. Large.
    8.) no index used, although I think that "i_char_NLS_GERMAN" would do the job...

    Why the index 'i_char_NLS_GERMAN' is not used with the 8 statement? Jonathan? Someone else?

    Thanks for your help!
    Marcus

    Not really a reason to not use TANK - although there are many of them.

    More than one reason to not always rely to "explain the plan for?

    All the variables passed in EXPLAINING the PLAN for are treated as VARCHAR2.
    In addition, there is no point setting the values of the variable because they will not cast a look either with MAP to EXPLAIN.

    SQL> CREATE TABLE nls_demo
      2        (
      3        col_varchar            varchar2(4),
      4        col_char               char(4),
      5        col_varchar_NLS_GERMAN varchar2(4),
      6        col_char_NLS_GERMAN    char(4)
      7        );
    
    Table created.
    
    SQL>
    SQL> INSERT INTO nls_demo (
      2        col_varchar,
      3        col_char,
      4        col_varchar_NLS_GERMAN,
      5        col_char_NLS_GERMAN  )
      6    SELECT
      7           substr(object_name,1,4),
      8           substr(object_name,1,4),
      9           substr(object_name,1,4),
     10           substr(object_name,1,4)
     11    FROM all_objects where rownum<5000;
    
    4999 rows created.
    
    SQL>
    SQL> commit; 
    
    Commit complete.
    
    SQL>
    SQL> create index i_varchar on nls_demo (col_varchar);  
    
    Index created.
    
    SQL> create index i_char    on nls_demo (col_char);
    
    Index created.
    
    SQL>
    SQL> create index i_varchar_NLS_GERMAN on nls_demo ( NLSSORT(col_varchar_NLS_GERMAN,'nls_sort=''GERM
    AN_CI'''));  
    
    Index created.
    
    SQL> create index i_char_NLS_GERMAN    on nls_demo ( NLSSORT(col_char_NLS_GERMAN,   'nls_sort=''GERM
    AN_CI'''));
    
    Index created.
    
    SQL>
    SQL> variable c char(4);
    SQL> variable v varchar2(4);
    SQL>
    SQL> exec :c:= 'abc';
    
    PL/SQL procedure successfully completed.
    
    SQL> exec :v:= 'abc';
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> ALTER SESSION SET NLS_COMP = linguistic;
    
    Session altered.
    
    SQL> ALTER SESSION SET NLS_SORT = german_ci;
    
    Session altered.
    
    SQL>
    SQL> SELECT /* 8*/ * FROM nls_demo where col_char_NLS_GERMAN=:c;
    
    no rows selected
    
    SQL> SELECT * FROM TABLE(dbms_xplan.display_cursor);
    
    PLAN_TABLE_OUTPUT
    ----------------------------------------------------------------------------------------------------
    SQL_ID  9su0j5vzuwzyj, child number 0
    -------------------------------------
    SELECT /* 8*/ * FROM nls_demo where col_char_NLS_GERMAN=:c
    
    Plan hash value: 2830339923
    
    -------------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name              | Rows  | Bytes | Cost (%CPU)| Time     |
    -------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT            |                   |       |       |     3 (100)|          |
    |   1 |  TABLE ACCESS BY INDEX ROWID| NLS_DEMO          |    50 |  2150 |     3   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | I_CHAR_NLS_GERMAN |    20 |       |     1   (0)| 00:00:01 |
    -------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access("NLS_DEMO"."SYS_NC00006$"=NLSSORT(:C,'nls_sort=''GERMAN_CI'''))
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    23 rows selected.
    
    SQL> 
    

    Published by: Dom Brooks on February 21, 2011 15:39

  • the server is not registered with DCOM within the required time.

    I use Windows 7 Enterprise Edition (SP1). It works fine while working on it directly. But when I try to make the remote access connection in the machine it is restarted after a certain time (1 hour or more). I found error in the following system logs:

    Log name: System
    Source: Microsoft-Windows-DistributedCOM
    Date: 01/04/2013 18:41:34
    Event ID: 10010
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: xxxxxx.yyyy.net
    Description:
    The server {AAC1009F-AB33-48F9-9A21-7F5B88426A2E} is not registered with DCOM within the required time.
    The event XML:
     
       
        10010
        0
        2
        0
        0
        0 x 80000000000000
       
        10589
       
       
        System
        XXXXX.yyy.NET
       
     
     
        {AAC1009F-AB33-48F9-9A21-7F5B88426A2E}
     

    Hi Varun,

     

    Thanks for posting your question in the Microsoft Community.

     

    The question you posted would be better suited in the TechNet Forums.

    I suggest you to ask your question in the below link:

     

    Windows 7 networking:

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

     

    I hope that the information above helps you.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • Someone else to get errors 'droplets could not communicate with Photoshop"since the upgrade to LR2015 CC and CC 2015 PS on Windows?

    Someone else to get errors 'droplets could not communicate with Photoshop"since the upgrade to LR2015 CC and CC 2015 PS on Windows?

    I have a droplet which stretches from digimarc on my images.  Its working well for the past 2 years.  However the most recent upgrade to LR2015CC and PS2015CC its broken.  I did go back and manually install the digimarc plug-in (because it is no longer installed by default) in PS 2015 CC.  The drop works well when it is run within PS2015 CC however when I try to run it as part of "Post-processing, after export" in CC LR2015 I now get an error message "droplets could not communicate with Photoshop.  It worked in the latest versions of LR and Psalm

    Anyone have this same problem?   It is a technique of very popular workflow for those of us who use digimarc.  I wonder if anyone else has encountered this and has a fix.

    Thank you

    Work around is to install the OLD PS CC2014 and restart the computer.  Then it magically connects to CC2015 PS without errors.

  • Error in windows 2003 Standard Edition with Service Pack 2... The server {00024500-0000-0000-C000-000000000046} is not registered with DCOM within the required time.

    Could someone fix for the error below...

    OS: Windows 2003 Standard Edition with Service Pack 2...

    Event type: error
    Event Source: DCOM
    Event category: no
    Event ID: 10010
    Date: 08/08/2012
    Time: 10:00:31
    User: n/a
    Computer: BP1WHIAP011
    Description:
    The server {00024500-0000-0000-C000-000000000046} is not registered with DCOM within the required time.

    Hello
    For assistance on this issue, you can post your question in the Technet Forums.
    http://social.technet.Microsoft.com/forums/en-us/categories/

  • The server {8BC3F05E-D86B-11D0-A075-00C04FB68820} is not registered with DCOM within the required time.

    This morning when I checked my system log, it was filled with errors, while saying:

    The server {8BC3F05E-D86B-11D0-A075-00C04FB68820} is not registered with DCOM within the required time.

    A quick search of the register revealed that it identifies Windows Management Instrumentation (WMI). I looked, and indeed, he was arrested. When I tried to start it, I got the error message:

    Could not start the Windows Management Instrumentation service on Local computer

    Error 193: 0xc1

    All the help I can find on the subject assumes that the application does not have the required permissions. Nothing has been deliberately changed. I tried to do a restore of the system of the last days at several checkpoints and received messages that it could be done. So, I checked all the required permissions were still in place.

    My operating system is XP Pro SP3 with all updates applied.

    So, I have to say that something broken, perhaps in the framework of an automatic update or another. Now, when I try to run Microsoft Update, it just hangs.

    Maybe there is not enough information here, but I'm looking for more help on troubleshooting. I have the system tools enough to report all the news of trial if necessary.

    Thank you

    Don

    Even if I had run a chkdsk/r on my system disk and he come clean, I have decided to launch a sfc/scannow and found 3 DLLs that were somehow not original. Once these have been restored, the errors have stopped (so far). While it was only 30 minutes, it is the longest, I went all day with no error message. I'm keeping my fingers crossed.

  • How can I cancel your subscription to Adobe? Because it does not work with me on the computer is

    • How can I cancel your subscription to Adobe? Because it does not work with me on the computer is

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

  • Hello, the following problem, I use a PC, can not use Photoshop, you get the text following error message on the computer-Adobe Photoshop CC 2015 has stopped working "close the program". have uninstalled and installed a number of times, but the CC2015 wil

    Hello, the following problem, I use a PC, can not use Photoshop, you get the following error message on the computer-Adobe Photoshop CC 2015 has stopped working " ", "the program '. '. have uninstalled et installed a number sometimes but the CC2015 does not start anyway. Soren

    Please see:

    Re: adobe photoshop cc 2014 has stopped working in windows 8

    Re: Photoshop CC 2015 has stopped working

    https://www.YouTube.com/watch?v=0OUdIZT7C2E

    I hope this helps.

    Concerning

    Megha Rawat

  • I own CS 5Premium. Read the FAQ, it seems, I am eligible to proceed to 6 CS but I can't find the upgrade to purchase and download. I can't upgrade to CC because $49 per month, it's too much for me - do not use this product for the job. The offer of $29 se

    I own CS 5 Design Premium. Read the FAQ, it seems, I am eligible to proceed to 6 CS but I can't find the upgrade to purchase and download. I can't upgrade to CC because $49 per month, it's too much for me - do not use this product for the job. The offer of $29 seems reasonable but $49 is too much. I don't need most of the programs included in the CC, but subscribing to only three of them will cost much more. Really don't know what to do here :-(

    Buy CS6:
    ----------------------

    http://www.Adobe.com/products/catalog/CS6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html

    I believe that the offer of $29 is only for the first year, so you would end up paying $ 49 thereafter.

  • How to jump a line to insert in the staging table

    Hello world

    I'm actually transform data from a source table in the staging table and staged, and then at the final table. I generated a primary key using the sequence. As I put the insert method of the staging table as truncate/insert. So whenever the mapping is loaded, intermediate table is truncated and new data are inserted but as I am with sequence of intermediate table, it will give the new numbering of old data from the source table and it will be duplicated data in the target table. So for this reason I use key look up on top of some attributes of entry and that the use of expression that I try to avoid duplication. At each exit of the attributes in the expression, I'm trying the case statement

    "BOLD" CASE WHEN INGRP1. ROW_ID IS NULL
    THEN
    INGRP1.ID
    END * bold *.

    Because of this condition, I get the error message

    "BOLD"
    Warning
    ORA-01400: cannot insert NULL into ('SCOTT'. "" "" STG_TARGET_TABLE '. "" ROW_ID")
    "BOLD"

    But I'm stuck when the row_id value is zero, that that condition or statement should I write to jump the insertion of data. I want to insert data only when ROW_ID IS NULL.




    Kindly help me.

    Thank you

    Concerning
    Suhail Dayer

    You do not need identical tables to use LESS, only the 'select list' must match. Assuming you have the key of the enterprise (one or more columns that uniquely identifies a row of your data source) in the source and the final table, you can do the following:

    -Use a Set operation where the result is the key to the business of staging table LESS the key to the business of the final table
    -The output of the set operation is then joined to the staging table to get the rest of the attributes for these lines
    -The output of the join is inserted into the final table

    This will ensure that the lines with the new keys to the company are responsible.

    Hope this helps,
    Roald

  • I'm not able to open the properties and the State in Local (or all network devices) network. Actually I am not able to connect to the local area network connection in network and sharing Center.

    Connection to the local network - properties dialog box

    Hi, I'm not able to open the properties and the State in Local (or all network devices) network. Actually I am not able to connect to the local area network connection in network and sharing Center. But I can't access the Internet. My OS is Windows 7

    Hello Rajaneer,

    Is the computer that you are using a personal computer or a work computer?
    You will need to re - install your network card drivers like something was damaged and it prevents you to access the property:
  • How to communicate with a remote application that uses http post to the connection request

    OK, I'll try to make this simple to avoid any

    confusion.

    I am getting requests for connection of remote applications on the user pc.

    The application uses the POST method to send the request to connect to my database and possibly updating some tables.

    The application is not a Web page. I don't have access to the internals of the application nor do I have any specific information on how it sends its MESSAGE. I'm sure of the following:

    The application performs the VALIDATION on my .cfm page

    "IsConnectionAllowed" = 'yes '.

    Is ask my cfm page if its ok for you to connect. I would need to use a < cfif > to check the first part of the POST is in fact

    "IsConnectionAllowed" = 'yes '.

    If this returns true, (the application uses also at the STATION to spend 'username' and 'password') my .cfm page will then perform a query and check the user name and password on the database. If a matching record is found, the application waits for my page to answer with

    "#Answer # OK - bound;

    Once the answer is given the application will then respond with the data to insert or update my tables.

    Now I know how to make queries and update the tables etc, but I never received a prior application data.

    I tried using the < cfform > tag with a breeding to GET and then you're trying to send my response with < cfoutput >, but that did not work. The application gives no feedback or error messages. It connects or not.

    I also tried the < cfhttp > tag, but that no longer works. I'm not very experinced with coldfusion. I used years ago and am just getting back to it.

    I'm sure it's a fairly easy thing to do, but my methods do not work.

    Using the information above, can somone please show me how I would accomplish this communication? I can then use the same method to retrieve the data for my queries and updates to the table.

    Here is a sample of what I have already tried:

    < cfform method = "get" >

    < cfif >

    "IsConnectionAllowed" = 'yes '.

    <!-I need to ask a user name or password. But for testing I will just give the OK to connect->

    < cfoutput > #Answer # Ok - connected; < / cfoutput >

    < cfelse >

    <!-when I ask user name and password, if the query returns no records I refuse the connection->

    < cfoutput > #Answer # not connected; < / cfoutput >

    < / cfif >

    < / cfform >

    BTW, I have some examples of this fact using .php and .asp. I need to do it using .cfm. I can post the .php or.asp code if it will be useful in the conversion of the function in a .cfm page.

    Just as I speculated, you just send plain text - that is just like a normal web page generation.

    The code below vaguely mimics your PHP code. I did not test it, so it may contain errors. I used labels instead of cfscript, because you might be working with ColdFusion 8 and not 9. I disable all outputs of coldfusion and wrap everything which is at the exit, between the two . This way without extra line breaks or spaces are never sent. syntax ed would of course take care of that, which I use more happy when working with CF9.



       
       
            ##Answer # error - could not connect to the mySQL database.
           
       


    SELECT * FROM profil_utilisateur
    WHERE UserName =
    AND password =
       

       
       
            ##Answer # error - user name does not exist or wrong password;
           
       

    ##Answer # OK - connected;

    What still intrigues me is; the client application makes separate connections to your server or not - first to check if the connection can be established and then to the name of user and password? Of course not, even if the first time he could. In your sample code, user name and password can be checked if isConnectionAllowed is displayed on the same application.

    I guess that the application client messages these three areas (isConnectionAllowed, username, password) each time as it brings the following calls to update data in the query, because there is no no manipulation session implemented in PHP code.

    I hope this helps. * shrug *.

    --

    -Fernis - fernis.net - developer ColdFusion for hire

  • Partitioned index not used in the query

    Hello

    Oracle 10.2.0.1
    Windows xp

    I'm confused why oracle did not use a partitioned below index:
    SQL> set line 200;
    SQL> SET AUTOTRACE TRACEONLY EXPLAIN;
    SQL> select * from MYTABLE where PROD like 'SOAP%';
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 2899783245
    
    -------------------------------------------------------------------------------------------------------
    | Id  | Operation              | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT       |              |  1852 |   115K|   992   (3)| 00:00:12 |       |       |
    |   1 |  PARTITION RANGE SINGLE|              |  1852 |   115K|   992   (3)| 00:00:12 |     8 |     8 |
    |*  2 |   TABLE ACCESS FULL    |      MYTABLE |  1852 |   115K|   992   (3)| 00:00:12 |     8 |     8 |
    -------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - filter("PROD" LIKE 'SOAP%')
    
    SQL> desc MYTABLE;
     Name                                                                                  Null?    Type
     ------------------------------------------------------------------------------------- -------- -----------
     PROD_ID                                                                               NOT NULL VARCHAR2(7)
     PROD                                                                                  NOT NULL VARCHAR2(30)
     AREA                                                                                  NOT NULL VARCHAR2(30)
     SUB_AREA                                                                              NOT NULL VARCHAR2(30)
    
    SQL>
    But when I said something different; then it accesses the indexes:
    SQL> select count(*) from MYTABLE where PROD like 'SOAP%';
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1393798969
    
    ----------------------------------------------------------------------------------------------------
    | Id  | Operation               | Name     | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    ----------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT        |          |     1 |    16 |    18   (0)| 00:00:01 |       |       |
    |   1 |  SORT AGGREGATE         |          |     1 |    16 |            |          |       |       |
    |   2 |   PARTITION RANGE SINGLE|          |  1852 | 29632 |    18   (0)| 00:00:01 |     8 |     8 |
    |*  3 |    INDEX RANGE SCAN     | PROD_IDX |  1852 | 29632 |    18   (0)| 00:00:01 |     8 |     8 |
    ---------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - access("PROD" LIKE 'SOAP%')
           filter("PROD" LIKE 'SOAP%')
    
    SQL>
    How to create prod_idx:
    SQL> ED
    Wrote file afiedt.buf
    
      1  create index prod_idx ON mytable(prod)
      2  global partition by range(prod)
      3  (partition prod1 values less than ('A'),
      4  partition prod2 values less than ('B'),
      5  partition prod3 values less than ('C'),
      6  partition prod4 values less than ('D'),
      7  partition prod5 values less than ('E'),
      8  partition prod6 values less than ('F'),
      9  partition prod7 values less than ('G'),
     10  partition prod8 values less than ('H'),
     11  partition prod9 values less than ('I'),
     12  partition prod10 values less than ('J'),
     13  partition prod11 values less than ('K'),
     14  partition prod12 values less than ('L'),
     15  partition prod13 values less than ('M'),
     16  partition prod14 values less than ('N'),
     17  partition prod15 values less than ('O'),
     18  partition prod16 values less than ('P'),
     19  partition prod17 values less than ('Q'),
     20  partition prod18 values less than ('R'),
     21  partition prod19 values less than ('S'),
     22  partition prod20 values less than ('T'),
     23  partition prod21 values less than ('U'),
     24  partition prod22 values less than ('V'),
     25  partition prod23 values less than ('W'),
     26  partition prod24 values less than ('X'),
     27  partition prod25 values less than ('Y'),
     28  partition prod26 values less than ('Z'),
     29* partition prod27 values less than (MAXVALUE))
    SQL> /
    
    Index created.
    SQL> select count(*) from MYTABLE;
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3323402158
    
    --------------------------------------------------------------------------------------------------------------
    | Id  | Operation                      | Name                | Rows  | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT               |                     |     1 |   311   (0)| 00:00:04 |       |       |
    |   1 |  SORT AGGREGATE                |                     |     1 |            |          |       |       |
    |   2 |   PARTITION RANGE ALL          |                     |    14M|   311   (0)| 00:00:04 |     1 |    27 |
    |   3 |    BITMAP CONVERSION COUNT     |                     |    14M|   311   (0)| 00:00:04 |       |       |
    |   4 |     BITMAP INDEX FAST FULL SCAN| MS_IDX_MYTABLE      |       |            |          |     1 |    27 |
    --------------------------------------------------------------------------------------------------------------
    Table is to have 14693792 lines.

    Why this is the case, please guide me to understand. Thank you.

    Published by: user12050217 on July 29, 2010 23:37

    Published by: user12050217 on July 29, 2010 23:38

Maybe you are looking for

  • Satelite L775 used high power - orange light blinks 5 times

    Greetings, I bought my Toshiba Satelight new l775 7 months ago, it's so crazy. It used to be on, I use the laptop connected to the adapter 4 to 8 hours a day, then the laptop goes unused and unplugged for 16 to 20 hours a day. This is my 3rd phone, I

  • "COA" HP/Microsoft usage limit?

    Here are my computer tech Specifications: http://support.HP.com/us-en/document/c03135882 I installed clean Windows 7 and I activated Windows 7 using Microsoft "COA" product key from the sticker on the computer case/Tower. I was wondering how many tim

  • boot critical file c:\ntoskrnl.exe is corrupt

    Every time I do windows update and then restart, when it configures updates that does not have the login screen, then on my laptop restarts and goes to startup repair. She does every time after that the update and I think it restore my laptop to a wo

  • Code 9,230,0

    Need a driver. Cannot scan.

  • How to change the default path for documents and settings

    How to change the default path for documents and settings I try to change in the registry, but the profile can create but error! had no choice to change the default path % lecteur_systeme % d: /.