Disable the index dynamically

Hi,
How to disable the index in a table dynamically.
Thanks
Radha

Hi
An index can be used to ensure uniqueness as well, eg for a PK or UK. In these cases it is not an option not having an index, or to have it disabled or unusable. As the indexed column is named "emp_id", I guess that is the case...
The OP seems vehemently not wanting to use the index. I am curious to know why... It would be nice if people gave some more background when making their questions.
Luis

Similar Messages

  • How to disable the index in oracle

    Hi,
    Is there any way we can disbal the index in oracle.
    For the performance issue,I want to disable some of the indexes which i have created earlier. I dont want to drop the index.
    I tried the below command
    Alter Index <Schema>.<Index_name> Disable;
    I am getting the below error message:
    ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option
    Thanks,
    Krishna
    .

    Hello,
    I have a question related to disabing index and thought I would post it in thread.
    I'm altering a column length to increase the size and getting "ORA-30556: functional index is defined on the column to be modified".
    On searching more about this error, it seems like the function index must be dropped before altering the column.
    The table I'm dealing with is huge.
    Question 1:
    In case of dropping and recreating the index, should the following steps be done:
    - Drop Index
    - Alter the column to increase the size
    - Recreate the index with NOLOGGING and NOPARALLEL clause
    - ALTER INDEX to turn on LOGGING
    - Gather Statistics on that index
    Question 2:
    Is there anything else that should be done when the index is dropped and re-created?
    Question 3:
    What are the side-effects of carrying out the above steps in a huge table with around 15 million rows?
    Question 4:
    Would it work if I disable the index, alter the column and reenable the index?
    Do I have to rebuild the index and gather Stats upon reenabling it?
    Thanks!

  • Sorry Disable the index

    Hi is it possible to Disable the index?
    Thanks in advance
    siva

    In what way?
    You can disable a function based index.
    You can mark an index as unusable which will speed up direct path loads.
    You can specify a hint to ignore an index in a DML statement.

  • CONTAINS clause still works after disabling fulltext index on a table

    I disabled the fulltext index on a table using the below query:
    USE <dbname>;
    GO
    ALTER FULLTEXT INDEX ON <table_name> DISABLE
    Per BOL, "The table will not support full-text queries while the index is disabled.", I would expect the CONTAINS clause to stop working but I can still return rows from the <table_name> as before.
    SELECT top 10 * 
      FROM [dbo].[table_name]
      WHERE CONTAINS(<column>, N'test');
    The above returns 10 rows before and after disabling the index.
    Do i need to do something else?
    I even tried DENY permissions:
    DENY CONTROL, TAKE OWNERSHIP, ALTER, REFERENCES, VIEW DEFINITION ON FULLTEXT CATALOG::<catalog_name>
    TO <some_database_roles including public>
    Please help.
    Thanks
    Thanks

    Charles,
    Do you have any DDL Triggers on your server that might affect whether the full text index could be disabled?
    Any Policies that might likewise affect your results?
    RLF

  • Why isn't my query using the index?

    I have a query that inserts values for engines in a grid; it uses a static date table to determine the day in week, or
    week in year (depending on different standards, the DBA can configure this table to their business's likings). I have
    two indexes on this table:
    create table d_date (
         date_key number(5) not null,
         sql_calendar_date timestamp(3) null,
         year_id number(5) null,
         month_id number(3) null,
         day_id number(3) null,
         year_end_biz_date timestamp(3) null,
         qtr_end_biz_date timestamp(3) null,
         month_end_biz_date timestamp(3) null,
         week_end_biz_date timestamp(3) null,
         quarter_id number(3) null,
         week_id number(3) null,
         day_in_year number(5) null,
         day_in_month number(3) null,
         day_in_week number(3) null,
         month_name char(3) null,
         day_in_week_name char(3) null,
         month_type_code char(1) null,
         week_type_code char(1) null,
         date_type_code char(1) null,
         weekend_flag char(1) null,
         holiday_flag char(1) null,
         from_datetime timestamp(3) null,
         to_datetime timestamp(3) null,
         current_flag char(1) null,
         constraint d_date_pkey primary key (date_key)
         ) tablespace dim;
    create index d_date_dy on d_date(year_id, day_in_year) tablespace_dim_idx;
    create index d_date_ww on d_date(year_id, week_id) tablespace_dim_idx;Now, when I run a query to insert the week id into a table based on two values, the year_key and day_in_year_key,
    it should use the d_date_dy index correct?
    Here is what the query looks like:
    INSERT INTO F_ENGINE (YEAR_KEY,MONTH_KEY,WEEK_IN_YEAR_KEY,DAY_IN_YEAR_KEY,DAY_IN_MONTH_KEY,HOUR_IN_DAY_KEY, Q_HOUR_IN_DAY_KEY,
      GRID_KEY,ENGINE_KEY,TIME_STAMP,ENGINE_CPU_UTIL,ENGINE_CPU_GRID_UTIL,MEMORY_TOTAL_BYTE, MEMORY_FREE_BYTE,DISK_FREE_MEGABYTE,
      PROCESS_COUNT,ENGINE_ID,GRID_ID,GRID_NAME,BATCH_ID,RECORD_VIEWABLE_F)
    SELECT EXTRACT(YEAR FROM START_DATETIME),EXTRACT(MONTH FROM START_DATETIME), DD.WEEK_ID,
      TO_NUMBER(TO_CHAR(START_DATETIME, 'DDD')), EXTRACT(DAY FROM START_DATETIME),EXTRACT(HOUR FROM START_DATETIME),
      FLOOR(EXTRACT(MINUTE FROM START_DATETIME)/15)*15,DG.GRID_KEY,DE.ENGINE_KEY, START_DATETIME,CPU_UTIL,DS_CPU,MEMORY,
      FREE_MEMORY,FREE_DISK,PROCESSES,ID,PE.GRID,DG.GRID_NAME,:B1 ,1
    FROM P_ENGINE PE, D_GRID DG, D_ENGINE DE, D_DATE DD
    WHERE PE.GRID = DG.GRID_ID AND DG.CURRENT_FLAG = 'Y' AND PE.ID = DE.ENGINE_ID AND DE.GRID_KEY = DG.GRID_KEY AND
      DE.CURRENT_FLAG = 'Y' AND PE.BATCH_ID = :B1 AND DD.YEAR_ID = EXTRACT(YEAR FROM START_DATETIME) AND
    DD.DAY_IN_YEAR = TO_NUMBER(TO_CHAR(START_DATETIME,'DDD'))
    ORDER BY EXTRACT(YEAR FROM START_DATETIME),EXTRACT(MONTH FROM START_DATETIME),
      EXTRACT(DAY FROM START_DATETIME),EXTRACT(HOUR FROM START_DATETIME),FLOOR(EXTRACT(MINUTE FROM START_DATETIME)/15)*15,
      DG.GRID_KEY,DE.ENGINE_KEY
    Here is the explain plan:
    Operation Object Object Type Order Rows Size (KB) Cost Time (sec) CPU Cost I/O Cost
    INSERT STATEMENT
    SORT ORDER BY
         HASH JOIN
           HASH JOIN
             HASH JOIN
              TABLE ACCESS FULL D_GRID TABLE 1 2 0.316 3 1 36887 3
              TABLE ACCESS FULL D_ENGINE TABLE 2 10 0.410 3 1 42607 3
             PARTITION LIST SINGLE   5 1434 344.496 9 1 2176890 9
              TABLE ACCESS FULL P_ENGINE TABLE 4 1434 344.496 9 1 2176890 9
                TABLE ACCESS FULL D_DATE TABLE 7 7445 283.550 19 1 3274515 18Now it is obviously not using the index for the d_date table since it is doing a full table access.
    Does this have something to do with the fact that I am using extract(), to_number(), to_char() functions in my WHERE clause that it is not allowing the use of the index?
    Any help would be greatly appreciated. Thanks.
    -Tim

    It's difficult to tell just from this. For one thing, you didn't post your query using the forum format tags, so it's hard to read and you didn't post your Oracle version.
    In the query, you don't always prefix columns with the table alias. That makes it impossible for us (and maintainers of this code) to know at a glance which table a column is in.
    It's possible that performing functions on a column will disable the index. Do your other tables have indexes? Do you have updated statistics on all the tables?
    The main reason the optimizer will not use an index is because it thinks it cheaper not to.

  • How to configure TREX so it does not include title in the index created

    Hi all
    Can someone tell me where I can find the TREX configuration that disables the indexing of the html title. If I for instance want to index www.sap.com, and I do not want the title = "SAP - Business Software Solutions Applications and Services" to be indexed, how do I do that?
    If I were to index www.sap.com I would not be interested in getting a hit for all pages when a user searches for "software" or "solutions" for example.
    Any help will be rewarded.
    Kind regards,
    Martin Søgaard

    Hi Praveen
    Thank you for your post. It was exactly was I was searching for, and it didn't come up on my searches in SAP documentation. As of now it seems to work as intended on our DEV system.
    Only thing about the documentation was that I had to change the std.html-config file in the SYS-folder of the TREX installation folder in order for it to work (the std.html-config file was located in two different folders).
    Thanks.
    Kind regards,
    Martin Søgaard

  • 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

  • How to get the index of subform in dynamic Forms??

    We are creating a Dynamic Form in which there is a field "PAN number" in a block. With the Script, we are replicating the blocks. Suppose there are 10 blocks (hence 10 PAN number fields will be there) and if the user wants to enter the PAN number in any of the blocks, how can we get the index of the block on which a value has been entered?

    Are you sure you are using JTree? (I couldn't find a method named getIndex at all!)
    As I couldn't quite understand what you are getting at, one thing that would be helpful is if you refer to "How to use Trees" in The Java Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • Disable the Dynamic Selection Icon from T.Code FBL1N

    Hi,
    I want to disable the Dynamic Selection Icon from T.Code FBL1N...
    Please Note that i found a link where some code is given for this problem.
    Remove the dynamic selection screen.......
    Please tell me where i paste that code....after initialization or where....
    Thanks...
    Edited by: Prince Kumar on May 16, 2009 8:59 AM

    Hi,
    1) COPY the program RFITEMAP and create a ZRFITEMAP
    2) and added this code in the INITILIZATION event. You can search ZRFITEMAP with INITIALIZATION and add below code there.
      INTIALIZATION.
      DATA: t_exclude TYPE STANDARD TABLE OF sypfkey.
      APPEND 'DYNS' TO t_exclude.
      "DYNS is the dynamic selection screen function code.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status        = sy-pfkey
        TABLES
          p_exclude       = t_exclude
    Regards
    Shital

  • Can the index be updated dynamically when library is pointing to a server

    I need you to find out if the index can be updated dynamically when the library is pointing to a server folder on a network XRaid?
    If so what are the steps to do this.
    If not is there a work around?
    PowerMac G5   Mac OS X (10.4.9)  

    It is possible to set up a "hot folder" that works with Aperture... the hot folder is an Automator script that you run. Ordinarily this is used for tethered shooting but you could use it like this... and then move the photos from the project bound to the "hot folder."
    So something like this:
    http://digitalmedia.oreilly.com/2006/12/05/tethered-shooting-in-aperture.html

  • How to get the index of a row in dynamically generated list

    Hi,
    I am displaying a list which contains 6 rows using <logic:iterator/>
    If i am changing a text value which is in 3 row, I want to pass that row index to the javascript function.
    I am using IndexId attribute of <logic:iterator> to get the index of a row,but
    It is working fine for Hyperlink buttons, but it is no working for text boxes.
    can any one plz help me..
    Thanks,
    madhu

    madhu,
    Please post your code... It's a bit like asking a mechanic to fix your car blind folded.

  • Disable the custmization of dynamic PDF

    Hi ,
    To develop the XDP , i am using the LC Designer . here i used the PDF security option to restrict editing the PDF .
    Like thers is a possiblity to open the PDf in the tool (designer , acrobat ...) and easily they can modify and use the pdf . But my question is
    1. is it possible to set the password while opening the XDP .
    2. after setting the password in the XDP if i saved as the XDP then its not getting saved but if i save as PDF then its working fine .
    Here my requirement
    XDp + XML ==> PDF to end user
    that PDF should not modfiy by any tool . how to disable the custmization?
    Advance Thanks

    Hi Dhiyane,
    You need to look at either LiveCycle Forms/LiveCycle Output. Forms gives you extra capabilities in case you want to extend your services one day. But for your current requirement Output will suffice.
    http://www.adobe.com/products/livecycle/forms/
    http://www.adobe.com/products/livecycle/output/
    Cheers
    Tys

  • How do I disable the "ad wigets" in a auto populating site?

    When I use a website that auto-populates a window the widgets are also trying to "suggest" a link for me. I cannot figure out how to disable the widget so I can use the site.
    the website is livestrong and I am trying to fill out my selections for tracking.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to get the index of Mult column list box

    Hello all,
    I need small help. Please help me.
    Is there is any property to change the "Multi column list box" row index position dynamically?
    I want to change the index position at runtime like below.
    Munna
    Solved!
    Go to Solution.

    It's called Top Left Visible Cell. There aren't that many properties there.
    Try to take over the world!

