Why the CBO will ignore my index?

I have a strange situation with a "simple" query

This is my table:
CREATE TABLE 'BAG_MOVEMENTS '.
('MOVEMENT_ID' NUMBER(*,0) NOT NULL ACTIVATE,)
ACTIVATE THE 'BAG_ID' NUMBER(*,0) NOT NULL,
* "TRANSACTION_ID" ACTIVATE VARCHAR2 (255 BYTE) NOT NULL, * "
ACTIVATE THE 'AMOUNT' FLOAT (126) NOT NULL,
ACTIVATE "INSERT_DATE" STAMP (6) NOT NULL,
NUMBER(*,0) "RATER_ID"
NUMBER(*,0) "RATER_PLAN_ID"
'START_DATE' TIMESTAMP (6).
'END_DATE' TIMESTAMP (6).
NUMBER(*,0) "SUBSERVICE_ID"
NUMBER(*,0) "LEVEL_ID"
VARCHAR2 (24 BYTE) "RATER_TYPE."
'PK__BAG_MOVEMENTS' CONSTRAINT PRIMARY KEY ('MOVEMENT_ID'),
KEY FOREIGN CONSTRAINT "FK_BA_REF_19553_BA" ("BAG_ID")
SELECT REFERENCES 'BAG' ('BAG_ID') ON DELETE CASCADE
);
Here are the clues:
CREATE INDEXES ' IDX$ $_53670001 ' ON 'BAG_MOVEMENTS' ("TRANSACTION_ID");

CREATE INDEXES '_BAG_MOVEMENTS_FK1' ON 'BAG_MOVEMENTS' ('BAG_ID');

CREATE AN INDEX UNIQUE 'BAG_MOVEMENTS_PK' ON 'BAG_MOVEMENTS' ('MOVEMENT_ID');

I expect that the following query should use the IDX index $ $_53670001... and he does.
Select * from BAG_MOVEMENTS
where transaction_id = "32260-3gpp.org@9af63e37-521e-4fda-85d5-afb5768227fceebce62d-bc87-4915-8b56-ca255eb2a163"
and rater_id <>- 1

Execution plan
----------------------------------------------------------
Hash value of plan: 1805212729

---------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
---------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 1. 141. 5 (0) | 00:00:01 |
|* 1 | TABLE ACCESS BY INDEX ROWID | BAG_MOVEMENTS | 1. 141. 5 (0) | 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX$ $_53670001 | 1 | | 4 (0) | 00:00:01 |
---------------------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):
---------------------------------------------------

1 Filter ("RATER_ID" <>(-1))
2 - access ("TRANSACTION_ID" = '32260-3gpp.org@9af63e37-521e-4fda-85d5-afb5768227fceebce62d-bc87-4915-8b56-ca255eb2a163')


Statistics
----------------------------------------------------------
1 recursive calls
0 db block Gets
6 compatible Gets
2 physical reads
0 redo size
1434 bytes sent via SQL * Net to client
492 bytes received via SQL * Net from client
2 SQL * Net back and forth to and from the client
0 sorts (memory)
0 sorts (disk)
1 rows processed


When I use another TRANSACTION_ID I get FULL TABLE SCAN with a cost of 11887 (previous was 5!):
Select *.
of BAG_MOVEMENTS
where transaction_id = "[email protected]@nov2902.mydomain.com;9998;1257262489;6458"
and rater_id <>- 1;

Execution plan
----------------------------------------------------------
Hash value of plan: 2308301958

-----------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
-----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 802K | 107 M | 11887 (2) | 00:02:23 |
|* 1 | TABLE ACCESS FULL | BAG_MOVEMENTS | 802K | 107 M | 11887 (2) | 00:02:23 |
-----------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):
---------------------------------------------------

1 - Filter ("TRANSACTION_ID" = "[email protected]@nov2902.mydomain.com;9998;1257262489;6458" AND "RATER_ID" <>(-1))


Statistics
----------------------------------------------------------
1 recursive calls
0 db block Gets
44365 compatible Gets
0 physical reads
0 redo size
1501 bytes sent via SQL * Net to client
492 bytes received via SQL * Net from client
2 SQL * Net back and forth to and from the client
0 sorts (memory)
0 sorts (disk)
2 rows processed

