Disabling Indexes

Hi,
in 10g R2,
it is said that the following WHERE clause will disable index :
WHERE ''|| column >=valueBut when I use it the explain plan does not change :
SQL> EXPLAIN PLAN FOR
  2  select EMPLID, NAME FROM sysadm.PS_NAMES WHERE EMPLID >= 'PA001';
Explained.
SQL> SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 170795870
| Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time
|
PLAN_TABLE_OUTPUT
|   0 | SELECT STATEMENT     |          |   164 |  5576 |    71   (2)| 00:00:01
|
|*  1 |  INDEX FAST FULL SCAN| PS0NAMES |   164 |  5576 |    71   (2)| 00:00:01
|
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
   1 - filter("EMPLID">='PA001')
13 rows selected.And with that trick :
SQL>  EXPLAIN PLAN FOR
  2   select EMPLID, NAME FROM sysadm.PS_NAMES WHERE ''||EMPLID >= 'PA001';
Explained.
SQL> SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 170795870
| Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time
|
PLAN_TABLE_OUTPUT
|   0 | SELECT STATEMENT     |          |   164 |  5576 |    71   (2)| 00:00:01
|
|*  1 |  INDEX FAST FULL SCAN| PS0NAMES |   164 |  5576 |    71   (2)| 00:00:01
|
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
   1 - filter(''||"EMPLID">='PA001')
13 rows selected.Where am I wrong ?
Thank you.

The reason why it does not work for you is, I suspect, because you have an index on all the columns you use in your query. In that one instance, there is absolutely no need to look in the table at all as all the information is available in the index.
Judging from your explain plans, that is exactly what is happening in your case (there is no Table lookup once the index has been accessed, you see!).
Eg:
SQL> create table test1 (col1 number,
  2                      col2 varchar2(20),
  3                      col3 number,
  4                      col4 number,
  5                      col5 number,
  6                      constraint test1_pk primary key (col1));
Table created.
SQL>              
SQL> insert into test1
  2  select level, 'name_'||level, level, level + 1, level + 2
  3  from dual
  4  connect by level <= 10000;
10000 rows created.
SQL>
SQL> commit;
Commit complete.
SQL>
SQL> create index test1_idx on test1 (col1, col2);
Index created.
SQL>
SQL> explain plan for
  2  select col1, col2
  3  from   test1
  4  where  col2 >= ''||'name_9990';
Explained.
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 1755968961
| Id  | Operation        | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT |           |    10 |   250 |   100  (53)| 00:00:01 |
|*  1 |  INDEX FULL SCAN | TEST1_IDX |    10 |   250 |   100  (53)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - access("COL2">='name_9990')
       filter("COL2">='name_9990')
Note
   - dynamic sampling used for this statement
18 rows selected.
SQL>
SQL> explain plan for
  2  select col1, col2
  3  from   test1
  4  where  col2 >= ''||'name_9990';
Explained.
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 1755968961
| Id  | Operation        | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT |           |    10 |   250 |   100  (53)| 00:00:01 |
|*  1 |  INDEX FULL SCAN | TEST1_IDX |    10 |   250 |   100  (53)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - access("COL2">='name_9990')
       filter("COL2">='name_9990')
Note
   - dynamic sampling used for this statement
18 rows selected.
SQL>
SQL> explain plan for
  2  select col1, col2
  3  from   test1
  4  where  col3 >= 9990;
Explained.
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT                                                              
Plan hash value: 3852271815                
| Id  | Operation         | Name  | Rows  | Bytes | Cost (%CPU)| Time     |    
|   0 | SELECT STATEMENT  |       |    11 |   418 |   152  (35)| 00:00:01 |    
|*  1 |  TABLE ACCESS FULL| TEST1 |    11 |   418 |   152  (35)| 00:00:01 |    
Predicate Information (identified by operation id):                            
   1 - filter("COL3">=9990)                                                    
Note                                                                           
   - dynamic sampling used for this statement                                  
17 rows selected.
SQL>
SQL> drop table test1;
Table dropped.