Maybe you are looking for

  • Oracle9i installation error on Redhat 9

    Dear all, I'm trying to install oracle9i(9.2.0.1) on redhat, after a few second the installer does nothing. I check the log file, it shows : java.lang.UnsatisfiedLinkError: /tmp/OraInstall2003-05-01_11-59-11AM/libactionUnix22.so: /tmp/OraInstall2003-

  • How can I transfer music from one Windows Phone to...

    I have a Nokia Lumia 1020. I dropped it and cracked the screen so I was sent a replacement device.  I was able to transfer everything from my old phone to the new one, except for the hundreds of songs I have downloaded over the last several months.  

  • IMovie on the iPhone

    I have been trying to use iMovie on my iPhone 4, however many of my videos that I have on my iPhone (via iPhoto) are not available to be imported into to iMovie. I am wondering if this is based on a specific codec or the fact that these were not shot

  • Need help for DB backup through OEM 11g grid

    I need to know how to schedule the hot backup of whole DB using OEM 11g grid. In our system there is a backup running for DB (10gr2). It is not scheduled through jobs. I am not able to find this scheduled db backup information from OEM. Can anyone gu

  • How can I more efficentley find the right SAP candidates?

    My name is Robert Hernandez and I am Head of Business Development for a boutique firm in Greenwood Village Colorado. My recruiting team is searching for the following opportunities:      1) Global SAP IT Integration Director      2) Global SAP IT Tra