Oracle index reorganize architecter

hi all,
     normaly we all know oracle index rebuild means drop index and created it again. I want to know what is index reorganizeing is? And after index reorganize happpen what is the storage level behind macanisum? And how is that(index reorganize) effected in DB blok, segments ,extentd and table space level?
Thank you
Tharindu Dhaneenja

Dhaneenja wrote:
hi all,
     normaly we all know oracle index rebuild means drop index and created it again. I want to know what is index reorganizeing is? And after index reorganize happpen what is the storage level behind macanisum? And how is that(index reorganize) effected in DB blok, segments ,extentd and table space level?
Technically Oracle's rebuild command creates a new copy of the index then drops the old copy. The reason for splitting hairs about this is that Oracle does not have a definition of "reorganizing" an index - so we need to have the context in which you saw the term so that we can decide what the author intended.
There is a coalesce command that moves index entries from one leaf block to another in order to get some leaf blocks well-packed and make others completely free. Since this is a delete/insert operation it generates a lot of undo and redo.
There are also two versions of the "shrink" command that play similar games.
Rebuild, and "shrink space" can result in less space being allocated in the tablespace for the final state of the index; "shrink space compact" and coalesce don't move the index segment at all, and don't free any space back to the tablespace.
Regards
Jonathan Lewis