If I force Oracle to use the index of the cost increases to 711685!
Select / * + INDEX (IDX BAG_MOVEMENTS $$ _53670001) * / *.
of BAG_MOVEMENTS
where transaction_id = "[email protected]@nov2902.mydomain.com;9998;1257262489;6458"
and rater_id <>- 1;

Execution plan
----------------------------------------------------------
Hash value of plan: 1805212729

---------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
---------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 802K | 107 M | 711K (1) | 02:22:21 |
|* 1 | TABLE ACCESS BY INDEX ROWID | BAG_MOVEMENTS | 802K | 107 M | 711K (1) | 02:22:21 |
|* 2 | INDEX RANGE SCAN | IDX$ $_53670001 | 810K | 8845 (1) | 00:01:47 |
---------------------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):
---------------------------------------------------

1 Filter ("RATER_ID" <>(-1))
2 - access ("TRANSACTION_ID" = '[email protected]@nov2902.mydomain.com;9998;1257262489;6458')


Statistics
----------------------------------------------------------
1 recursive calls
0 db block Gets
Gets 7 compatible
2 physical reads
0 redo size
1501 bytes sent via SQL * Net to client
492 bytes received via SQL * Net from client
2 SQL * Net back and forth to and from the client
0 sorts (memory)
0 sorts (disk)
2 rows processed

Oracle is selecting the right plan for TRANSACTION_ID * "[email protected]@nov2902.mydomain.com;9998;1257262489;6458."
But why he does not use the index in what concerns the TRANSACTION_ID * "32260-3gpp.org@9af63e37-521e-4fda-85d5-afb5768227fceebce62d-bc87-4915-8b56-ca255eb2a163?"

Thank you

Background stats task gathers the outdated statistics, so you could either turn it off completely and replace it with your own job (perhaps exaggerated if it works for most good for you), or lock the statistics for a table or set the table to NOMONITORING to prevent his stats being marked as stale. Then you need a job to collect statistics on a table using dbms_stats.gather_table_stats and passage of your own custom settings.

To collect default statistics on only specified columns, you will need something like this:

BEGIN
    DBMS_STATS.GATHER_TABLE_STATS
    ( 'yourtableowner'
    , 'bag_movements'
    , method_opt =>
      'for columns size auto movement_id bag_id amount insert_date rater_id rater_plan_id start_date end_date subservice_id level_id rater_type'
    , force => TRUE );
END;

Or collect transaction_id basic stats but no histograms.

BEGIN
    DBMS_STATS.GATHER_TABLE_STATS
    ( 'yourtableowner'
    , 'bag_movements'
    , method_opt =>
      'for columns size auto movement_id bag_id amount insert_date rater_id rater_plan_id start_date end_date subservice_id level_id rater_type ' ||
      'for columns size 1 transaction_id'
    , force => TRUE );
END;

There is no syntax of ' all columns except ", so you'll have all the columns you need for statistics on the list. You might want to consider the option "size" for the other columns while you're there. The option 'force' is for when you have locked the stats to prevent the background stats task collect default statistics.

Obviously, test to make sure it's doing what you want it to do, especially as the method_opt syntax is not clearly documented.

Edited by: William Robertson on November 25, 2009 18:40

Tags: Database