Similar Messages

  • Disable indexes before imp

    I am importing large tables from a dmp file created by the exp utility. I would like to disable indexes on these tables for the time of import. I tried "alter index ... unusable", but then the imp utility complains, displays the error message that an index is unusable and doesn't do the import.
    Do I have to drop indexes? Then my understanding is that I would have to save the SQL statements to recreate these indexes, correct? Or is there a better solution to speed up the import? Some tables have 40 million records.

    Does the table (and it's indexes) pre-exist before running the import ?
    If you are on 10g and above, the instance parameter SKIP_UNUSABLE_INDEXES should default to TRUE and should allow Insert with all Indexes (other than PK and Unique) as UNUSABLE. PK and UNIQUE Indexes have to be dropped before the import.
    You can generate the CREATE INDEX statements by running imp with the indexfile option. This allows you to generate a script file that has the CREATE INDEX statements.
    imp user/password file=export.dmp indexfile=CREATE_INDEXES.sqlHemant K Chitale
    Edited by: Hemant K Chitale on Feb 1, 2011 10:11 PM

  • Enabling Disabled Index

    Hi, while loading data through SQL*loader using DIRECT path, the index on the table gets disabled if the data was bad. I am deleting the bad data from the table. Now I want to get the disabled indexes on that table and re-enable them. how to do this?

    Hmm...
    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.02
    satyaki>
    satyaki>create table ttest
      2      (
      3        a_no number(4) not null,
      4        constraints ck_ano primary key(a_no)
      5      );
    Table created.
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>
    satyaki>select index_name
      2     from user_indexes
      3     where table_name = upper('ttest');
    INDEX_NAME
    CK_ANO
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>alter index ck_ano unusable;
    Index altered.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>select status, index_name
      2     from user_indexes
      3     where table_name = upper('ttest');
    STATUS   INDEX_NAME
    UNUSABLE CK_ANO
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>alter index CK_ANO rebuild;
    Index altered.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>select status, index_name
      2  from user_indexes
      3  where table_name = upper('ttest');
    STATUS   INDEX_NAME
    VALID    CK_ANO
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • How to disable indexing in ANY USB drive not specific from privacy in spotlight menu

    Hi all,
    I would like to disable from indexing "ANY" usb device that i connect to my macbook pro.
    I know the option from spotlight -> privacy and exlude a hdd or usb device with the + sign.
    But i want to have something for any external device i can't do this on any device i connect each time.
    During the day i may connect 40-60 usb devices so thats is imposible.
    I want a solution that prevent the spotlight to insexing any external device any usb any hdd without to do it manualy each time.
    Every day i have to test different devices and drives i can to this it's slow down my work.
    I would like a script or solution that will be permantly and for not specific device but for all.
    Thank you
    xireland

    I have not customized anything. All my other browsers are fine, it is only Firefox that has this issue and it's on 2 different pc's.
    I have tried using the default theme and even downloaded, enabled, & disabled 3-4 other themes and none of them effect the transparency or the blacked out tabs.

  • How to disable index defined on a stsndard table j_1ipart2?

    Dear Friends,
    I am using a stndard table j_1ipart2 for updating line items for GL account.I am using a hashed type internal table for this purpose.But There is already two indexes defined. and they are not useful to me.So I just want to disable these indexes for my hashed type internal table for better perfomance.Plz guide me urgenty.
    Also if possible send me sample coding structure...............!!!!!
    For better understanding problem write to me
    Thanks&Regards
    Ricky

    Hi Ricky,
    You dont have to bother about the index selection.The database optimizer will select the best index for your selection.
    Reward Points if helpful,
    Regards,
    jinesh.

  • Disabling Indexing for a DSL

    Hi All,
    My model base is huge(lots of xtext resources), it also contains generated files which are once again xtext files. So when i do a clean build, is there a way that i can ignore indexing of some xtext resources.
    For Ex :
    I have .a, .b, .c, .d files in my project
    .a and .b are used for code generation, whereas .c and .d are generated(But they are also xtext DSL) . So is there a way to stop indexing for .c and .d files.
    Also, May i should need to reenable them when i require ?(Just curious about this )
    Thanks Guys

    Hi
    Why?
    Surely it only makes indexing, and lookups using the index useless? But
    that was the point of disabling in the first place.
    Regards
    Ed Willink
    On 11/08/2015 16:54, Christian Dietrich wrote:
    > Btw completely disabling makes your dsl useless

  • Disabling indexing except home directory

    The indexing of spotlight takes so long, so I wanted to enable the indexing path only to the home directory. I edited the _rules.plist as below and ran the command.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dt
    d">
    <plist version="1.0">
    <dict>
    <key>EXCLUDE</key>
    <array>/</array>
    <key>INCLUDE</key>
    <array>~/</array>
    <key>NOTE</key>
    <string>Specify paths to include or exclude, preceeding rules which target user-homes with ~/</strin
    g>
    </dict>
    </plist>
    % mdutil -i off /pathtovolume
    % mdutil -E /pathtovolume
    % mdutil -i on /pathtovolume
    The result was, excluding for every path under root path didn't seem to work. My assumption is that the path is not crawled recursively.
    My question is,
    1. Is there a way to write path to be crawled recursively?
    2. If there aren't a way to crawl recursively, do I have to write every path to exclude for doing such thing?
    PowerBook G4   Mac OS X (10.4.4)  

    Hi, K. O. Welcome to the Discussions.
    By default, Spotlight does not index much outside your Home directory, unless you have multiple users defined on your Mac, in which case it also indexes their Home directories and the other locations documented in "Mac OS X 10.4: Where does Spotlight search?".
    Since most of the data on your PowerBook (unless you also have external drives connected) resides in your Home directory, there's little you can do about this other than exclude (via Privacy) subdirectories of your Home directory that you do not want to search with Spotlight.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • SP with input parameters to disable and enable indexes

    I need to build a stored proc script with input paramters to disable indexes and enable indexes of specific tables.
    Parameter would be tablename,schemaname,a value input which will determine if it is for disabling index or enabling index
    I will have a reference table which would hold the specific tables
    Below is the ddl script and sample data for reference
    USE [test]
    GO
    /****** Object:  Table [dbo].[TestingIndex]  DDL  Script Date: 01/27/2014 22:38:39 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[TestingIndex](
    [tablename] [varchar](30) NULL,
    [schemaname] [varchar](10) NULL,
    [Flag] [varchar](1) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    sample data
    tablename
    schemaname
    Flag
    tableabc
    abc
    y
    tabledef
    def
    y
    tableghi
    ghi
    y
    All I want to do is disable all the indexes of the tables which are present in my reference table by looping through the reference tables.
    Similarly I want to do enable all the indexes of the diabled table using the reference table
    Any help would be appreciated and best way to do it thinking all pros n cons.
    Mudassar

    New code with changes
    USE [TEST]
    GO
    /****** Object: StoredProcedure [dbo].[usp_indexes] Script Date: 1/28/2014 10:11:55 AM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[usp_indexes1]
    @ref reftable READONLY,
    @input int
    AS
    BEGIN
    ---Declare variables
    DECLARE @tblnm VARCHAR(30), @schnm VARCHAR(10), @flag BIT, @sql VARCHAR(MAX)
    ---Declare cursor
    DECLARE cursor_index CURSOR
    FOR SELECT tablename, schemaname, flag FROM @ref
    --Open cursor
    OPEN cursor_index
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    WHILE @@FETCH_STATUS = 0
    BEGIN
    if @input =1
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' DISABLE '
    print @sql
    EXEC sp_execute @sql;
    END
    else
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' REBUILD '
    print @sql
    EXEC sp_execute @sql;
    ALTER INDEX ALL ON dbo.Test1 DISABLE
    END
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    END
    CLOSE cursor_index
    DEALLOCATE cursor_index
    END
    GO
    result when I execute it gives below message
    (3 row(s) affected)
    ALTER INDEX ALL ONdbo.Test1DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test3DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test4DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    DECLARE @ref reftable
    INSERT INTO @ref
    SELECT * FROM testingindex
    EXEC usp_indexes1 @ref,1
    but when I go n check indexing status no tables  have been disabled using the below query it shows still enabled
    select sys.objects.name as 'table',
    sys.indexes.name as 'index',
    is_disabled = case is_disabled
    when '1' then 'disabled'
    when '0' then 'enabled'
    end
    from sys.objects join sys.indexes
    on sys.objects.object_id = sys.indexes.object_id
    where sys.objects.name in('Test1','Test3','Test4' )
    below are my table schema and index script (similar for 3 tables i m using for testing)
    CREATE TABLE [dbo].[Test1](
    [YEAR] [varchar](10) NULL,
    [MONTH] [varchar](10) NULL,
    [MONTH_VAL] [varchar](10) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    USE [TEST]
    GO
    /****** Object: Index [NonClusteredIndex-20140128-112203] Script Date: 1/28/2014 11:23:48 AM ******/
    CREATE NONCLUSTERED INDEX [NonClusteredIndex-20140128-112203] ON [dbo].[Test1]
    [YEAR] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    GO
    Mudassar

  • Disable content indexing for passive nodes

    I have three node DAGs where one node is DR in another site.
    Have noticed large amounts of traffic on my production network to DR and discovered it was indexing.
    Is it best practice to disable the indexing service on passive nodes?  In the event of DR you would lose search, and you would have to disable client experience checks.  But other than that, I cannot a real downside.  Can someone
    confirm?
    As an alternative is it possible to move indexing to my replication network? 

    Hi RAY1357,
    Great information from JasonApt.
    We can disabled on a specific mailbox database by using EMS:
    Set-MailboxDatabase <name> -IndexEnabled:$False.
    To disable indexing completely on a mailbox server, we can just stop the "Microsoft Exchange Search Indexer" service.
    Found a blog, it applied to Exchange 2007, just for your reference:
    Exchange 2007 Search - Part 2: Content Indexing
    http://blogs.technet.com/b/exchangesearch/archive/2010/07/02/exchange-2007-search-part-2-content-indexing.aspx
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Windows Indexing - What is It, and How Can it Affect Me?

    What is Windows Indexing, how do I use it, and why might it be getting in the way, when I am doing Video editing?
    Well, most versions of Windows has a feature, called Windows Indexing. This is a little application that roams your system, looking for files, that it can Index, so that Searches are quicker. For many computers, it causes no problems, as it goes about looking at your DOC, and TXT files, compiling indexes to speed up Searches, especially for content. When it’s working, it’s behind the scenes, and usually causes no problems. When a DOC or TXT file changes, or is created, it will Lock that file, while it searches through its content for future Searching.
    Now, when one is doing Video editing, they are working with some large files. Windows Indexing cannot glean anything from the AV files, or from the various working files, that an NLE (Non Linear Editor) creates, and updates constantly. The inability to extract useful info from those files does not stop Windows Indexing from trying - and trying. The files get locked, so that the user, or the NLE cannot access them, when needed. Every time that one of these files gets changed, or written, Windows Indexing will immediately Lock it, as it attempts to do its job. This can cause all sorts of issues, and many slowdowns and even program crashes.
    One can find out if they have Windows Indexing turned ON, or not. It will be ON by default. Go to My Computer and click on each HDD (Hard Disk Drive), both internal and external, and then Rt-click, choosing Properties. In most versions of Windows, the Windows Indexing status will be shown near the bottom of the drop-down menu.
    This differs by version, but one can usually turn it OFF for the entire HDD, or can limit it to just certain folders. I turn it OFF, as I mostly do Video and image editing on my computers, but some do leave it on, but just for folders with their DOC and TXT files, as it does speed up Searches, and Windows Indexing can speed those up, for the DOC, TXT and some similar files.
    Hope that this explains why one might be getting “access denied,” “file locked,” and other errors, or major slowdowns, especially when working with large AV files, or perhaps when writing a DVD to a folder. Also, Render files can get locked by Windows Indexing, as it struggles to do its job.
    Hunt

    Noel Carboni just posted some comments on Windows Indexing on the Photoshop Forum. Though there are some differences in the files being indexed, and some of the ramifications, I thought the info useful, so am adding it here:
    Disable Indexing
    Indexing is supposed to make it quick and easy to find things on your computer using Windows Search (that little box at the upper-right of Explorer windows).
    But when you think about it, does it make sense to read all the files on your disk, extract everything you could possibly want to search for, and store it on that same disk another way?  To even consider indexing providing better performance than just searching the files, Microsoft must be picking and choosing the data they think you'll want to look for (excluding data you WON'T want to search for), where you'll want to search, and in what kinds of files, and in fact they are.  How could they know everything you'll ever want to search for?
    They can't.  Not everything is indexed, and never will be!
    Try this:  Create a simple text file on your disk, in a temporary folder.  Call it "FindMe.log" and put in the text "This file contains important tax information".  Now navigate to that folder with Explorer and enter the word "tax" into the Search box at the upper-right.  Enter any of the words in that file!  Windows Search will not find the file, because it simply does not LOOK in .log files by default, and there's no fallback strategy - Windows Search simply does not index nor search for information for some kinds of files. Incredible!
    All it takes is ONE TIME searching for something you know is there and NOT finding it to destroy your confidence in Windows Search.
    And so they scan through your files endlessly, pick out the strings you might someday search for, and store them in yet another set of files (the "index").  As though your computer has nothing better to do.
    Not only is the basic premise of this wrong, but it's not even implemented very well.  The index often becomes corrupted, and so Microsoft has provided functions for you to clear and regenerate it.  Just what you wanted to be doing - NOT.
    Consider these shortcomings:
    Some file types are simply not indexed or searched by default – e.g., .log files, and there's no fallback.  If you create a new file type no one's seen before, its contents will not be indexed.
    Only strings Microsoft thinks you are likely to search for are indexed.
    Because of poor implementation, indexing will miss things in some file types that are indexed – e.g., older Microsoft Word documents or files containing Unicode text (Microsoft's own invention).
    Indexes often become corrupted and the Windows Search results fall out of date or it stops finding things entirely.
    Indexing operations use computer time, increase disk wear, and interfere with your own access to your files.
    In summary, indexed Windows Search operations in Windows 7 simply can't be trusted to find your data in your files when it's critical, and so they're essentially useless.  Searching for filenames using Windows Search actually can be occasionally useful (though the syntax to ensure it searches only filenames is a bit tricky), but this doesn't require indexing.
    Moreover, indexing can actually interfere with file operations, causing your system to report disk corruption, because of an implementation error in indexing and NTFS (search the web for "Atomic Oplock", for example).
    So indexing should simply and utterly be disabled.  This won't actually stop you being able to try Windows Search - on the contrary with indexing off Windows 7 will actually search your actual files (within the limitations listed above) just when you tell it to, and (since indexing isn't implemented very well) it may actually INCREASE the probability that you might find what you're looking for.
    Here's how to disable indexing:
    1.        Click Start and enter services in the search box.
    2.        When Services (with little gears) comes up, click it.
    3.        Scroll down to the Windows Search service.
    4.        Right click it and choose Properties.
    5.        Change the Startup type to Disabled.
    6.        Click [ Stop ] to stop the service.
    7.        Click [ OK ].
    8.        Click Start and enter index in the search box.
    9.        When Indexing options comes up, click it.
    10.     Click the Advanced button.
    11.     Click the [ Rebuild ] button to delete the index.
    12.     It is a good idea to reboot after this.
    -Noel
    And a "thanks" to Noel for putting this together. As the thread that this originally appeared in has a lot of Photoshop material, and discussions on "other OS's" than Win7, I just exerpted this block.
    Hunt

  • How to create index file for pdf.

    Hello,
    I need to create a plugin which will read a list of pdf files and then create a full text index with catalog. I searched on net and came to know about the catalog plugin which does this work.In AV layer there is a catalog object but I am unable to find any example on net which uses the catalog object to create the pdx file and a support folder(contains idx files).
    I also read the java script documentation but there was no example for creating index.We can build index but for that we need to retrieve the index object first.
    Can somebody please giude me.
    Thanks!

    Hi Irosenth,
    Is it possible to use DOM/IAC to create index files. The example given in SDK(SearchPdfVB) allows us to add,remove,enable and disable index files. But there is no method given in example to create an index file.
    I want to create index file and the supporting folder which contains .idx files automatically ie through code. Is it possible to do so??
    I also looked into the AVCommands but couldn't understand how to create the index files using AVCommands.
    Can you please guide me.
    Thanks!!

  • How to optimize massive insert on a table with spatial index ?

    Hello,
    I need to implement a load process for saving up to 20 000 points per minutes in Oracle 10G R2.
    These points represents car locations tracked by GPS and I need to store at least all position from the past 12 hours.
    My problem is that the spatial index is very costly during insert (For the moment I do only insertion).
    My several tries for the insertion by :
    - Java and PreparedStatement.executeBatch
    - Java and generation a SQLLoader file
    - Java and insertion on view with a trigger "instead of"
    give me the same results... (not so good)
    For the moment, I work on : DROP INDEX, INSERT, CREATE INDEX phases.
    But is there a way to only DISABLE INDEX and REBUILD INDEX only for inserted rows ?
    I used the APPEND option for insertion :
    INSERT /*+ APPEND */ INTO MY_TABLE (ID, LOCATION) VALUES (?, MDSYS.SDO_GEOMETRY(2001,NULL,MDSYS.SDO_POINT_TYPE(?, ?, NULL), NULL, NULL))
    My spatial index is created with the following options :
    'sdo_indx_dims=2,layer_gtype=point'
    Is there a way to optimize these heavy load ???
    What about the PARALLEL option and how does it work ? (Not so clear for me regarding the documentation... I am not a DBA)
    Thanks in advanced

    It is possible to insert + commit 20000 points in 16 seconds.
    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 32-bit Windows: Version 10.2.0.1.0 - Production                        
    NLSRTL Version 10.2.0.1.0 - Production                                         
    drop table testpoints;
    create table testpoints
    ( point mdsys.sdo_geometry);
    delete user_sdo_geom_metadata
    where table_name = 'TESTPOINTS'
    and   column_name = 'POINT';
    insert into user_sdo_geom_metadata values
    ('TESTPOINTS'
    ,'POINT'
    ,sdo_dim_array(sdo_dim_element('X',0,1000,0.01),sdo_dim_element('Y',0,1000,0.01))
    ,null)
    create index testpoints_i on testpoints (point)
    indextype is mdsys.spatial_index parameters ('sdo_indx_dims=2,layer_gtype=point');
    insert /*+ append */ into testpoints
    select (sdo_geometry(2001,null,sdo_point_type(1+ rownum / 20, 1 + rownum / 50, null),null,null))
    from all_objects where rownum < 20001;
    Duration: 00:00:10.68 seconds
    commit;
    Duration: 00:00:04.96 seconds
    select count(*) from testpoints;
      COUNT(*)                                                                     
         20000                                                                      The insert of 20 000 rows takes 11 seconds, the commit takes 5 seconds.
    In this example there is no data traffic between the Oracle database and a client but you have 60 -16 = 44 seconds to upload your points into a temporary table. After uploading in a temporary table you can do:
    insert /*+ append */ into testpoints
    select (sdo_geometry(2001,null,sdo_point_type(x,y, null),null,null))
    from temp_table;
    commit;Your insert ..... values is slow, do some bulk processing.
    I think it can be done, my XP computer that runs my database isn't state of the art.

  • 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.

  • Disabling spotlight for Time Capsule

    Hi,
    I need to disable (please do not ask the reason, I just need) indexing for backups on the Time Capsule. I know that the help on Spotlight says Time Machine needs spotlight bla bla... and, it can't disable indexing for this. I just don't beleive it, because when I disable spotlight for good with the following command:
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    time machine continues to function just fine. Everything seems perfect as far as the time machine is concerned. However, other apps (like Mail) which relies on spotlight for searching forced me to reenable the spotlight (with the following command) with tears in my eyes:
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    So, please help me to find a workaround for disabling spotlight/indexing just for time machine.
    By the way I tried the following methods without any success, so do not bother to recommend them:
    1) Including TM volume and/or Backup directory in the TM volume to the privacy list of Spotlight
    2) sudo mdutil -i off /Volumes/VolumeName and sudo mdutil -E /VolumeName
    3) Erased .Spotlight-V100
    4) touch .metadata_never_index in the root and/ot Backup directory of time machine volume
    5) creating a dummy file named  .Spotlight-V100
    [rebooted in all instances...]
    PLEASE HELP

    So, you've read through the FAQs and couldn't find a solution, eh? Sorry, but I don't use TM nor do I muck with CLI commands that I don't fully comprehend. You'll have to wait for someone more knowledgeable to pop in.

  • Mountain Lion: problem with Time Machine directories and spotlight indexing

    I'm using a fresh install of 10.8 Mountain Lion on a 2011 MBP.  It's a work laptop with many ASCII files containing numerical data (floating point numbers), with varying file extensions.  Some of the files are multi-gig, some are only a few hundred K, and there are tens of thousands of them.  Roughly 500G of numerical data.
    I can disable spotlight from indexing certain subdirectories of my home directory on the local drive.  However, when using Time Machine to backup, I seem to be entirely unable to prevent spotlight from attemping to fully index the external drive (Time Machine volume).   I actually let spotlight run for over 36 hours this weekend in a futile attempt for it to finish indexing the TM volume.   The /.Spotlight-V100 index on the external drive is roughly 100G and continuously written and overwritten.  /var/log/system.log had various "Merging failed" messages for temp spotlight files.  I deleted the index, let spotlight run again overnight, but it did not finish indexing.  "sudo fs_usage -f filesys mds mdworker mdimport mdworker32 | grep open" showed spotlight slowly chugging through the thousands of numerical files.
    I believe the problem is related to this old report from someone who noticed a leopard -> snow leopard change:
    http://hintsforums.macworld.com/showthread.php?t=106703
    http://forums.cnet.com/7723-6126_102-366184/snow-leopard-10-6-spotlight-indexing -and-disk-usage/
    However, I don't see an easy solution.  In ML, if you drag the TM volume to the spotlight privacy list it gives you a message about how you can't disable indexing of TM volumes because it's essential for TM.  I have not yet tried to manually put in some kind of .metadata_never_index file in the relevant TM volume directories (I am not sure if that will do anything, or perhaps break TM backups), but that's one possible next step.
    Anyone have ideas on how I can have my TM backups work but the spotlight indexing of all these data files (their subdirectories) disabled?   I'm not specifically TRYING to back up those data files with TM (they're duplicated elsewhere), they're just on the same machine as a bunch of other stuff I need backed up via TM.  Apple has a disaster on their hands for anyone trying to backup a machine which also has large data sets.

    I'm not aware of any avenue to tell spotlight to not index all or part of a backup.
    However, the indexing should work, even if takes a long time.
    I don't think this is a new issue and has been part of TM from the start.
    Realistically, it may be time to consider whether TM is the best choice for these data files?
    Are they very volatile do they change frequently both as to content of individual files and total set of files?
    If not, then a clone or syncing type of backup might be better suited for these files.
    I do not back up all my files via time machine. I keep photographs and music outside of Time Machine. to be sure they are backed up but via clones.
    To show why  this might the best take photographs. My photographs are basically immutable once they enter the system, but I may come back with 5000 images from a trip and whittle that down to a few hundred eventually. This would cause a lot of files to be saved in TM that are no longer wanted, - but are not easy to remove formthe backup. while the ones I want haven't changed. TM is not geared to make handling that easily.
    As a further aside, ideally one should back everything of value up twice via 2 different means.
    I've had backup drives fail.I've had TM logically fail (disk is fine -TM internal data structures bad).