Similar Messages

  • How to read an Oracle index by in Java

    Hi All,
    Could anyone help me, how can I use JDBC to read the contents of an Oracle index-by table. I am preparing this Oracle array in a procedure, which I need to send as an out parameter.
    A code segment will be highly appreciated.
    Thanx in advance.
    Regards,
    Dushyant

    I GOT IT!... I did not notice the "]" at the end. Crazy!!!!

  • How to download the ORACLE INDEX TUNING

    Hi,
    I am using Oracle 10g. i want to know how to download the ORACLE INDEX TUNING .
    Thank u...!

    Hi,
    Thank u for u r reply. I am asking about the Oracle Index tuning Wizard 9.2.0.1.0 Production. In the Oracle tuning book it has give this. That's why i am asking about the how to download the Oracle Index tuning Wizard 9.2.0.1.0 Production. Or where we will find this in oracle 10g.

  • About Oracle Indexes

    Hi All,
    Would like to know about the following:
    1) Different types of Oracle indexes.
    2) Comparison of the indexes by performance. (Which index is better suited in what situation?)
    Thanks

    Yeah... Jason, not sure what you expect from this forum on a topic that is so broad. No-one is interested is spending large amounts of their free time typing up long and detailed explanations on such a vast subject like types of indexes, performance comparisons between indexes, etc.
    As Eric indicated - read the manuals. Then ask detailed and specific questions in the forum about something that is unclear.

  • Oracle Index Wizard

    Can you please answer any of these questions.
    1) How to use Oracle Index wizard in oracle 10g and how to go to that wizard.
    2) What is the url to access oracle 10g enterprise manager console.
    3) Do we need to install any other softwares to access Oracle 10g index wizard.

    In Oracle 9i, try this link: http://www.lc.leidenuniv.nl/awcourse/oracle/em.920/a86647/indxtun.htm#1003379
    To access the OEM Database Console try to access the link http://server_ip_or_name:5505/em/console
    In Oracle 10g try this:
    Using Segment Advisor
    You can use Segment Advisor to provide advice on whether an object is a good candidate for a shrink operation based on the level of space fragmentation within an object. The advisor also reports on the historical growth trend of segments. You can use this information for capacity planning and for arriving at an informed decision about which segments to shrink. Use the Segment Advisor wizard to evaluate objects for block and space usage and to determine whether space can be saved by shrinking highly fragmented segments. The space gained by the implementation of these recommendations is returned to the tablespace. You can launch the Segment Advisor from the Advisor Central page or you can initiate it in the context of a schema object, such as an index, table, tablespace, or materialized view.
    To run Segment Adviso, follow these steps:
    1. Navigate to the Database Home page.
    2. In the Related Links section, click on Advisor Central. The Advisor Central page appears displaying a list of all Advisors available to you and a table showing the results of Advisor tasks that have previously been initiated.
    3. Select Segment Advisor from the list of Advisors.
    Using the SQL Access Advisor
    The SQL Access Advisor helps define appropriate access structures such as indexes and materialized views to optimize SQL queries.
    cheers

  • Oracle Indexing on Specified Columns

    Hi ,
    I have read that Oracle Indexing improve performance for Database engines while searching data .
    Therotically i know this , but pratically , didn't written any indexes actually .
    For example , we have a below index in our Application :
    CREATE UNIQUE INDEX M_Index on  F_SECTION("FMAT_ID", "SECT_NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 121
    PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SYSTEM" ;
    I am having query here , This Table F_SECTION is consisting of many columns under it , but anybody please tell me why is it that the Index has been created based on only those columns .
    waiting for your ideas , thanks in advance .

    Hi ,
    I have read that Oracle Indexing improve performance for Database engines while searching data .
    Therotically i know this , but pratically , didn't written any indexes actually .
    For example , we have a below index in our Application :
    CREATE UNIQUE INDEX M_Index on F_SECTION("FMAT_ID", "SECT_NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 121
    PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SYSTEM" ;
    Hi,
    During the database design phase,the database modellers would have made the combination of "FMAT_ID" and "SECT_NAME" as Primary Key which Uniquely identifies the record in your table.
    Regards,
    Achyut

  • What happens inside ...... when fired Index Reorganize

    Hi all,
    what happens inside ...... when fired Index Reorganize
    Thanks
    vijay

    Logical scan fragmentation is removed (where possible). This can improve performance of certain queries, because it reduces the amount of big disk head movements need to go through all the pages.
    In addition to that, it brings the amount of unused space in line with the original fill factor of the index. If you haven't specified any fill factor when the index was first created, then all unused space will be removed (where possible). It does this
    by joining the rows of multiple pages onto fewer pages and releasing the empty pages. This can improve performance of many queries, since fewer I/O and less memory is now needed to access the same amount of row data.
    When the command runs, it will lock just one or a few pages at a time. This way, most blocking is avoided, and any blocking that does occur will be short lived.
    This also means that the reorganization occurs inline, within the pages and extents that are already allocated for the specific index. This is one of the big differences with Reindexing, where new pages (and extents) are allocated.
    Gert-Jan

  • Urgent: ORACLE: Index /BI0/IACCOUNT~0 has possibly degenerated

    Hi,
    I ran ‘Database Indices of an InfoCube and Its Aggregates’ test for one of my cubes.
    After running the test I get following 7 warnings
    ORACLE: Index /BI0/SREQUID~0 has possibly degenerated
    ORACLE: Index /BI0/IACCOUNT~0 has possibly degenerated
    ORACLE: Index /BI0/ICOORDER~0 has possibly degenerated
    ORACLE: Index /BI0/ICOSTCENTER~0 has possibly degenerated     
    ORACLE: Index /BI0/ICOSTCENTER00 has possibly degenerated     
    ORACLE: Index /BI0/IWBS_ELEMT~0 has possibly degenerated
    ORACLE: Index /BI0/ICOORDER~001 has possibly degenerated
    How can I repair indexes for the above objects? Can above be cause for poor query performance.
    Thank you,
    sam

    check: Index possibly Degenerated
    We have this warning on several of our infocubes. If there is no noticable performance issue it is not cause for concern.
    Also refer to OSS notes: 771929 and 332677
    null

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • Oracle indexes that are missing in the SAP Data Dictionary

    We have an old SAP SAP system we just shut down, but Oracle is still up.
    I am trying to put together a query using DBA_INDEXES and a SAP Data dictionary table, that will show me what tables are in Oracle and not in the SAP data dictionary.
    I cannot bring up SAP, but database is still up.

    Hi Bill,
    Table DD12L contains the definition of the SECONDARY indexes.
    Watch it, indexes may be concatenated to table with ^ or ~ or severel
    _ chars so an index 3 for a table might be named
    table~3
    table^3
    table_____3
    depending on what upgrade History the system has.
    For primary indexes, you should ensure, that every table has an index
    with suffix 0 as in
    table~0
    table^0
    table_____0
    Hope this helps
    Volker

  • Types of Oracle indexes

    Can some one explain what all are the types of indexes in Oracle

    Hi,
    In short there are only 2 types
    1)B-tree indexes
    2)Bitmap indexes
    These 2 types are subdivided as follows:
    *1)B-tree indexes*
    These indexes are the standard index type. They are excellent for primary key and highly-selective indexes. Used as concatenated indexes, B-tree indexes can retrieve data sorted by the indexed columns. B-tree indexes have the following subtypes:
    *Index-organized tables
    An index-organized table differs from a heap-organized because the data is itself the index.
    *Reverse key indexes
    In this type of index, the bytes of the index key are reversed, for example, 103 is stored as 301. The reversal of bytes spreads out inserts into the index over many blocks.
    *Descending indexes
    This type of index stores data on a particular column or columns in descending order.
    *B-tree cluster indexes
    This type of index is used to index a table cluster key. Instead of pointing to a row, the key points to the block that contains rows related to the cluster key.
    *2)Bitmap indexes:*
    •Bitmap and bitmap join indexes
    In a bitmap index, an index entry uses a bitmap to point to multiple rows. In contrast, a B-tree index entry points to a single row. A bitmap join index is a bitmap index for the join of two or more tables.
    *Function-based indexes
    This type of index includes columns that are either transformed by a function, such as the UPPER function, or included in an expression. B-tree or bitmap indexes can be function-based.
    *Application domain indexes
    This type of index is created by a user for data in an application-specific domain. The physical index need not use a traditional index structure and can be stored either in the Oracle database as tables or externally as a file.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • Oracle Index Search

    We are on 11.1.0.7
    I am looking for some inputs from someone who has already seen this behavior.
    We have two identical schemas, and an identical table in each of this schema with same in structure and around 8 indexes on these tables.
    For one schema, there is a covering index and we have kept it in the KEEP pool.
    But when I am running the same SQL against each of this schema, while looking at the explain plan, it shows that in one case (surprisingly the one that was not in KEEP pool) it is reading from this covering index and in second case where we have that covering index in KEEP buffer pool, it is NOT reading from the covering index.
    What can be the reason for this behavior? Why a same structure table and with around same amount of data is showing a different plan? In one case it is looking into Covering Index and in other it is not.
    Thanks!

    select clustering_factor from dba_indexes where owner=[SCHEMA1] and index_name='[INDEX]';
    CLUSTERING_FACTOR
              1643019
    select clustering_factor from dba_indexes where owner=[SCHEMA2] and index_name='[INDEX]';
    CLUSTERING_FACTOR
              1038427Looks like in SCHEMA1, oracle is doing one extra step of looking intio the primary key instead of this Covering index to fetch the result.

  • Looking for Oracle INDEX expert

    Anyone has an idea about the difference between IndexA and IndexB and which one is recommended?
    CREATE INDEX INDEX_A on TableA(Column1)
    TABLESPACE indx;
    CREATE INDEX INDEX_B on TableA(Column2)
    TABLESPACE indx;
    and
    CREATE INDEX INDEX_C on TableA(Column1, Column2)
    TABLESPACE indx;
    How Oracle knows which INDEX to be called?

    The one that is recommended, totally depends on the queries you'll be firing against your table. If the queries will be like:
    select ... from TableA where Column1 = :1and
    select ... from TableA where Column2 = :1then your first option is the right one. If they are:
    select ... from TableA where Column1 = :1 and Column2 = :2then your second option seems right.
    Note that with the second option, this index may also be used in the first two queries, if the selectivity is good enough. But again, this depends on your data and data distribution.
    How Oracle knows which INDEX to be called?By using his cost based optimizer and predicting the cardinalities and the selectivity of your indexes.
    Regards,
    Rob.

  • DB2 to Oracle: Indexes with reverse scans feature

    When doing the migration using Oracle Migration Workbench, get the following warning:
    Type: Warning
    Time: 14-08-2006 18:13:33
    Phase: Creating
    Message: Index Warning : IX3_REQ; The Migration Workbench has identified that IX3_REQ supports reverse scans. The Migration Workbench does not support the migration of the reverse scans feature for indexes.
    What option do I have to use in Oracle script 'behind the covers' to have the DB2 feature of 'allow reverse scans' for indexes?
    Thanks in advance.

    Why is the "ALLOW REVERSE SCANS" in the original DB2 index definition in the first place? To retrieve rows in sorted order? Or to enable index scans in descending/opposite order? The MWB isn't clairvoyant. This is one of those situations where someone has to dig into what was the primary objective to come up with the correct case for Oracle. It may be that Oracle DB doesn''t need any "extra" adjectives to give you want you want. However, the MWB should not throw away things willy-nilly unless know for sure it is superfluous.
    [ By default the CREATE INDEX statemnt in Oracle DB creates a b-tree index.. which is probably what you want.  ]
    Very likely this is a performance tweak. One thing to do is to track down where the "hot spots" are in Oracle (which don't have to be the same as they were in DB2) before spending a very large amount of time on this issue. It is an issue to track though.
    If you take your new, perhaps under performing desired levels, Oracle SQL query's explain plan that you aren't happy about to one o the DB forums and ask what you can do to speed it up you'll likely get some helpful responses.
    Message was edited by:
    lytaylor
    Message was edited by:
    lytaylor

  • Oracle Database Reorganization

    hi,
    Planning to reorg oracle database for apo. This involves transparent tables and also cubes. Is there any SAP recommended Oracle reorg strategy / guide for doing so.
    would appreciate any detailed guide is available.
    Thanks,
    RajS

    Hi,
    You can perform online database reorg on APO system. An online
    reorganization is online per definition, so it doesn't interfere on a
    logical consistency layer with other system components.
    The online reorg need additional CPU, disk space and other system
    resources. If possible, we do not recommend to do the online reorg when
    you have heavy workload on the system.
    If you want to understand more about BRSPACE online reorganizations
    please refer to following online help topics.
       http://help.sap.com/saphelp_nw70ehp2/helpdata/en/32/
       0d0c888839164ba4245b3ff7969c59/frameset.htm
       http://help.sap.com/saphelp_nw70ehp2/helpdata/en/1b/
       4e8f0d38a8f4419436d608a36b6581/frameset.htm
       SAP on Oracle
    Regarding the offline reorganisation, please check the below:
    SAP Note 646681 (offline-reorganization in Remark14 of this note).
    Please see point 14 in the above note which clearly explains the
    offline reorganisation process.
    541538 FAQ: Reorganization
    647697    BRSPACE - New tool for Oracle database administration
    648753    Reducing the tablespace size with a reorganization
    Regards,
    Aidan

Maybe you are looking for

  • How to created GR for old GI

    Hello 1)The Business is having some STO which were created in 2009, they were having the Delivery and Goods issue, Now user wants to do the GR for that Delivery and system is giving the error" Posting date different than Goods issue posting date" The

  • How the external system will talk to ECXpert 3.5 for transfering files via HTTP SSl?

    We are using ECxpert3.5 on Solaris box. One of our Trading Partner want to communicate through HTTP-SSL and we are doing XML/EDI mapping. Could you guide us what steps we need to take care to implement this. How the external system will talk to ECXpe

  • Sluggish drawing a singe node in a scene with many nodes

    Hi! I made a generic gauge to monitor our production servers by JMX, and it worked really nice. After a while I added several gauges to other values, and it started to become sluggish. I assume this is because it compares all gauges/nodes/layers in t

  • How to get creator codes for search?

    How do you figure out/use the creator codes for seaching a file? In the good old OS days (i.e Mac OS) you dragged a file of the kind you were looking for into the search box after selecting "Creator is __". It doesn't work with OS X. I'm trying to fi

  • Custom Logging - Either via Console or a Tool...

    Anyone know of a way to create custom logs in the Console? I am trying to audit specific events and would like to create a log that would show just those. Anyone know of a tool that logs events such as: failed attempts to read files, delete files, ru