Similar Questions

  • Why the installer will remove old CC apps?

    I have older CC apps for open (even some old pagemaker files) very old files and some files that are open not correctly in the current version. Why the app Setup 2015 will remove legacy applications? Is there a work around? I have to cancel my membership and return to individual applications or installation which will remove also old apps?

    I found an answer here: Creative Cloud offering more choice for Installations. Adobe Customer Care Team

  • Why the CTI will not go away from the next?

    Hi all experts,

    I want to assure you that all my clips are aligned side by side without gap. I voluntarily leave a slight space between 8 & 9 clip and move my left & placed CTI on clip 2 (ie the left opening)

    So I test the function sequence > Goto Gap > following in the sequence but the CTI does not move!

    Why the CTI doesn't move right away between the clip 8 & 9 clip?

    Any ideas?

    Thank you

    Previous/next in the sequence will work only if there is a gap through all the titles in a sequence, video and audio. Instead, try next/previous on the track and make sure all (or part) of your tracks are targeted in the headers of the track.

  • Why the clip will not play in the window of the observer?

    Hello world. It's me again. So, I just started working on a project, and the clip will not play in the window of the observer. In the timeline panel, I see that there are images to play, but the Viewer is black when I try to play. I have temporary can solve it by leaving FCPX and opening it again, but after a few minutes, the display window stops again, and it's a pain to have to do every time so I can watch a few minutes of film. Just so you guys know, do it mode multi-cam, incase that has an effect on it. Thank you very much!

    You have the options of display Angles show the value? You are in the editor of the Angle or the project timeline?

    Russ

  • I have a XP W my last PC installation disk and I recently bought a Zoostorm PC no BONES. Why the XP will not be installed?

    As in the title, tried to install XP on my new PC. Started OK with partition disk etc. and got to the real Windows Installer screen which seemed OK progress until it reaches install will finish in 35 minutes. page, then it froze and BSOD appeared. I tried a number of things suggested by Zoostorm, IE changed the bios SATA to IDE settings and also ran memtest for RAM errors. Found nothing, but still get BSOD. The XP disc would be defective?

    What is the BSOD?

    Here's a BSOD example showing information you provide:

    http://TechRepublic.com.com/i/tr/downloads/images/bsod_a.jpg

    Send for the nose and the Red arrows (3 to 4 lines total).

    Send all * line STOP message since there are clues in the 4 parameters.

    Ignore the boring text unless it seems important to you.  We know what a BSOD looks like, we know what your BSOD looks like.

    If there is a name of the file listed in the STOP message, don't forget to include that too.

    Instructions courtesy of elderberry.

  • Why the videos will not play in Firefox?

    Videos on the YouTube sites and new will not play. Everything worked last night. This afternoon no videos don't play. I tried the update of Real Player plug-ins, re - install Real Player, install QuickTime, QuickTime plug-ins verification, etc. Nothing works.

    I have uninstall Realplayer and it works now. RealPlayer has been blocklisted by Flash.

  • Unhandled exception has occurred in your application. If you click on continue, then the application will ignore and continue.

    OT: How to fix this?

    See the end of this message for details on the call
    just-in-time (JIT) debugging instead of this dialog box.

    The exception text *.
    System.Net.WebException: The remote name could not be resolved: 'peeracon.com '.
    to System.Net.HttpWebRequest.GetResponse)
    at WindowsFormsApplication1.Form1.GetHtmlPageText (String url)
    at WindowsFormsApplication1.Form1.Form1_Load (Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad (ByVal e As EventArgs)
    at System.Windows.Forms.Form.OnCreateControl)
    at System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl)
    at System.Windows.Forms.Control.WmShowWindow (Message & m)
    at System.Windows.Forms.Control.WndProc (Message & m)
    at System.Windows.Forms.ScrollableControl.WndProc (Message & m)
    at System.Windows.Forms.Form.WmShowWindow (Message & m)
    at System.Windows.Forms.Form.WndProc (Message & m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m)
    at System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Loading assemblies *.
    mscorlib
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1008 (RTMGDR.030319 - 1000)
    Code: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    WindowsFormsApplication1
    Assembly version: 1.0.0.0
    Win32 Version: 1.0.0.0
    Code: file:///C:/Windows/bat_starter.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1002 built by: RTMGDR
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Configuration
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1015 (RTMGDR.030319 - 1000)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1015 built by: RTMGDR
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------

    JIT debugging *.
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    permit.

    For example:


       

    When JIT debugging is enabled, an unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Hey, Ace,

    1. what application are you running?
    2. when exactly you get the error message?

    If you experience this problem when you install Visual Studio, I suggest you post in the MSDN forums.
    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=netdevelopment

    I hope this helps. Let us know if you have other problems with Windows in the future.

  • Why the tabs will erase (I can see my desktop through them) and shut up, minimum and symbols of output endangered with the new update?

    The tabs at the top, for different pages, are / stblk. I can see my office through them, and the symbols on the right, to close, reduce/expand and X'ing, are gone/invisible. I can always click on the tabs/stblk most of the time, but I can't close it, adjust or get out completely out of it (close all open tabs at the same time). If I want to completely leave Mozilla, as to restart, I have to Ctrl/alt/del and stop the program. Any help would be greatly appreciated. I've never had this problem before. Many Mozilla crashes, Yes, but not this one.

    Separate the issue;
    Shows details of the system;

    Plug-ins installed

    Shockwave Flash 15.0 r0
    Shockwave Flash 11.8 r800

    Having multiple versions of a program can cause problems.

    Flash is infamous for cleaning is not on the old version as part of an update.
    Take uninstaller from here:
    Uninstall Flash Player | Windows
    Uninstall Flash Player | Mac
    Reinstall the latest version.

    Shockwave Flash v15.0.0.152 http://get.adobe.com/shockwave/

  • Why the IPAD will not play audio

    Suddenly the woman IPAD won't play no audio received via e-mail (daily audio seminars) or video clips on Facebook. Was working until yesterday. The IPAD is just "bogus" some time for the video, then says: "cannot play the video. For audio, the 'bar' with the length of time ppears, but shows no time about it, just "00:00". "." Has she lost an app needed to play such things. She says she has the MP3 player audio RPF necessary.

    Have him try a force restart: press and hold the home button and sleep, wait for the Apple logo, release the buttons.

  • Why the product will not start after MacBook hard drive replaced? Avail Updater system wants to reinstall but impossible to access.

    Back up the hard drive to SeaGate.  Mac replaced due to lack of hard drive store.  Everything again restored hard drive.  Launch of Adobe products.  Error 1, product needs to be reinstalled.  Uninstalled Photoshop and Dreamweaver.  Tried to reinstall the update at the top of the screen icon.  Try to run, then disappears almost immediately at the dock bar.  Cannot access the programs.  Any ideas?

    Tell everyone you know who owns a Mac, including Apple employees... Migration of Mac and Time Machine NOT FUNCTION correctly with the Adobe program activations due to hidden folders are not included when Migration or Time Machine make their copies

    Sign out of your account... Uninstall... to run vacuuming...

    -non-Cloud programs, to disable the service before uninstalling

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -using the vacuuming after uninstalling and before reinstalling is often necessary

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

    -Restart your computer... Sign in to your account... Reinstall

    - and 5 steps in response to #1 https://forums.adobe.com/thread/2144928

  • Why the software will not install?

    I just bought Adobe Photo Shop Elements 8 and try to install it on my new Windows 7 computer.  After I insert the disc in the drive, it gives me a list of files.  There are no instructions, no wizard to install it...  I can't access this file, I can't save it in order to get help.  I can't get to first base.  I checked to make sure autoplay is located.  Can someone help me?

    It seems you accidentally bought the version of PSE 8 Mac and you try to install on the Windows machine.

    Try to go back to the seller or Exchange it somehow with the version of Windows or buy a new copy for PSE 8 Windows. Then, you'll be good to go...

    Kind regards

    Ankush

  • Why the examiner will not open crev. file?

    I am a new user of Captivate and need some advice.

    Until about two months ago, the review process has worked and now it isn't. When you try to open the file, the arrow turns just. I read all the past posts, and nothing is exactly my problem. When you send a control file, everything seems fine. No errors. After the publication, I select the output view and the file does not open. I have someone else tries to open the file in their computer that has access to the shared folder, and it does not open for them. I tried to publish the crev. and review of folder my documents from the computer and it does not open. I am running windows XP. I ran all the updates from adobe. I have the pkg on e-learning. Any suggestions would be greatly appreciated!

    Hello

    If you can spraé time, I would say that you report this problem to the Adobe Captivate team. I have seen a few times and would like Adobe to continue this investigation

    Adobe Captivate feature request/Bug Report Form

    Best - Mark

    Visit blog macrofireball

  • When the CBO would not use bitmap indexes available?

    I have a large data warehouse table in a star schema classic, with an index number of bitmap for the dimension tables. When you run queries that contain parameters for multiple indexes, the CBO will only use generally one or rarely two bitmap index.

    It seems to me that if the indexes are valid, statistics, the values of the parameters are present, etc and the CBO uses a bitmap index in an AND condition, he would like to use all those she could.

    there all the parameters that affect or bitmap how indexes him CBO will use? I'm looking for some advice on what to look for or research.

    Database is 11.2.0.3 base with no patch.

    Thanks in advance,

    Sean

    rp0428 - who has been deliberate because my question is not "how to solve this problem", that's exactly what I pointed out in my post. Just trying to see if there are all the controls to weight the decision-making community organizations in this area.

    OK - then let me simply state it.

    No - there are NO these parameters. But most of the posters are not really looking for a simple yes/no answer even if of many word of questions like that.

    See my response as of March 18, 2012 19:21 in this thread: https://community.oracle.com/message/10219613?

    Here I provide a simple table with SIX bitmap index, a query that uses predicates that combine values since the execution plan and the six columns indicating the different INDEX of BITMAP UNIQUE BITMAP, BITMAP or operations and BITMAP CONVERSION to ROWID.

    I won't repeat everything here, but this example should show you that Oracle will limit itself the way you suggest.

  • Selectivity of the behavior of the CBO.

    Hi all

    This issue has been raised several times, but has found no reason on why optimizer chooses bad index.

    I would like to know on what basis optimizer thought or why the optimizer thought that bad index would be useful? Can be real mathematical approach will be useful...

    Imprecise plan:
    SQL> SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM AMRWF1.LOG WHERE ID = '09306AMR117E19B' AND TYPE IN (11, 28, 25, 18, 60, 13) AND (LOG_SEQ>'238565731' OR TYPE =18 AND LOG_SEQ='238565731') ORDER BY TIME_STAMP ASC
      2  /
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=11 Card=2 Bytes=130)
       1    0   SORT (ORDER BY) (Cost=11 Card=2 Bytes=130)
       2    1     CONCATENATION
       3    2       TABLE ACCESS (BY INDEX ROWID) OF 'LOG' (Cost=4 Card=1
              Bytes=65)
    
       4    3         INDEX (UNIQUE SCAN) OF 'PK_LOG_LOG_SEQ' (UNIQUE) (Co
              st=3 Card=1)
    
       5    2       TABLE ACCESS (BY INDEX ROWID) OF 'LOG' (Cost=4 Card=1
              Bytes=65)
    
       6    5         INDEX (RANGE SCAN) OF 'PK_LOG_LOG_SEQ' (UNIQUE) (Cos
              t=3 Card=1)
    Specific plan:
    SQL> set autotrace traceonly exp
    SQL> SELECT /*+ index(log log_id) */ ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM AMRWF1.LOG WHERE ID = '09306AMR117E19B' AND TYPE IN (11, 28, 25, 18, 60, 13) AND (LOG_SEQ>'238565731' OR TYPE =18 AND LOG_SEQ='238565731') ORDER BY TIME_STAMP ASC
      2  /
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1522 Card=1 Bytes=65
              )
    
       1    0   SORT (ORDER BY) (Cost=1522 Card=1 Bytes=65)
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'LOG' (Cost=1518 Card=1
               Bytes=65)
    
       3    2       INDEX (RANGE SCAN) OF 'LOG_ID' (NON-UNIQUE) (Cost=27 C
              ard=1)
    Sometimes we get specific plan without reference:
    SQL> set autotrace traceonly exp
    SQL> SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM AMRWF1.LOG WHERE ID = '09303AMR6349C60' AND TYPE IN (11, 28, 25, 18, 60, 13) AND (LOG_SEQ>'232414396' OR TYPE =18 AND LOG_SEQ='232414396') ORDER BY TIME_STAMP ASC
      2  /
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1524 Card=287 Bytes=
              18655)
    
       1    0   SORT (ORDER BY) (Cost=1524 Card=287 Bytes=18655)
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'LOG' (Cost=1518 Card=2
              87 Bytes=18655)
    
       3    2       INDEX (RANGE SCAN) OF 'LOG_ID' (NON-UNIQUE) (Cost=27 C
              ard=287)
    A few details:
    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
    PL/SQL Release 8.1.6.3.0 - Production
    CORE    8.1.6.0.0       Production
    TNS for Solaris: Version 8.1.6.3.0 - Production
    NLSRTL Version 3.4.0.0.0 - Production
    
    SQL> select INDEX_NAME,INDEX_TYPE,BLEVEL,CLUSTERING_FACTOR,STATUS,NUM_ROWS,LAST_ANALYZED from dba_indexes where table_owner='AMRWF1' and TABLE_NAME='LOG';
    INDEX_NAME                     INDEX_TYPE                      BLEVEL CLUSTERING_FACTOR STATUS     NUM_ROWS LAST_ANAL
    ------------------------------ --------------------------- ---------- ----------------- -------- ---------- ---------
    PK_LOG_LOG_SEQ                 NORMAL                               2            374452 VALID     2495032.8 01-NOV-09
    LOG_ID                         NORMAL                               2           1491672 VALID       2616573 01-NOV-09
    
    
    SQL> select density,NUM_DISTINCT,low_value,high_value from dba_tab_columns where owner = 'AMRWF1' and table_name = 'LOG' and column_name in ('LOG_SEQ','ID');
       DENSITY NUM_DISTINCT LOW_VALUE                                HIGH_VALUE
    ---------- ------------ ---------------------------------------- ----------------------------------------------------------------
    2.9359E-07      3406141 C50309284434                             C50327231662
    .001113586          898 3037313635414D5231323842424530           3039333035414D5231313731344230
    Here, why even after having been low density on column ID... LOG_ID index is not used?

    Please let me know if you need more details.

    Earlier post links discussed on this same SQL statements...
    CBC latch and buffer busy await you on the same table.

    Re: Research of fragmentation of the table in Oracle 8.1.6.3.0

    -Yasser

    As I mentioned earlier, it is not the ID column but the log_seq column that causes the problem. You have histograms - but they have a size of a bucket.

    so in the stats for log_seq - you will have a low value and a high value.

    If for example the specified log_seq is greater than high value stored in the stats - so the optimizer will be expected back a few lines to the status log_seq >... and therefore make more attractive based log_seq index

    Published by: Lacotte Renaud on November 4, 2009 08:03

  • I downloaded activex flash player but the game will not download it what should I do?

    Why the game will not download? Help, please

    Hi Peggy Gallihugh.

    (a) what game you're talking about?
    (b) what browser do you use?
    (c) you get an error message during the download of the game?

    The issue could be with the Web site of when you try to download the game.
     
    Just for test, try to download games from other legitimate Web sites.
     
    (d) what version of Flash player version you downloaded?
     
    If you use Internet Explorer as your browser, 10.0.45.2 version is ideal for Internet Explorer.
     
     
    Post back with your answers.

    Aziz Nadeem - Microsoft Support

Maybe you are looking for

  • Unable to install my

    COX Cable is my Internet provider, and they offer free McAfee antivirus software.  I tried to install McAfee on my MacBook Air.  However, the audit to check that I have not any software on my Mac, interfering with the installation of McAfee, will not

  • Lockout iPad update.

    day 3 old iPad Pro, I forgot password but tried to update via iTunes. Should be the password to update, but I noticed that he formulated a backup so I thought I'd go to backup and then restore just the iPad while it would be. But he went ahead and in

  • How to disable the turn off the sound notification of Power Saver?

    Although I configured 'notification text' for the low battery level in energy of toshiba power save options, there is an audible alarm. Is it possible to disable the acoustic alarm?

  • Satellite P300 - player of the Partition with Vista

    Hello. I bought a P300-PSPC4C-SE308C demo, and it has installed Vista. I want to downgrade to XP. The drive is 300 GB and is distributed as a single drive. I would like to partition a drive C: and D:. I went into the BIOS and changed the AHCI on the

  • I accidentally shot etype application, how can I remove it?

    e type has been downloaded on my computer accidentally, but everything I do I can not remove it.  What I do is very disruptive and not helpful all.