Question about filtered index

I am looking over database for the SQL objects having SET QUOTED_IDENTIFIER OFF and SET ANSI_NULLS OFF
For filtered index both needs to be ON so what about the objects that dont have quoted_identifier and ansi_nulls code line?
do i need to add SET QUOTED_IDENTIFIER ON and SET ANSI_NULLS ON for those objects as well?

Following article solved my question
http://blogs.msdn.com/b/sqlprogrammability/archive/2009/06/29/interesting-issue-with-filtered-indexes.aspx
I tried creating proc without quoted_identifier and ansi_nulls code line and proc still executes

Similar Messages

  • Question about composite index and index skip scan

    Hi,
    I have a confusion.
    I have read Burleson's post on composite index column ordering (http://www.dba-oracle.com/t_composite_index_multi_column_ordering.htm) where he writes that
    "......for composite indexes the most restrictive column value(the column with the highest unique values) should be put first to trim down the result set..."
    But 10g performance tuning book tells this about INDEX SKIP SCAN ::
    "... Index Skip scanning lets a composite index be split logically into smaller subindexes. In skip
    scanning, the initial column of the composite index is not specified in the query. In other words, it is skipped.
    The number of logical subindexes is determined by the number of distinct values in the initial column.
    Skip scanning is advantageous if there are few distinct values in the leading column of the composite index and many distinct values in the non-leading key of the index......."
    So if we design Composite indexes acc. to what Burleson said then how can we take advantage of index skip scanning. These two staements oppose each other,don't they ?
    Can anybody explain this ?

    Dear,
    For the moment forget the distinct values and the compressibility. I've tried to reproduce your case here below (using jonathan lewis table script)
    create table t1
    as
    with generator as (
        select    --+ materialize
            rownum id
        from dual
        connect by
            rownum <= 10000
    select
        rownum              c1,
        mod(rownum,1000)    c2,
        mod(rownum,5000)    c3,
        mod(rownum,10000)   c4,
        lpad(rownum,10,'0') c5,
        rpad('x',5)         c6
    from
        generator    v1,
        generator    v2
    where
        rownum <= 1000
    alter table t1 add constraint t1_pk primary key (c3,c4,c5,C6);
    create index idx_1 on t1 (c1,c2);
    begin
         dbms_stats.gather_table_stats(
              ownname           => user,
              tabname           =>'T1',
              estimate_percent => 100,
              method_opt       => 'for all columns size 1'
    end;
    /and here are what I got with your two selects
    mho.sql>> SELECT c1,c2
      2  FROM t1
      3  WHERE c2 = 3;
            C1         C2
             3          3
    Elapsed: 00:00:00.00
    mho.sql>> start dispcursor
    PLAN_TABLE_OUTPUT
    SQL_ID  4dbgq3m2utd9f, child number 0
    SELECT c1,c2 FROM t1 WHERE c2 = 3
    Plan hash value: 3723378319
    | Id  | Operation            | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |*  1 |  INDEX FAST FULL SCAN| IDX_1 |      1 |      1 |      1 |00:00:00.01 |       7 |
    Predicate Information (identified by operation id):
       1 - filter("C2"=3)
    17 rows selected.
    Elapsed: 00:00:00.34
    mho.sql>> SELECT c3,c4,c5,c6
      2  FROM t1
      3  WHERE c4 = 3
      4  AND c5 = '0000000003'
      5  AND c6 = 'x    ';
            C3         C4 C5         C6
             3          3 0000000003 x
    Elapsed: 00:00:00.00
    mho.sql>> @dispcursor
    PLAN_TABLE_OUTPUT
    SQL_ID  fv62c9uqtktw9, child number 0
    SELECT c3,c4,c5,c6 FROM t1 WHERE c4 = 3 AND c5 = '0000000003' AND c6 = 'x    '
    Plan hash value: 2969533764
    | Id  | Operation            | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |*  1 |  INDEX FAST FULL SCAN| T1_PK |      1 |      1 |      1 |00:00:00.01 |       9 |
    Predicate Information (identified by operation id):
       1 - filter(("C4"=3 AND "C5"='0000000003' AND "C6"='x    '))
    17 rows selected.I didn't succeed to reproduce your index skip scan situation.
    Best Regards
    Mohamed Houri

  • Question about filtering mail

    At present I tidy most of my Mail inbox automatically (mostly) by writing rules to send some posts to their respective mailboxes. These are generally routine messages that are not immediately important, but sometimes they might be important. When I first started doing this, I realised that Mail quietly filters the messages in the background and unless I opened the mailboxes to look I wouldn't know if I had received a new message. Therefore I created a smart mailbox that would show all messages for a week. I take a look every now and then.
    Because this doesn't work on iphone, and also because there is no longer the option to synch rules and mailboxes between Mail apps on different computers, I really have to consider doing my filtering on icloud.
    However, on iCloud there are no smart mailboxes. If I filter a message into a mailbox on iCloud, it'll disappear into that mailbox and I won't see it unless I search through the mailboxes. So, my question is, does anybody know of a way that one can filter messages on iCloud so that one can see easily all the messages that have arrived, in the same way that I can do with Mail? I do not want all of these messages, from various forums, shopping sites, etc, cluttering up my inbox, but I do want to be able to keep an eye on what has arrived.

    Thanks for taking the time to respond guys.  Both of your answers have been helpful.
    To clarify, I did have junk filtering on (which created a junk mailbox) and I did have the box checked to show all junk main in my regular inbox (highlighted as suspected junk).  My problem was they all were't going to my inbox at all, but straight to my junk box.  So there's a flaw with the junk mail option.  I will check all of my other devices to make sure I have the same option set for all machines though!
    Currently I have junk mail filtering off (which takes away the junk mail folder), and my question was, will I now get all mail, including junk, in my inbox.  The obvious answer seems like a yes, but I just wanted to make sure that is indeed the case as nothing in mail help says you will get all of your mail or not (wasn't sure if there's some sort of junk mail filter at the iCloud server level that would simply ignore what it thinks is junk and not even send it to me).
    Based on what you guys have said, my suspision that I will get all mail now, regardless of if it's junk or not, in my inbox, is pretty much confirmed.

  • Question about UNIQUE INDEX

    Given a table with 2 columns. They are not setup as UNIQUE.
    TABLE_A (
    column1 NUMBER NOT NULL,
    column2 NUMBER
    Then, a UNIQUE INDEX is created for both of the columns
    CREATE UNIQUE INDEX XX.TABLEA_U ON TABLE_A
    (column1, column2)
    My question is does the above UNIQUE INDEX somehow act as a UNIQUE Constraint to "column1"?
    Thanks in Advance

    It acts as a unique constraint on both the columns.If duplicate row is inserted you will get error like
    05:40:30 sql>create unique index u_a on a (column1,column2);
    05:41:07 sql>insert into a values (1,2);
    1 row created.
    Elapsed: 00:00:00.00
    05:41:12 sql>insert into a values (1,2);
    insert into a values (1,2)
    ERROR at line 1:
    ORA-00001: unique constraint (SYSADM.U_A) violated
    05:41:15 sql>insert into a values (1,3);
    1 row created.
    Elapsed: 00:00:00.00Anand
    Edited by: Anand... on Nov 5, 2009 5:41 AM

  • Question about Global index and Table Partitions

    I have created a global index for a partitioned table now in the future the partitions will be dropped in the table. Do I need to do anything to the global index? Does it need to be rebuilt or would it be ok if partitions get dropped in the table?

    >
    I have created a global index for a partitioned table now in the future the partitions will be dropped in the table. Do I need to do anything to the global index? Does it need to be rebuilt or would it be ok if partitions get dropped in the table?
    >
    You can use the UPDATE INDEXES clause. That allows users to keep using the table and Oracle will keep the global indexes updated.
    Otherwise, as already stated all global indexes will be marked UNUSABLE.
    See 'Dropping Partitions' in the VLDB and Partitioning Guide
    http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1007479
    >
    If local indexes are defined for the table, then this statement also drops the matching partition or subpartitions from the local index. All global indexes, or all partitions of partitioned global indexes, are marked UNUSABLE unless either of the following is true:
    You specify UPDATE INDEXES (Cannot be specified for index-organized tables. Use UPDATE GLOBAL INDEXES instead.)
    The partition being dropped or its subpartitions are empty

  • Question about the index and homepages

    Hello all,
    I am new to dreamweaver and I have only had my website for a couple of months now.
    On my site, I have a "Home Page" button that visitors can click to return to the home URL.
    My home URL is: www.djidblends.com
    When users click on the "Home Page" button, they are taken to the URL: www.djidblends.com/index.html
    In the past, whenever I wanted to update my regular home page, I just simply updated the index.html file in dreamweaver... and it worked for both of the URLs listed above.
    However, I recently attempted to update the home page once again, and it did NOT work for both URLs.
    For example, when I visit www.djidblends.com, my page is NOT updated.
    When I click on the "Home Page" button, my page IS updated.
    I have looked around and some people have had the same problem as me, but I haven't found a legit fix for this problem.
    If anyone knows how I can fix this, I would greatly appreciate your help.
    Thanks,
    Bye.

    On my site, I have a "Home Page" button that visitors can click to return to the home URL.
    My home URL is: www.djidblends.com
    When you go to http://www.djidblends.com, the server tries to open pages that are named index.htm, index.html, index.php amongst others. In this case index.html will be opened despite it not showing as such in the address bar.
    When users click on the "Home Page" button, they are taken to the URL: www.djidblends.com/index.html
    That is correct because the Home Page button links to index.html. The reason why it shows in the address bar as http://www.djidblends.com/index.html is because the link is within the www.djidblends.com site. If you click the Contact Information button, the address bar will correspond to the contact.html link.
    In the past, whenever I wanted to update my regular home page, I just simply updated the index.html file in dreamweaver... and it worked for both of the URLs listed above.
    That is correct, you are uploading the page that is linked to the menu.
    However, I recently attempted to update the home page once again, and it did NOT work for both URLs.
    For example, when I visit www.djidblends.com, my page is NOT updated.
    When I click on the "Home Page" button, my page IS updated.
    That is because the browser has a cached copy of your site and it will load the cached copy to save time. When you click the Home Button it may, but not always, refresh the page bypassing the cached version. IE may not respond immediately because it tends to hang onto the cached version of the page much longer.
    I have looked around and some people have had the same problem as me, but I haven't found a legit fix for this problem.
    If anyone knows how I can fix this, I would greatly appreciate your help.
    The problem occurs when someone has paid a visit to your site before the updated page has been uploaded. There are ways to overcome this. For more info have a look here http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache
    Gramps

  • Question about Filters in Java.

    Hello ,
    I want to make a filter over a JTable , so that data that appears in the JTable is filetered with the characters that are typed in the Field , each time a new character is entered the table is filtered. What can I use to make that happen?
    Thanks.

    hii,
    if you're defining SomeTableModel, already, then
    global def.
    private final JTextField someTextField = new JTextField();
    //private JButton refreshButton = new JButton("Refresh Data");
    private JTable someTable = new JTable();
    private  SomeTableModel tableModel;somewhere in class definition (for jtable)
                someTextField.setText("");
                final TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tableModel);
                someTable.setRowSorter(sorter);
                someTextField.getDocument().addDocumentListener(new DocumentListener() {
                    private void searchFieldChangedUpdate(DocumentEvent evt) {
                        String text = someTextField.getText();
                        if (text.length() == 0) {
                            sorter.setRowFilter(null);
                            //someTable.clearSelection();
                        } else {
                            try {
                                sorter.setRowFilter(RowFilter.regexFilter("(?i)" + text)); // hack for ignore CaseSensitive
                                //someTable.clearSelection();
                            } catch (PatternSyntaxException pse) {
                                JOptionPane.showMessageDialog(null, "Bad regex pattern", "Bad regex pattern", JOptionPane.ERROR_MESSAGE);
                    public void insertUpdate(DocumentEvent evt) {
                        searchFieldChangedUpdate(evt);
                    public void removeUpdate(DocumentEvent evt) {
                        searchFieldChangedUpdate(evt);
                    public void changedUpdate(DocumentEvent evt) {
                        searchFieldChangedUpdate(evt);
                }); any changes from someTextField set filter/change result from/to SomeTableModel
    ... kopik

  • Question about "Spatial Index Advisor"

    I'm now using "Oracle8i Enterprise Edition 8.1.6" and "Oracle8i Enterprise Manager 2.1" for Windows NT/2000. I tried to use the extended administration tool of the Manager "Spatial Index Advisor" to access my spatial data. I can see the layers in the "Add layer" Dialog. But when I want to add a layer, it popup a failed message box said "Server object could not be created:Server object could not be initialized:Not be supported charaterset:oracle-characterset-852". Why? And how can I solve the problem?

    Hi Dinghy,
    The Oracle 8.1.6 sdo advisor is only implemented for the US7ASCII character set.
    The Oracle 8.1.7 release of the advisor does have NLS support.
    Hope this helps. Thanks.
    Dan
    null

  • Question about filtering a file type on check in?

    I am reading on how to filter file types on check in and I was wondering.  Is it possible to check a file type and pop up a error page in iDoc, or would I have to go the custom component route (and would that need to be java or iDoc)?

    Thanks for the input, but seeing how the setting where I'm going to employ this component for UCM is secure I can't use code I can't read for myself (No offence to the author of that blog or to you).  But yeah I kinda figured making a filter based component would be the best route, but most examples I've found used the intradoc library.  Problem is I can't seem to find the intradoc library to try to write a basic example to see what I'm doing, everything I get is for RIDC (even found a small example on writing a filter for RIDC).  Is this what UCM is using now in 11g?
    Also one thing I felt missing when looking at example code, I get the basic idea of the code itself.  But to employ the componant to work on the check in request would I just include that component in that idoc function for checkin?

  • Question about filtering by multiple keywords

    I must be missing something, because setting up a filter using multiple keywords doesn't seem to be working for me. I'm clicking "Text" in the Library Filter, then selecting "Keywords" and "Contains All". When I type in multiple keywords, separated by a space, the list still contains photos that do not contain ALL of the keywords I entered. The resulting list seems to be displaying photos as if I selected "Contains Any" instead of "Contains All". Am I missing something obvious here?
    - Dave

    Could you provide a specific keyword example? Do you perhaps have two keywords such as 'Horse Carriage' and 'Horse'?
    Using the text filter "Keywords Contain All Horse" would also find images with the keyword 'Horse Carriage'.

  • Question about the partition index

    Hi, all, I have some questions about partitioned index.
    And I get from oracle documents that oracle's partition index can be clarified as local partition index and global partition index.
    And local partition index can be clarified as prefix local partition index and non-prefix local partition index. And I also the word "global prefix partition index".
    But, I can not get what the exact meaning after I consulted many documents and notes from website.
    Can anyone give me one example to cover these topic?
    You help is very thankful!
    Thanks and best regards!

    Hi,
    Local index search by partition.
    Local Indexes: A local index is an index on a partitioned table which is partitioned in the exact same manner as the underlying partitioned table. Each partition of a local index corresponds to one and only one partition of the underlying table.
    Global Partitioned Indexes: A global partitioned index is an index on a partitioned or non-partitioned table which is partitioned using a different partitioning-key from the table. Global-partitioned indexes can only be partitioned using range partitioning. For example, a table could be range-partitioned by month and have twelve partitions, while an index on that table could be range-partitioned using a different partitioning key and have a different number of partitions.
    Global Non-Partitioned Indexes: A global non-partitioned index is essentially identical to an index on a non-partitioned table. The index structure is not partitioned.
    Maybe this links help you:
    http://www.oracle.com/technology/products/oracle9i/datasheets/partitioning.html
    http://asktom.oracle.com/pls/ask/f?p=4950:8:12026637104196321871::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:678824574412
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1612281449571
    Cheers

  • Questions about Indexing and Using an Indexing POA

    Although I have only about 50 users, at least 15 of them have in excess of 100,000 messages in their accounts and the POA (version 7.0.2) is regularly slowing to a crawl. (I just know that plans for revolution are fomenting!) I have embarked on a campaign to reduce these accounts by archiving everything off to get mail accounts down to 3000 or fewer pieces. I have achieved user buy-in, but have worked on only a few users so far.
    In another closely related thread, it was suggested to me that the PO speed issues relate to broken indexes. And I suspect that given so many messages, the indexes were never getting fully rebuilt with the default QF POA settings. I am trying to fix that situation in addition to reducing mail account sizes. So, I have set up a second POA on another server and dedicated it to the indexing task. The /qfinterval is set for 1 hour, other /qf switches at default. The POA-QF does no mail delivery, but it does do nightly user upkeep.
    The POA-QF seems to be steadily working away and making progress at reducing the number of unindexed messages. However, I have questions about what I am seeing and what more I can do:
    1. Is the progress I am seeing real progress? For example I have a user with over 100,000 messages to be indexed and every time I check the logs, the count drops by about 500 messages per hourly QF cycle. I assume that if I just let it keep running, it will eventually get caught up and fixed. Not only with this user, but with all the others as well. Will my patience (and theirs) be rewarded? Are there any gotchas I need to prepare for?
    2. One user has recently had virtually all of her messages successfully moved to archive. I can see them in the Archive, and do not see them in the online account. However, now over a week later, QF still shows >130,000 items still left to index for that user. The POA-QF is making slow, steady progress reducing that number, but why is this user's QF count still so high? Does it just need more time, or is there something amiss for this user?
    3. I may want to rebuild indexes for single users from scratch. I have seen the TID 3105742 which tells how to do this: Essentially you turn off mail delivery functions, and make some other switch changes to dedicate the POA to indexing for just a single user, and then you let the POA rebuild the indexes. The implication of that scenario is that the POA is now enjoying exclusive access to the user's databases.
    If I want to use my secondary POA-QF to rebuild a user's index from scratch, does the main POA have to be offline and the user out of GWise? That is, Does the QF process require exclusive access in order to rebuild indexes from scratch?
    Thanks for any thoughts or suggestions.
    Peter Smick

    pgsmick wrote:
    > 1. Is the progress I am seeing real progress? For example I have a user with
    > over 100,000 messages to be indexed and every time I check the logs, the count
    > drops by about 500 messages per hourly QF cycle. I assume that if I just let
    > it keep running, it will eventually get caught up and fixed. Not only with
    > this user, but with all the others as well. Will my patience (and theirs) be
    > rewarded? Are there any gotchas I need to prepare for?
    Set this switch for this indexing POA - /qflevel=999 - this will index
    everything in one run. It will take a long time, but with no qflevel switch you
    are indeed only indexing 500 messages at a time, and if the user has that much
    mail, it might never really catch up.
    >
    > 2. One user has recently had virtually all of her messages successfully moved
    > to archive. I can see them in the Archive, and do not see them in the online
    > account. However, now over a week later, QF still shows >130,000 items still
    > left to index for that user. The POA-QF is making slow, steady progress
    > reducing that number, but why is this user's QF count still so high? Does it
    > just need more time, or is there something amiss for this user?
    >
    This is odd, because really the index count should drop to nothing, but with the
    above switch this might get resolved as well.
    > 3. I may want to rebuild indexes for single users from scratch. I have seen
    > the TID 3105742 which tells how to do this: Essentially you turn off mail
    > delivery functions, and make some other switch changes to dedicate the POA to
    > indexing for just a single user, and then you let the POA rebuild the indexes.
    > The implication of that scenario is that the POA is now enjoying exclusive
    > access to the user's databases.
    Not really - the POA is not enjoying exclusive access to the user's database,
    the indexer is just avoiding an attempt to index anything else.
    > If I want to use my secondary POA-QF to rebuild a user's index from scratch,
    > does the main POA have to be offline and the user out of GWise? That is, Does
    > the QF process require exclusive access in order to rebuild indexes from
    > scratch?
    No - QF never requires exclusive access. That said, you may find that an
    extremely vigorous QF can cause slowdowns for the user.
    Danita
    Novell Knowledge Partner
    Moving GroupWise to Linux?
    http://www.caledonia.net/gwmove.html

  • Question about metadata filtering and document sets

    Hello,
    I have a question about the metadata filtering when using document sets.
    When i use the metadata filter for example for "Installatie: P00001" it shows.
    But i wan't to show only the document set and not all the documents. Is this possible OOTB?

    Hi striker,
    You can add the "Content Type" in Hierarchy Fields for your list, then click the "Document Set" to filter the document set type item, then you can input the "P00001" in Installatle key filter, click apply, then it should show only document set
    items with field value P00001.
    http://office.microsoft.com/en-001/sharepoint-help/set-up-metadata-navigation-for-a-list-or-library-HA102832523.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Three questions about the creation of secondary indexes in ODS design mode

    1. When we right click the Indexes folder in ODS design to select Create to create the Index folder 010, a small window pops up with a check box called "Unique", do we have to check this checkbox to create folder 010?
    2. If we would like to include 3 InfoObjects into the secondary indexes, then how many folders we need to create? Need to create 3 folders like 010, 020, and 030 and place the 3 InfoObj. into the 3 folder respectively or create only one folder 010 and place all the 3 InfoObj. into this one folder 010?
    3. In SAP documentation titled "BW Performance Tuning" about the Indices, it says "If the (uncompressed) F fact table is small, it is usually faster to drop the secondary (bitmap) indices before the load and build them up after the load"
    Someone here says secondary index is only for ODS other than for cubes, but from the above statement, F fact table is related to cubes, then how to explain it? Also the above statement is talking above the variant in process chain that when you bring in a variant to load data to cube, then the drop index and generate index variants will be automatically created, does it refer to this? And what's bitmap index?
    Thanks in advance and we will continue to give you reward points!

    Hi Kevin,
    Cube has Secondary index's. The index's that we find in the Manage of the Cube are the Secondary Index's. Please check the following link for more information.
    http://help.sap.com/saphelp_erp2004/helpdata/en/80/1a6473e07211d2acb80000e829fbfe/frameset.htm
    Also, to know about Unique indexes, use the following link
    http://help.sap.com/saphelp_erp2004/helpdata/en/9b/c743f5b40711d194f900a0c929b3c3/frameset.htm
    "The indexes displayed are the secondary indexes of the F and E fact tables for the InfoCube. The primary indexes and those defined by the user are not displayed. " (SAP help).
    This should answer your questions.
    Regards,
    Praveen.

  • Why do I get the question about index.html when I try to publish a new site?

    When I try to publish a new or corrected ftp website (anyone)  I get a message saying that the file "index.html" already is present on the web and am asked if I want to replace it. What does that mean? I do not want to replace that site, only to publish new ones or repair old ones

    Read this to learn about the index.html file :
         The concept of iWeb Sites
    Replace the index.html file when asked.

Maybe you are looking for

  • No Wi-Fi or Bluetooth on iPod Touch 3rd

    hi guys ,  i have a problem with my ipod touch 3rd generation and i was unable to turn Wi-Fi or Bluetooth on or off because the setting is grayed out or dim. if you can help me out i will be grateful. this ipod is for my lil brother and without wifi

  • How To Close Documents Without Closing Entire App

    Since the latest Pages update, when I close all open documents, it automatically closes the entire program and then I have to wait 15 minutes to start it back up. Is there any setting I can change to fix this?

  • IPhone randomly stops playing sound out of iPod docks?

    I recently plugged my iPhone 4 iOS6.0.1 (the new update recently put out by apple) and it has stopped playing sound out of any iPod dock I plug it into. It plays sound normally out of the speakers and charges while on the dock. Has anyone had any pro

  • 866VAE - cant acces web pages from LAN

    Hi everyone, im fighting with Cisco 866VAE-K9 for few days. I have got ADSL2+ line in Cisco, i can ping anything from router (like 8.8.8.8 or www.google.com), test of connection in CCP runs successfully, but i cant acces web pages from LAN computers.

  • Only the suthor of ABAP programs can see and edit his/her code

    Hi: We've created developer accounts with the following authorization profiles: A_ABAP_ALL, S_A.DEVLOPER, AND S_A.USER. The account holder can access the system, create ABAP programs, and successfully run them. However, there is a problem: a user can