After rebuild a index need do more something?

If i move the indexes of "TESTE" schema to other tablespace and that indexes have been access for user "TESTEC" i will need to grant and recriate sinonym again for the that user?
O will use:
select     'alter index "'||owner||'"."'||index_name||'" rebuild tablespace "'||tablespace_name||'" ;' cmd
from     dba_indexes
where     owner = 'TESTE'
TKS,
ELBER.

I usually do the following
1) set sort area big:
-- Check the available memory on the OS with top.
-- If you go overboard on the memory allocation, sar –g will show paging
-- I usually set the sort_area_size some where between 200 and 900 meg to speed up index rebuilds
alter session set workarea_size_policy='MANUAL';
alter session set sort_area_size=900000000;
alter session set sort_area_retained_size=900000000;
2) use the following to rebuild each index so I can control the parallelism:
-- can also use online compress parallel 8
alter index "&1"."&2" rebuild parallel 8 nologging tablespace &3;
alter index "&1"."&2" noparallel;
execute dbms_stats.gather_index_stats('&1','&2',estimate_percent=>3)
3) You can also control the parallelism by setting:
parallel_min_percent=25
parallel_min_servers=10
parallel_max_servers=100

Similar Messages

  • How to identify performence benefit after rebuilding of index in Oracle app

    In our EBS,
    we have planned to rebuild the indexes.
    We got a script from metalink, which identfies the indexes which needed to be rebuild.
    My query is how to capture performence benifits after rebuilding of indexes??
    Plz help me guyz....

    Hi,
    In our EBS,What is the application release? DB version?
    we have planned to rebuild the indexes.Why? Any specific reason? Do you have any performance issues?
    We got a script from metalink, which identfies the indexes which needed to be rebuild.
    My query is how to capture performence benifits after rebuilding of indexes??You should see the impact on the performance in general, especially when (opening the forms, entering new data, updating existing records, running concurrent programs, ..etc).
    One other way is to generate the TKPROF file for any scenario you have a performance issue with before and after running the script.
    Thanks,
    Hussein

  • After purging the data..is need to rebuild the index?

    Hi All,
    In our production DB,Application level incidents Purging got finished.(Mean first 3 years data got purged,which is not usable by client.This is done for performance issue)
    Now in this situation,Is necessary to rebuild the index?
    Before that FYI,
    oracle 9i(Enterprise Edition)
    hp-ux b11
    dbsize=30G
    Application:
    tool:HP-ov
    Please throw your input.
    Thanks in advance :-)
    Regards,
    DB.
    Edited by: DB on May 21, 2013 11:26 PM

    >
    In our production DB,Application level incidents Purging got finished.(Mean first 3 years data got purged,which is not usable by client.This is done for performance issue)
    Now in this situation,Is necessary to rebuild the index?
    >
    Please clarify.
    You said you did the purge for 'performance issue' and now, after the purge, you still don't know if your performance issue went away?
    If you no longer have whatever (unknown to us since you didn't post it) 'performance issue' you had then why do you need to do anything?
    If you do still have a performance issue then you need to follow the same steps you should follow whenever you have a performance issue:
    1. validate that you REALLY have an issue
    2. determine the cause of the issue
    3. identify solutions to mitigate/eliminate the issue
    4. test one or two of the possible solutions
    5. implement your 'best' tested solution from step #4
    6. go back to step #1
    Based on what you posted it sounds like you implemented a 'purge' without really knowing that it was even necessary or was even causing a performance issue.
    And you make no mention at all of whether you recollected statistics after the purge was done.

  • I have partitioned my tables, do I need to rebuild the indexes of the table

    Hello,
    I have partition very huge tables, by using rage partition method. After that few queries taking more time than before. Does the old indexes needs to rebuild?
    Thanks

    929941 wrote:
    Hello,
    I have partition very huge tables, by using rage partition method. After that few queries taking more time than before. Does the old indexes needs to rebuild?
    ThanksWhat do you think?
    By the way, how did you partition existing tables? Did you use dbms_redefinition, or did you use CTAS, or some other method?
    I love RAGE partitions. You should always always partition your rage.

  • How CSSCAN determines which indexes need to be rebuild ?

    Hi everybody,
    i'm currently migrating 3 Oracle databases that contain CP1252 characters unproperly stored in WE8ISO8859P1 instances.
    The key steps of the migration are :
    1. ALTERing CHARACTERSET to WE8MSWIN1252
    2. changing CHARACTER SEMANTIC LENGTH for CHAR and VARCHAR2 columns
    3. truncating data stored in VARCHAR2(4000) columns
    2. Full export
    3. Full import in a ALL32UTF8 instance
    To do all of this (and especially the step 3), i use the CSSCAN utility (very practical !!!).
    And i have a question about CSSCAN: how CSSCAN determines which indexes need to be rebuild. What is the logic ?
    Looking at the CSSCAN report, i have a lot of cells/columns that are affected by the characterset migration, and i have just a few index to rebuild.
    Why would i like to understand the logic ? Because i would like to rebuild ONLY indexes that REALLY need to be rebuilt and i am not sure that all the indexes specified by CSSCAN really need to be rebuilt.
    Thanks for any information about that.
    (and sorry for my english)
    NB: i have managed "function-based indexes" specifically: i drop them before the export, and i recreate them after the import. So my question mostly target the "regular indexes"

    1. All indexes whose key contains at least one character column with convertible or exceptional data, excluding indexes with names equal to some constraint name for the same owner.
    plus
    2. All functional indexes on tables that have columns needing conversion, excluding indexes with names equal to some constraint name for the same owner.
    The condition regarding constraints does not seem to be very fortunate but it comes from times when the appropriate flag in index metadata was not yet available.
    But note that in your migration scenario, you do not actually have to care much about indexes. Step 1 & 2 do not need any modifications to the user data and hence to index contents. Step 3, if done through UPDATE, will modify affected indexes automatically. Step 4 does not affect the database. Step 5 will recreate all existing indexes anyway.
    -- Sergiusz

  • Do I need a more recent mac mini to use my iphone 4 with.  Im unable to download snow leopard because my mac mini is older. Do I need to get a new mac or is there something else i can do

    Do I need a more recent mac mini to use my iphone 4 with.  Im unable to download snow leopard because my mac mini is older. Do I need to get a new mac or is there something else i can do

    Get Leopard.
    System Requirements
    Apple ID (required for some features)
    Internet access6
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.5.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.5 or later (free download fromwww.itunes.com/download)
    http://www.apple.com/iphone/specs.html

  • I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either i can have all the Style in Bold Text or in Kursiv Text :(

    I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either I can edit a Style only in Bold Text or in Kursiv Text
    I make you an example to clear what I really need:
    Index
    Introduction
    I. Leonardo's Monnalisa
    II. Leonardo's Battaglia
    Bibliography
    Please HELP HELP HELP

    What version of Pages are you referring to?
    Basically if you are talking about the Table of Contents in Pages and want to have different character styles within paragraphs in the T.O.C. you will have to export the T.O.C. and bring it back in as text and change that.
    Peter

  • HT2534 Hello! I have a problem with a credit card. I bought one program, after that i wanted buy one more, but it wrote that with my card something wrong. After that i wanted change my card (VISA) on "NONE". But there no NONE! I can't download FREE apps!

    Hello! I have a problem with a credit card. I bought one program, after that i wanted buy one more, but it wrote that with my card something wrong. After that i wanted change my card (VISA) on "NONE". But there no NONE! I can't download FREE apps! Than I wanted make new account and select NONE, but there no NONE, there only cards. Help, please!

    Hey Shamannnig!
    Here is an article that can explain a little more about this situation:
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/ts5366
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • "Hi,I need a help something wrong happen with my ITunes ,during to the download progress,after few seconds is report ; U can not download,err" in Using iPad • 0 bookmarks

    "Hi,I need a help something wrong happen with my ITunes ,during to the download progress,after few seconds is report ; U can not download,err"
    in Using iPad •

    It's better to post the URL of the feed (as you have subsequently done) than the contents of the feed .
    From the FeedValidator report the feed is basically OK for iTunes. There are several occasions where 'content:encoded' sections (following immediately on 'guid' tags) should be enclosed in
    <description>...</description>
    tags: however all this will be ignored by iTunes anyway and only applies to other readers. The 'potentially dangerous content' referred to by FeedValidator is within the 'content:encoded' tags and so isn't relevant to iTunes. They are referring to an inline css style, and I don't know whether this might cause a problem elsewhere.
    You should really have a language tag, e.g.
    <language>en-us</language>
    (you have a dc:language tag but that's for a different system). This should be placed in the top section, before the first 'item' tag.
    It's advisable to have an 'itunes:explicit' tag for each 'item' -
    <itunes:explicit>yes IF CONTAINS ADULT MATERIAL, OTHERWISE no</itunes:explicit>
    it's not compulsory if you have no adult material, but you must have a 'yes' if you do.
    You can check your feed by subscribing in iTunes from the 'Advanced' menu - this has the same result as clicking the 'Subscribe' button on the Store page. If it works OK there you are ready to submit it.

  • HT201250 After setting up my time capsule, I noticed that my iphoto library and music was not backed up.  The documents and .jpg's was back up, do I need to do something else in the set up?

    After setting up the time capsule, and completing a full back up, I noticed my iphotos and music was not backup.  I have all my documents and .jpg files but no music from Itunes or photos from iphoto?  Do I need to set something else up?

    Can I ask you how you know your photos and music are not backed up?
    Open a Finder window to your Pictures folder (you should see your current iPhoto Library file). Go to the Time Machine icon in the menubar, then click Enter Time Machine to use the TM interface, and go back in time to a random point. Is the iPhoto Library file still there? If so, it's being backed up.
    If not, is there any chance you've excluded those folders from TM preferences? Click Options on the TM system preference panel and see if you have exclusions.
    Matt

  • Index still fragmented after rebuild

    I have a database 2008R2 with 97% of average fragmented index and page counts = 164785 and the index table is more than 300,000 rows.
    I use the ola.hallengren script to optimize index and the stat above provided by the IndexCheck.sql script.
    My question is why after the index fragmentation above has been rebuilt the fragmentation is very much the same as before. The indesc has been rebuilt because it's lager than 30% and page count is larger than 1000 .
    However, if a copy of that database has been restored on a different server, the fragmentation is much below than 30%.

    Results with the headers
    name
    is_primary_key
    is_unique
    index_depth
    index_level
    fragment_count
    page_count
    record_count
    avg_fragment_size_in_pages
    avg_fragment_size_in_pages
    avg_page_space_used_in_percent
    PK_zfAuditTStudentClass
    1
    1
    3
    2
    1
    1
    578
    1
    1
    92.80948851
    PK_zfAuditTStudentClass
    1
    1
    3
    1
    462
    578
    197354
    1.251082251
    1.251082251
    54.81539412
    PK_zfAuditTStudentClass
    1
    1
    3
    0
    4504
    197354
    34734021
    43.81749556
    43.81749556
    99.99919694
    IX_zfAuditTStudentClass
    0
    0
    4
    3
    1
    1
    5
    1
    1
    1.519644181
    IX_zfAuditTStudentClass
    0
    0
    4
    2
    5
    5
    852
    1
    1
    52.60686929
    IX_zfAuditTStudentClass
    0
    0
    4
    1
    847
    852
    166236
    1.005903188
    1.005903188
    60.23989375
    IX_zfAuditTStudentClass
    0
    0
    4
    0
    163026
    166236
    34734021
    1.019690111
    1.019690111
    51.60465777

  • Rebuild unusable indexes

    Hi,
    I am creating a patch for re-building unusable indexes, after splitting partition on a table.
    1. I am spooling the following alter constructs based on dba_indexes:
    select 'alter index '||owner||'.'||index_name||' rebuild online ;' from dba_indexes
    where status = 'UNUSABLE' ;
    My question is: my indexes are listed in dba_indexes and not in user_indexes.
    Am I correct to look in dba_indexes for unusable indexes? What's the difference between dba_indexes and user_indexes?
    2. After splitting a partition on a table I am doing the following:
    - compile invalid objects
    - rebuild unusable indexes
    Do I need to do fix anything else after splitting a partition?
    Thank you.

    if your indexes are not on the USER_INDEXES it means you are trying to rebuild someone else's indexes. So you should have privileges for that. If you are the DBA, or were properly granted privileges, then you can do it.
    Automatic compilation takes place for the invalid database objects in case a DDL took place, and as long as the object signature has not changed the procedures will successfully compile, but you can proactively compile them either way, this will save you time when the related procedure will be executed.
    unless the original motivation relates to something else, it is ok if you want to split partitions, but if you are required to perform this in batch this would let me know you are not aware of the system growth, so technically speaking it is fine, but from the capacity planning point of view, IMO, you should do more work to forecast partition growth requirements.
    ~ Madrid
    http://hrivera99.blogspot.com

  • How much time it take to rebuild an index for a table with 20 millions rows

    Hi all,
    i need to rebuild the index of a table containing 20 000 000 row (i don't know why the other people working on this didn't think of rebuilding the index regularly, because i asked and apparently it has never been done :cry: :cry:) i am not a sql developper nor a DBA so i can't mesure how long it take to rebuild the index, does any one have an idea (aproximativly of course :aie:), the other question is there any formula to use in order to calculate how often to rebuild the indexes (i can for example retieve how much rows are delated or inserted daily ...)
    Thanks again
    Taha

    taha wrote:
    :aie: that's why i am asking because i don't know (and to be sure which solution is best)
    so the table is like this (the columns) :
    45 varchar2, 5 timestamp, 30 Number no LOB columns, (15 indexes : 5 unique indexes and that those indexes uses at a maximum 4 columns)15 indexes - 100,000 deletes: this could mean 1,500,000 block visits to maintain index leaf blocks as the table rows are deleted. If you're unlucky this could turn into 1,500,000 physical block read requests; if you're lucky, or the system is well engineered this could be virtually no physical I/O. The difference in time could be huge. At any rate it is likely to be 1,500,000 redo entries at 250 - 300 bytes per entry for a total of about 400MB of redo (so how large are your redo logs and how many log switches are you going to cause).
    yes the tables is used by an application so (update, insert ) can take place at any time
    for the deletion , there is the batch which does a mass delete on the table ( 4 or 5 time each day)
    You haven't answered the question - how long does it take to do a sample batch delete.
    If you can enable SQL tracing, or take a before/after snapshot of v$sesstat or v$session_event for the session as it does the delete then you can get some idea of where the time is going - for all you know it might be spending most of its time waiting for a lock to do away.
    >
    "How many leaf blocks are currently allocated to the index(es) ?" how can i answer to this question ? may be if i check the all_objects table ?
    If you keep your statistics up to date then dba_indexes is a good place, cross-checked with dba_segments, and you can use the dbms_space package for more detail. I have a code sample on my blog which allows you to compare the current size of your indexes with the size they would be if rebuilt at some specific percentage: http://jonathanlewis.wordpress.com/index-sizing/ (It's such good code that Oracle Corp. has copied it into MOS note 989186.1)
    Regards
    Jonathan Lewis

  • Create index is taking more time

    Hi,
    One of the concurrent program is taking more time , We generate the trace file and found that the create index is taking more time.
    Below is from the trace file and such type of index creation is happening lot of time in Oracle standard program.
    Can somebody let me know why there is a big difference between cpu and elapse time.
    We are seeing the PX Deq: Execute Reply Event as well.look idle time for database.
    Please let me know which parameter of the database is affecting this.
    CREATE INDEX ITEM_CATEGORIES_N2_BD9 ON ITEM_CATEGORIES_BD9(CATEGORY_SET_ID,
    SR_CATEGORY_ID,ORGANIZATION_ID,SR_INSTANCE_ID) PARALLEL TABLESPACE MSCX
    STORAGE( INITIAL 40960 NEXT 33554432 PCTINCREASE 0) PCTFREE 10 INITRANS 11
    MAXTRANS 255
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 3 0 0
    Execute 1 0.35 364.82 131168 117945 60324 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.35 364.83 131168 117948 60324 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 80 (recursive depth: 2)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    reliable message 1 0.00 0.00
    enq: KO - fast object checkpoint 1 0.01 0.01
    PX Deq: Join ACK 6 0.00 0.00
    PX Deq Credit: send blkd 112 0.00 0.01
    PX qref latch 7 0.00 0.00
    PX Deq: Parse Reply 3 0.00 0.00
    PX Deq: Execute Reply 604 1.96 364.42
    log file sync 1 0.00 0.00
    PX Deq: Signal ACK 1 0.00 0.00
    latch: session allocation 2 0.00 0.00
    Regards,

    user12121524 wrote:
    CREATE  INDEX ITEM_CATEGORIES_N2_BD9 ON ITEM_CATEGORIES_BD9(CATEGORY_SET_ID,
    SR_CATEGORY_ID,ORGANIZATION_ID,SR_INSTANCE_ID) PARALLEL  TABLESPACE MSCX
    STORAGE(  INITIAL 40960 NEXT 33554432 PCTINCREASE 0) PCTFREE 10 INITRANS 11
    MAXTRANS 255
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          3          0           0
    Execute      1      0.35     364.82     131168     117945      60324           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.35     364.83     131168     117948      60324           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 80     (recursive depth: 2)
    Elapsed times include waiting on following events:
    Event waited on                             Times   Max. Wait  Total Waited
    ----------------------------------------   Waited  ----------  ------------
    reliable message                                1        0.00          0.00
    enq: KO - fast object checkpoint                1        0.01          0.01
    PX Deq: Join ACK                                6        0.00          0.00
    PX Deq Credit: send blkd                      112        0.00          0.01
    PX qref latch                                   7        0.00          0.00
    PX Deq: Parse Reply                             3        0.00          0.00
    PX Deq: Execute Reply                         604        1.96        364.42
    log file sync                                   1        0.00          0.00
    PX Deq: Signal ACK                              1        0.00          0.00
    latch: session allocation                       2        0.00          0.00
    What you've given us is the query co-ordinator trace, which basically tells us that the the coordinator waited 364 seconds for the PX slaves to tell it that they had completed their tasks ("PX Deq: Execute Reply" time). You need to look at the slave traces to find out where they spent their time - and that's probably not going to be easy if there are lots of parallel pieces of processing going on.
    If you want to do some debugging (in general) one option is to add a query against V$pq_tqstat after each piece of parallel processing and log the results to a named file, or write them to a table with a tag, as this will tell you how many slaves were involved, how, and what the distribution of work and time was.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan

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

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

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

Maybe you are looking for

  • Multiple devices on my pc

    HELP!!!long story but i'll try and keep it short, had my ipod since june2007 and i love it,never had any problems until my partner put hers on my pc and now mine comes up that its a device and not the main one and i dont know how to get rid of all he

  • Unable to access calendar, because the calendar server is not running.

    Hello everyone. I'm new in posts (not in read them) and I need some help. This subject message appears when I try to access my iCal on Wiki Page. We have here 2 Intel xServers, one with Web and features and other with Gateway and network management.

  • Import from Excel file not picking up WBS

    I believe I understand the mechanics of exporting activities to create a template to use for adding new activities to an existing project via a subsequent import. And it seems to work, i.e. I end up with new activities in my existing project. BUT....

  • Mail Button with alternate recipients

    I am a newbie to this (approx 2 weeks), but am gaining confidence with every step! I am designing a form that goes to clients, abd obviously a Mail button is required. However, the E-Mail address of the button can be one of 4 people, and the client c

  • Dimension tables and BPS performance

    Hi gurus! I have read a few guides about BPS performance here in SDN but haven't found any guidelines how to implement transactional infocubes in an effective way when it comes to performance. Should I configure the dimensions so that all variable ch