Maybe you are looking for

  • How can you hide a Continue button until all clickboxes are clicked?

    I have seen similar questions to this one, but none seemed to be the exact situation as mine. What I have: Several images on a screen.  When a user clicks an image it is replaced with another image.  I am using clickboxes for this task.  I do not wis

  • Hash semi join and join selectivity

    Hi, I'm looking for an explanation of the rule-of-thumb that hash joins are more efficient for high selectivity joins. If I have a query with two tables, semi-joined together using an EXISTS clause, why would a hash join be better for a high selectiv

  • Group does not exist

    Hi! I´m in a upgrade from version 4.6C to 6.0, and i'm checking the bases of costing sheet because i can´t calculate overhead. The group of cost elements appears in the selection list, but when i want to assign it the system says: "group does not exi

  • [SOLVED] Netbeans won't start unless I am root

    Hi problem as topic. I have this issue since I upgraded to 7.3 (I didn't do this earlier, for I have to reconfigure the android plugin each time a new version comes) The symptoms are exactly as discribed in this thread: https://bbs.archlinux.org/view

  • Fixed size ratio

    I'm using the Open Browser Window behavior on a link to open a new window with a fixed size ratio. This works fine but I would like there to be a link in that window that will open other pages within it. I can't figure it out because the Open Browser