CBO bug or not, or else develop do not consider the function index

SQL> create table test_fun_or as select object_id+sysdate id,object_name from        

  2  dba_objects;

Table created.

SQL> create index i_test_fun_or on test_fun_or(id,'a') nologging;   

//I don't know why oracle consider it as function index

Index created.

SQL> create index i_test_fun_or_1 on test_fun_or(object_name) nologging;

Index created.

SQL> set autot trace exp

SQL> exec dbms_stats.gather_table_stats(user,'TEST_FUN_OR',estimate_percent=>null,method_opt=>'for all columns size 1');

 

PL/SQL procedure successfully completed.

 

SQL> select * from test_fun_or where id=sysdate or object_name='aa';

 

Execution Plan

----------------------------------------------------------

Plan hash value: 3247456674

 

---------------------------------------------------------------------------------

| Id  | Operation         | Name        | Rows  | Bytes | Cost (%CPU)| Time     |

---------------------------------------------------------------------------------

|   0 | SELECT STATEMENT  |             |     3 |    87 |   219   (3)| 00:00:03 |

|*  1 |  TABLE ACCESS FULL| TEST_FUN_OR |     3 |    87 |   219   (3)| 00:00:03 |

---------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   1 - filter("OBJECT_NAME"='aa' OR "ID"=SYSDATE@!)

 

SQL> select /*+ use_concat */ * from test_fun_or where id=sysdate or object_name='aa'; 

//or expand don't use index i_test_fun_or

 

Execution Plan

----------------------------------------------------------

Plan hash value: 3161566054

 

------------------------------------------------------------------------------------------------

| Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |

------------------------------------------------------------------------------------------------

|   0 | SELECT STATEMENT             |                 |     3 |    87 |   224   (3)| 00:00:03 |

|   1 |  CONCATENATION               |                 |       |       |            |          |

|*  2 |   TABLE ACCESS FULL          | TEST_FUN_OR     |     1 |    29 |   219   (3)| 00:00:03 |

|*  3 |   TABLE ACCESS BY INDEX ROWID| TEST_FUN_OR     |     2 |    58 |     5   (0)| 00:00:01 |

|*  4 |    INDEX RANGE SCAN          | I_TEST_FUN_OR_1 |     2 |       |     3   (0)| 00:00:01 |

------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   2 - filter("ID"=SYSDATE@!)

   3 - filter(LNNVL("ID"=SYSDATE@!))

   4 - access("OBJECT_NAME"='aa')

 

SQL> drop index i_test_fun_or;

 

Index dropped.

 

SQL> create index i_test_fun_or on test_fun_or(id,object_name) nologging;

 

Index created.

 

SQL> alter table test_fun_or modify object_name not null;

 

Table altered.

 

SQL> select /*+ use_concat */ * from test_fun_or where id=sysdate or object_name='aa';

 

Execution Plan

----------------------------------------------------------

Plan hash value: 1705821130

 

------------------------------------------------------------------------------------------------

| Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |

------------------------------------------------------------------------------------------------

|   0 | SELECT STATEMENT             |                 |     3 |    87 |     8   (0)| 00:00:01 |

|   1 |  CONCATENATION               |                 |       |       |            |          |

|*  2 |   INDEX RANGE SCAN           | I_TEST_FUN_OR   |     1 |    29 |     3   (0)| 00:00:01 |

|*  3 |   TABLE ACCESS BY INDEX ROWID| TEST_FUN_OR     |     2 |    58 |     5   (0)| 00:00:01 |

|*  4 |    INDEX RANGE SCAN          | I_TEST_FUN_OR_1 |     2 |       |     3   (0)| 00:00:01 |

------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

    2 - access("ID"=SYSDATE@!)

   3 - filter(LNNVL("ID"=SYSDATE@!))

   4 - access("OBJECT_NAME"='aa')

Jinyu wrote:
Thanks Jonathan, I don't have 11.2.0.2 on-site, I'll test it later, I just test it on 11.2.0.1

If you see the notes of fixed a bug fixes for 11.2.0.2 Group (Doc ID:1179583.1) it's bug 8352378 "allow index GOLD-Expansion functions.

Concerning
Jonathan Lewis

Tags: Database

