Best way to rebuild all the indexes in a schema

Hi,
DB : 9.2.0.7 (TEST Instance)
OS : HP-UX Itanium 11.23
we have TEST schema which contains 1960 Tables and 1800 Indexes.
we have requirement to rebuild all those indexes.
what is the best way to do this task?
Note: This TEST schema was created and imported with PROD schema of Production ( Schema wise import)

Sybrand has a very valid point, rebuild for what purpose? If it is performance you are likely wasting most of your effort thought there are cases where an index rebuild will help performance of specific queries though sometimes what you gain on a select may be paid for on an insert due to the rebuild resulting in splitting being required to support the insert.
If the hope is for performance before rebuilding the indexes update the statistics.
If you must rebuild the easiest way to to generate alter index owner.index_name rebuild commands via SQL and spool these to a file perhaps on a per tablespace basis. The you check the amount of space available in the tablespace to see if if will support rebuilding in place. If yes, great, just add a few commands to the script to echo the commands, show the timing, spool the results, etc.... If not, then you need to generate drop and re-create DDL for those indexes that cannot be rebuilt in an attempt to create the space necessary for the remaining indexes to use rebuilds.
HTH -- Mark D Powell --

Similar Messages

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I had to reset my iphone 5 today because of software issues. what is the best way to restore all my apps?

    I had to reset my iphone 5 because of corrupt software issues. now I am trying to restore my apps. So are returning. Some are not. Some are making me pay for them again! What is the best way to restor all the apps?

    Sync them from your computer back to the iphone

  • Best way to integrate all services

    TO ALL:
    Please Help me figure this mess out.
    We use the following services for our business
    Windows InTune
    Office 365
    SQL Azure
    Dynamic CRM Online
    I would like to (hopefully) combine all administration functions and portals of these sites.  Although I am running dated Server OS's (mostly server 2003 R2) I am hoping to upgrade to 2012 this calendar year.  That is why I have not looked into
    all the AD sync services at this time. 
    Hopefully someone has gone through this - and can advise the best way to merge all the information together.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • BRSPACE to compress all the index

    Dear expert,
    Currently , no table no index is compressed in our ECC.
    So we want to first compress all the index then later will thinking about compress the TOP 20 tables.
    i would like to run the following scripts
    brspace -u / -c force -f idrebuild -o sapsr3 -s PSAPSR3 -i allsel -c cind -ic ora_proc -p 4
    But do you suggest i'd rather compress all the index by brspace table reorg?
    Do you suggest i run the index compression directly on productive system ?
    Thank you!

    Hi Kate,
    You can perform index compression online on Production provided you are performing it during low load period as it may impact performance.
    Refer SAP note for more details on the options available with brtools to perform index compression
    1464156 - Support for index compression in BRSPACE 7.20
    Alternate option is available.
    You may perform table compression which will automatically rebuild all the indexes for that table. Refer SAP note
    1907700 - Different approach to compress tables
    Hope this helps.
    Regards,
    Deepak Kori

  • I am trying to rebuild my iPhoto library and noticed my backup contains aliases (pointers?) and not the actual file. What's the best way to rebuild my library?

    I am trying to rebuild my iPhoto library and noticed my backup contains aliases (pointers?) and not the actual file. What's the best way to rebuild my library?
    Facts:
    In moving to a new iMac, I copied the iPhoto library to an external HDD assuming that I would point the new iMac to the backed up iPhoto Library
    All worked fine when I pointed the new library but noticed that some folders contained aliases and not the original file. So when I attempt to open that photo it can't find it because the alias is pointing to another drive.
    I do have all original photos from a couple of external HDDs. In the folders titled, "Originals" (from older versions of iPhoto) and "Masters" (from current iPhoto)
    I'm thinking I can create a new folder and drop the original files and make that my new iPhoto library. Is there a better way to rebuild my library? I do not want to create any future aliases.
    Thanks in advance for any help!

    do you have a strongly recommended default "managed" library (the iPhoto preference to "copy imported items to the iPhoto library is in its checked state) or a referenced library - you have unchecked that option?
    It sounds like you have a referenced library and are now experiancing one of the very siginificant drawbacks of a referenced library and one of the many reasons they are strongly not recommended
    Also note that iPhoto '11 may use alises in the originals folder as part of the upgrade
    It is important that we understand exactly what you have and what is not sorking - what error messages you are getting
    You must NEVER make any changes of any sort to the structure of content of the iPhoto library - there are no user servicable parts in it  --  and you can not rebuild yoru librtary - only iPhoto ir iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  can rebuild a library unless you are a SQL programmer and understand the structure that iPhoto uses
    LN

  • Can anybody please suggest the way i can get all the indexes on a cache

    Can anybody please suggest the way i can get all the indexes on a cache?

    Hi,
    If you want to just see what there is at the moment, the StorageManager mbean IndexInfo attribute shows the toString() representation of the extractor of each index.
    If you want to get it programmatically, you can get hold of it by sending an entry-processor to a key, then casting the entry to BinaryEntry, and calling BinaryEntry.getBackingMapContext().getIndexMap() to get the same Map<ValueExtractor,MapIndex> of indexes which the index aware filters get.
    Best regards,
    Rob

  • What's the best way to import ALL of my photos (34k +) and then share?

    *Part I - importing:*
    I've got approximately 34,400 photos on a networked drive that I need to be able to control using iPhoto. I want these files to stay on the network drive, but also be controlled by iPhoto (organized by date). Right now our photos folder on the network drive is a bit of a mess, some folders are named by date only and some are named by the event itself ("birthday 2009", etc.). I want this naming to go away in place of the iPhoto method (by date only). FYI, I am familiar with how to get to the "original" and "modified" folders/files within the iPhoto Library.
    Question: Is there a way to get iPhoto to organize the photos (all by date) an leave the original photos on the networked drive? or do I need to:
    > Import ALL photos into my iPhoto with the "import photos into iPhoto Library" option checked (iPhoto copies all original files to my laptop hard drive)
    > Then manually move the file structure (all new folders created - by date) back to my networked drive
    > THEN...remove all photos from the iPhoto Library and re-import the newly organized photos from the network drive but unchecking the "import photos into iPhoto Library" option.
    Right now, both of our MacBook Pro's use iPhoto to access those photos independently of one another (each laptop does their own thing). This also creates problems because when files are imported on my laptop they are saved locally (on my laptop) and not on the network drive, same goes for my wife's laptop. Then she's not able to see those new photos.
    *Part II - sharing:*
    I'm also in the process of trying to figure out the best way to share all of our photos between our different laptops. Using the "sharing" function in iPhoto isn't ideal since that requires both laptops to be on.
    My understanding of sharing the iPhoto library itself (having it saved on the networked drive) between two laptops is that only one laptop can access this library at a time, or there's potential of having the files become corrupt (two laptops trying to access the file at the same time).
    Question: What's the best way to share photos between two laptops?
    Thanks in advance

    RONBO
    Is there a way to get iPhoto to organize the photos (all by date) an leave the original photos on the networked drive?
    Yes there is. But I don't recommend it as a way of working with iPhoto.
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    However, you need to be aware of a number of potential pitfalls using this system.
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    The problems arise when you change the path to the Files. iPhoto has no way of reconnecting that path and you could find yourself resolving aliases one at a time for all 34k Photos.
    Other apps, such as Aperture have a command to re-connect with the master files.
    FYI, I am familiar with how to get to the "original" and "modified" folders/files within the iPhoto Library.
    Good for you but never, ever access the files this way. Period. Within the iPhoto Package File there are no user sercviceable parts.
    All your work gets done in the iPhoto Window. Everything you need to do can be done from there - and must be.
    Then manually move the file structure (all new folders created - by date) back to my networked drive
    Never, ever break up the internals of the iPhoto Package File. You'll break iPhoto if you do.
    Also, what format is that Networked Drive? iPhoto needs to have the Library sitting on disk formatted Mac OS Extended (Journaled). Users with the Library sitting on disks otherwise formatted regularly report issues including, but not limited to, importing, saving edits and sharing the photos.
    Question: What's the best way to share photos between two laptops?
    If simultaneous sharing is your goal then you need to use a Media Server app. iPhoto isn't one.
    The key really is the format of the NAS. IF you can make it Mac OS Extended (Journaled) then you can easily store your Library on it and share it. Otherwise you need to use another application for the job.
    Regards
    TD

  • I just bought a new Macbook. What's the best way to transfer all my info from the old one?

    Hey everyone! I just got my new retina display Macbook Pro, and I'm trying to figure out the best way to transfer all my music/photos/files/data/etc. from my old Mackbook Pro. I have a 1TB external drive and an 8GB flash drive that I can use if I need to. Any sugestions? Thanks!

    What i did with mine, I cloned the drive of my old macbook to my external drive using carbon copy cloner.
    Once i was done with the clone - i used migration assistant to transfer my apps/data/pictures/files over my new macbook....
    when using migration assistant - do not transfer your old settngs and if you're doing an app transfer, only transfer the ones you need and that you know will work with your Retina...
    good luck..

  • What's the best way to backup all of my music and pictures?

    I have a Mac Mini with the Super Drive and i was woundering which is the best way to back all of the music that i have bought from iTunes and pictures i have in iPhoto, that way in case my Hard Drive crashes or i buy a new Mac Mini i can just transfer the files onto the new Hard Drive, is buying a iPod Video or a external hard drive be the best thing to do or can i just burn everything on a DVD-R?
    Thank you.

    Wow, that sounds pretty easy, just drag and drop, but what exactly did you mean when you said "When restoring your data, ensure that all the iTunes and iPhoto files are restored before launching those applications"
    What i was going to do is just copy (restore) all the data onto a external HD or a DVD-R and then make sure iTunes and iPhoto still has the same number of files and then i would check the DVD-R or the external HD to make sure that the files have been copied, right?
    One more question, most of my music on iTunes was bought from the iTunes Music Store, will it still copy?

  • What's the best way to handle all my data?

    I have a black box system that connects directly to a PC and sends 60 words of data at 10Hz (worse case scenario). The black box continuously transmits these words, which contain a large amount of data that is continuously updated from up to 50 participants (again worst case scenario) 
    i.e. 60words * 16bits * 10Hz * 50participants = 480Kbps.  All of this is via a UDP Ethernet connection.
    I have LabVIEW reading the data without any problem. I now want to manipulate this data and then distribute it to other PCs on a network via TCP/IP.
    My question is what is the best way of storing my data locally on the interface PC so that I can then have clients request the information they require via TCP/IP. Each message that comes in via the Ethernet will relate to one of the participants, so I need to be able to check if I already have data about that participant - if I do then I can just update it, if I don't I need to create a record for the participant, and if I havn't heard from one for a while I will need to delete it. I don't want to create unnecessary network traffic. I also want to avoid global variables if possible - especially considering that I may have up to 3000 variables to play with.
    I'm not after a solution, just some ideas about how to tackle this problem... I thought I could perhaps create a database and have labview update a table with the data, adding a record for each participant. Alternatively is there a better way of storing all the data in memory besides global variables?
    Thanks in advance.

    Hi russelldav,
    one note on your data handling:
    When  each of the 50 participants send the same 60 "words" you don't need 3000 global variables to store them!
    You can reorganize those data into a cluster for each participant, and using an array of cluster to keep all the data in one "block".
    You can initialize this array at the start of the program for the max number of participants, no need to (dynamically) add or delete elements from this array...
    Edited:
    When all "words" have the same representation (I16 ?) you can make a 2D array instead of an array of cluster...
    Message Edited by GerdW on 10-26-2007 03:51 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I have a PPC iMac 10.4.11 and will shortly buy a new i Mac.  What is the best way to transfer all my HD date from old to new? Thank you!

    I have a PPC iMac 10.4.11 and will shortly buy a new i Mac.  What is the best way to transfer all my HD date from old to new? Thank you!

    Migrating from PPC Macs to Intel Macs:
    https://discussions.apple.com/docs/DOC-2295
    How to use Migration Assistant:
    http://support.apple.com/kb/HT4413?viewlocale=en_US
    http://support.apple.com/kb/TS1963
    Troubleshooting Firewire target disk mode:
    http://support.apple.com/kb/HT1661

  • What is the best way to remove all info from a MacBook Pro before passing it along to someone else?          passing it on to someone?

    What is the best way to remove all info from a MacBook Pro before passing it on to someone else?

    Read this: http://www.tuaw.com/2010/09/24/mac-101-preparing-your-old-mac-for-sale-or-recycl ing/

  • What is the best way to transfer all of my data from my iPod touch 3rd generation to my iPhone 4s?

    I have a 3rd generation iPod touch, and now I am getting an iPhone 4s. What is the best way to transfer all of my data, including paid-for apps and music, from the iPod to the iPhone without losing anything? Can I just do it through iTunes or the iCloud? I have never used iCloud before.

    Follow the directions here:
    http://support.apple.com/kb/HT2109

  • Whats the best way to transfer all my music and i tunes library from an old xp pc to new one when the old one wont take the latest version of itunes

    whats the best way to transfer all my music and i tunes library from an old xp pc to a new one when the old one wont take the latest version of iTunes.

    iTunes- How to move the library to an EHD

Maybe you are looking for

  • Can I open Lightroom without upgrading my catalog?

    Unfortunately I'm not sure how to do a screen capture, so I'll try to type what I'm seeing. When I click on the LIghtroom icon, I get a message box that says "Please upgrade the catalog file "Lightroom Catalog 3" for use with Lightroom 3.  It continu

  • Java applet coonectivity to ms access

    Hi friend i'm new to sun forums. Java applet troubling me a lot while i try to coonect it with ms access. the code of the program is as follows:- Ao.java import java.sql.*; import java.io.*; import java.awt.*; import java.awt.event.*; import java.app

  • Reader XI and Outlook 2010 Quick Print

    Hi, when I upgraded to adobe reader XI (11.0.06) I got this error in Outlook 2010. When clicking quick print I get a choose default program dialog box. The associations are correct and they work within windows, and even if I just click open within ou

  • Problems syncing photos; they sync in random order not date order.

    Since updating my iPad 2 to iOS 5 my photos won't sync in date order within their folders. They used to stay in the same date order as they are on my PC before the update. I've tried deleting all photos and then putting them all back on but no luck.

  • Error when trying to .clear() or .removeAllElements() in 2D vectors

    hi, vectorA is the big vector and it contains a vectorB. i will like to built a 2D vector. However it happens that when i try to use a vectorB.clear() or vectorB.removeAllElements(), so that i can push in elements again in a fresh vector. Nothing was