Similar Questions

  • Cookie bug, could not find the problem. Help, please

    I work with this cookie, it works well, but there's a bug in there and I can't understand what the problem is. Here is my code:

    PAGE 1:
    < IsDefined ("cookie.hitbox") cfif >
    Off
    < cfelse >
    On
    < / cfif >
    < IsDefined ("cookie.hitbox") cfif >
    < a href = "apply - setting.cfm? hire = hitbox"> < strong > < u > activate < /u > < / strong > < /a > < br >
    < cfelse >
    < a href = "apply - setting.cfm? Disable = hitbox"> < strong > < u > < /u > Disable < / strong > < /a > < br >
    < / cfif >

    PAGE 2:
    < IsDefined ("deactivate") cfif >
    < name cfcookie = "" #deactivate # "value ="Off"expires ="never"> <! - < set - cookie stop music - > >"
    < cfelseif IsDefined ("committed") >
    < name cfcookie = "' #engager # ' value = 'temp' expires ="NOW"> <! - < cookie deleted music is on - > >"
    < / cfif >
    < cfinclude template = "soundedit.cfm" >

    When you click on the link on the first page, he strikes the 2nd page is suppoed to go back to the first page and to show the link, either disabled or committed. When I turn it off with this link, it works fine, but when I engage the rod with this link, he hangs up right and don't go back to the page with the kinks on them. No error and it committed the code, but will not use the < cfinclude > I even had a problem with this code as well, I had to use an inclusion instead of a cflocation to get the disable to work properly and return page 1. I also tried to put the cfinclude in both parts of the if statement and it does not hire him.

    I did something wrong in my code? Why it hangs on me? I use 6 CF.

    Thank you.

    Phoenix

    When you do a cflocation the cookie will not define because they are set using the response header. When you do a cfinclude the cookie are removed from the client not the scope of the cookie.

    http://livedocs.Adobe.com/ColdFusion/6.1/htmldocs/tags-A18.htm

    [quote] now: removes the cookie from the client cookie.txt file (but does not delete the variable corresponding to the scope of the Cookie to the current page). [/ quote]

    you will need to either:


    or

  • The script of the recordset does not define the function findServerBehaviors

    Errors frequent pop up. Firstly the premiera listed below. After I closed the alert, the second error appears.

    The script of the recordset does not set the findServerBehaviors function.

    The repeating region script does not set the findServerBehaviors function.

    Dreamweaver CS 6 Version 12.2 develop 6006

    Clear Cache corrupted in DW

    http://forums.Adobe.com/thread/494811

    Plan B, restore preferences

    http://helpx.Adobe.com/Dreamweaver/KB/restore-preferences-Dreamweaver-CS4-CS5.html

    Nancy O.

  • The new 5.0 does not support the functionality of the tab fox I love and I need a compatible similar add on - who do you suggest?

    I just downloaded firefox 5.0, which does not support the feature of best sites I've used so happily. Is there a similar add on that works with 5.0? I feel like I'm blind!

    Large. You may mark this issue as resolved.

  • iMac does not recognize the function analysis of the LaserJet Pro

    My iMac has OS X v. 10.7.3.  It does not recognize the analysis function of the HP LaserJet professional M1217 MFP nfw which is connected wireless.  I can print with the HP success but the dialog box not incllude not a scan option.  I can't scan from preview or iPhoto or (as suggested by some rsources).  I tried to connect the printer LaserJet by USB but that doesn't solve a problem either.  I uninstalled and reinstalled the software, including HP PrinterDrivers.pkg.  I get the automatic updates from Apple which have not helped.

    Hello

    I apologize for any inconvinence,

    The Director of HP taken do supported by Lion for some specific models, including the M1217.

    However, as mentioned above, only the latest version of the software supported by Lion. any prior version of the software is not supported by the operating system.

    If you have not installed the complete softwatre features attached to my previous post, please be sure to install it. It is compatible with Lion you will find listed on the download page.

    Compatibility: Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, Mac OS X, Mac OS X 10.7 
    

    I appriciate if you can guide me where you see the information that the HP Director is not supported by the OS, I can't take any possible measure to get it corrected.

    Thank you and best regards,

    Shlomi

  • Windows 7 Search index does not maintain the sites indexed

    My search indexer is not indexed parameters locations I do and after a day or two, he returns to the original setting whicgh was the Start Menu.  I changed the indexed locations to include most of my C drive, and it indexes all (the search function works well for awhile) but a day or two later, when I do a search, nothing comes.  I double-check the settings and find that it has been restored to the original indexed locations.

    My system is updated regularly and I'm using Avast antivirus.

    Thank you

    Hi TomHathcoat,

    Thanks for posting in the Microsoft Community.

    I understand that you are facing the question with an indexer search does not maintain the indexed locations.

    Method 1:

    I suggest you run the troubleshooter and check if this solves the problem. See the following article to do the same thing.

    Open the troubleshooter of search and indexing.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-search-and-indexing-Troubleshooter

    Method 2:

    Try to rebuild the search indexing. See the steps in the following article.

    http://Windows.Microsoft.com/en-us/Windows7/change-advanced-indexing-options

    See also:

    Improve Windows searches using the index: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questions

  • Animate CC does not provide the functionality to export the Animation as SVG instead of canvas

    Hi, I am planning to buy Adobe animate CC. Prior to that, can you tell me if I can export the Animation in SVG? I want to create a responsive animation that run on phones, tabs, and the PC. If animate CC does not support, then can you suggest other products.

    Animate can use custom document types, and someone was part of those for SVG animations. Take a look at this page and follow the directions on how to get the functionality added to your creative cloud account:

    Host snap.svg

  • Do not consider the right colors

    Hello.

    I have problem with color Photoshop CS % shows my picture with.

    I have all other programs, ACDSee, Snag-It, Picasa and... - my color photos is OK.

    But I have to open the same image in Photoshop CS5, the color changes of colours, I don't like.  Se the image.

    My set is a Nvidia GeForce GTX 660 with opdated drivers - driverversion is 337.88.

    Hope someone can help me.

    photoshop color changes.jpg

    Looks like a problem of color for me.

    Photoshop strives to show you accurate color rendition, by your images color profiles and color associated with your monitor profile.  Many / most of the other programs are not proper color management. It is the key.  You can interpret the color you like as the 'proper' color, when in fact it's one that's not going to.

    If your monitor profile describes accurately the characteristics of color of your screen, then it's the other programs that display the images in a supersaturated way, because they do not take into account the monitor's color profile.  Trust what you see from Photoshop.

    Chances are, given the images you posted, it could happen: your monitor is a model of the range of colors and Photoshop sees a profile associated (by OS) who tells him that, and so Photoshop color - managed accordingly: colors in the images marked with the sRGB IEC61966 - 2.1 profile are desaturated some , for an accurate display.  Other applications that ignore the color profile of the monitor will not transform the colors and will be over-saturating them.

    Another problem as possible: the monitor profile may not describe accurately the monitor.

    Color management is a bit too complex to try to teach the post by post on a forum.  I suggest that you are looking for information about it online.  Beware of people ' all mean ', because it is not a thing, you can just set and forget and do things.  You must wrap your mind on how it all works in order to make the right choices on your system.

    What do you see in the dialog box color management of your operating system?

    -Christmas

  • ERROR: ' we found your application uses iOS identifier for advertising but does not include the functional ad.

    I just create my new Single Edition App, but Apple rejected my application because:

    "We found your application uses iOS identifier for advertising but does not include.

    feature ad. This is not consistent with the terms of iOS Developer

    "License program, as required by the App Store Review Guidelines."

    https://iTunesConnect.Apple.com/WebObjects/iTunesConnect.woa/Wo/10.0.0.7.3.0.9.3.3.1.0.13. 3.1.1.11.3.1.0.6.1.1

    What does that mean? What should I do? I already created another unique edition correctly...

    Rebuild your simple editing application and then try again to Apple. We have released a fix for this Friday.

    Neil

  • Synchronization with Serial read/write problems. can not get the functionality of the terminal emulator

    Hello

    I am writing a VI to control PWM with a microcontroller via a serial port. I wrote a simple code for the microcontroller that allows me to set the ratio of duty cycle on a scale of 0-65535. It works very well with Termite of Compuphase (RS-232 plug); The microcontroller invited me to an entry, expected that I would one, updates and expected another entry when I decided to send him. Now, I'm trying to get the same functionality on a LabVIEW vi but hit a snag.

    When I tried to send my orders with a series read base and an example of writing, everything worked fine. I could see the prompt entry, write an entry and if I was quick enough, check out the update message. Even when I was not fast enough, I was able to check the update by monitoring the PWM pin with a Logic Analyzer. The problem with the basic example, however, is that I need to update the report to aura cyclical ratio, so I went for an example of reading continues writing. The problem I've met; is that I have to switch between reading and writing to make it work. When I do that, either I don't hold write it down long enough and nothing happens, or I get several updates when I switch to reading. Some of these updates don't even match and produce updates to defective upgrades for example; 16000 16000, 16000, 16000, 6000, 600, 60, 16000, 1600, 60, 0, 0, 0, 16000, 60, 0, 0 etc.

    I tried which allows characters of endpoint in the hope that the writing would end at the end and go to reading where he would receive a termination character and wait for me allow writing once again, but nothing helped. I still have to alternate between the two and either get no response on reading several updates of variable accuracy. I tried to remove her allows read/write and their structures of matter in the hope that the loop flow, associated with the characters of endpoint would the case, but then the updates don't register at all. The funny thing is I did a VI like this before with an Arduino and that there not even no need to switch between writing and reading (I'm now using a Board of Freescale FRDM).

    I was also the frequency of timeout errors; Error-1073807339 at VISA Read, reason Possible: VISA Hex 0xBFFF0015. I removed the option to stop the while loop if there is an error so I can run but always pops up an error on the judgment occasionally. Could the problem of synchronization always cause me problems?

    Would appreciate all advice really, I am providing my slightly modified example screws and can provide the code for microcontroller on request, even if it's very simple.

    Thanks in advance, it is
    Yusif Nurizade

    In other words, frankly, a good bad example you according to your code. Also, you have the order of writing and read upside down in your amendment if the instrument requires a command to return something. It should really be using a structure of the event. The structure of the event around a write and read and use a value change event. I have attached a quick change. This mod is still a reading after writing. If necessary, you may have two separate events to write and read.

  • Why not tell the functionality of the Anit-Virus software health report?

    Information  
    Symptom: The Security Center has not recorded an antivirus product.
    Cause: The Security Center is unable to identify an active antivirus application. There is no product protection antivirus installed or it is not recognized.
    Resolution: 1 check that an antivirus product is installed.
      2. If an antivirus product is installed and running configure Security Center to stop monitoring anti-virus status.
    Partners: Antivirus protection

    This feature of Windows works never once correctly from when she started with Windows Vista

    If you use Microsoft Security Essentials as it appears in the center of the Action is good, but in the report on health it is not problem that is resolved in update or service pack just ignore it and wait for the update and make sure MSE is green and center of the Action to recognize.

    If it's an another anti-virus contact your anti-virus support.

  • I do not consider the dbx files

    I wanted to watch a dbx file and do not know which program is associated with him to open the file? My Windows 7 operating system. I have not found in the standard programs Outlook Express mail client. Help me please.

    You need Outlook Express to open a .dbx file and it was used last in XP. If you have professional, enterprise or ultimate edition, you can use OE in XP Mode.

    How to use Outlook Express in Windows 7
    http://www.oehelp.com/OEnWin7.aspx

  • Windows 8 does not "see" the functions on my Canon MF4450 scanner

    Printer works with Windows 8, but not the scanner function.

    The problem is that it will work for a while, but then it gives the same error.  It is as if Windows 8 is uninstalled or damage something.

  • IM have downloaded on windows 10 software adobe reader DC. Cannot install the update 15.009.20069 - gives error 1635. the drive is not all the functions associated with it - does not seem to download documents - opens in mocrosoft edge despiye moxilla fir

    I downloaded the CD player on windows 10. Unable to install the 15.009.20069 update. gives error 1635. Reader is not all functions available - documents opens on the edge of microsoft despite moxilla firefox as my default browser

    Hi Jacqueline,.

    Please check the steps in the article that Sukrit Dhingra shared with you. If in case the issue is not resolved with who perform a clean installation of drive using the cleaning tool and install offline using. Links provided below.

    Download Adobe Reader and Acrobat cleaning tool - Adobe Labs

    Adobe - Adobe Acrobat Reader DC Distribution

    To set the default on Windows 10 drive, try the steps from here: Reader/Acrobat is not the default PDF owner | Windows 10 threshold 2

    Thank you

    Abhishek

  • working on a slide show in adobe photoshop elements 13 and do not have the function 'speed '?

    I use Windows 8.1...

    Why the speed function is not available in Sideshow Builder?

Maybe you are looking for