Limiting index rebuild time

Is there a way to limit the time a rebuild index command will run so it will die at a specific time or after a given interval so as not to interfere with a scheduled job?
Joe Torre DBA III County of Riverside, CA

Joe,
Great, thank you for the information.
First, an index rebuild can be done online or offline... but either way, if it's killed then all of the work done is lost. It's all or nothing with a rebuild.
What I would suggest to you is two things:
1. Only perform maintenance on the indexes that absolutely need it. This can be done by investigating sys.dm_db_index_physical_stats()
2. During your maintenance windows (though it's an online operation so it could be done all day) reorganize the indexes. If you need to kill it, the progress stays. It can be used in an iterative fashion as the progress is not lost, even if it's killed.
When you notice you have a good amount of internal or external fragmentation even after reorgs are complete, that's when you will need to do a rebuild and if you can only get so many done at a time so be it.
One last thing I'd like to leave you with. Since T-SQL is completed step by step in a batch, you may want to create something using service broker that can rebuild the indexes. This way you can control how many outstanding items there are at once and take
into account hardware such as CPU and Disk IO, etc. The service broker part allows the procedures to be run asynchronously. That would allow you to potentially get through many more index rebuilds than running them all in one script, potentially, if your hardware
is beefy enough and the server activity is low.
I hope this helps.
Sean Gallardy | Blog |
Twitter

Similar Messages

  • How to find out Index Rebuild times?

    Hi,
    We have many indexes but I can't find out when they were rebuilded last. Is it possible to find index last rebuild time?
    db version: 9.2.0.8
    Regards and thanks

    Query for LAST_DDL_TIME in DBA_OBJECTS / USER_OBJECTS for those indexes.
    Hemant K Chitale

  • Thunderbird is indexing every time I click on a message (slow). I've deleted global-messages-db.sqlite. compacted. let it rebuild the db. Version 24.4

    thunderbird is indexing every time I click on a message (slow). I've deleted global-messages-db.sqlite. compacted. let it rebuild the db. Version 24.4
    McAfee shield stays busy the entire time it's indexing. I also deleted about 80% of the messages it was trying to reindex. No joy.
    Thanks

    I have been having this same problem: but it does not appear to have been due to my antivirus (Comodo). In my case the system is not just slow: the indexer seems to hang permanently. I suspected file corruption in one of my inboxes. But, whereas the Activity Manager gives the name of the sub-folder it is currently working on, it does not appear to report the name of the inbox.
    So to trace the corrupt file I had to keep moving emails from my inboxes to sub-folders until the system was able to give me the name of the sub-folder it was working on. Then, by shuffling emails between folders, I was finally able to identify the offending message. This was extremely tedious and time-consuming, as I had to restart Thunderbird every time I did a reshuffle in order to re-initialise the indexing process. The culprit turned out to be a copy of a phishing email I had previously reported. I'm guessing it contained intentionally bad data that confused the indexing system.
    However, it seems that this wasn't the only corrupt file: so I've yet to test all my other inboxes when I've got several more hours available,
    A problem like this would be much easier to trace if the indexer always clearly identified which folder it was examining or attempting to index, e.g. by prefixing the inbox with the mailbox folder name. That way one could tell immediately which inbox or sub-folder was the source of the problem.

  • Lost the ability to Spotlight Index my Time Machine drive

    I have an external, Firewire Time Machine drive which has been working without problems up to now. This evening I had a backup which hung up in the "preparing" stage (no file transfers begun yet). When I went to look in the console, there was a device error apparently related to trying to detect the powered-on state of my Time Machine drive. Apparently Time Machine did not handle this gracefully. In the course of trying to clear that I got into a state where I had to force shutdown of the system (holding the power button). (I accidentally clicked on the Time Machine icon which got hung up trying to display the histories, and left me with no access to the Desktop....)
    Things appeared to check out fine when I brought the machine back up (including Verify Disk of both the main and Time Machine drives and Repair Permissions of the main drive), and I finally did a Back Up Now in Time Machine. Due to the forced shut down, this became a "Deep Traversal" "preparing"stage. We'll I've seen those before, so no worries. However it lasted quite a bit longer than it should, at which point I noticed that Spotlight was indexing the Time Machine drive.
    So at this point I dragged the Time Machine into the Spotlight Privacy list. Rather than going away completely as I expected, the indexing of the Time Machine drive apparently went into some sort of clean-up phase that said it was still indexing for another 5 minutes (where it had, just prior, said it was going to be indexing for another 2 hours). The progress bar advanced normally as if it really did do 5 minutes more of indexing of the Time Machine drive. I've not seen this before
    When that finished, the backup which had been "preparing" during all of this also finished "preparing", transferred the several MB of files I expected, and finished normally. There were no errors in the console related to any of this.
    I rebooted, and once again did a pair of Disk Verifies and a Repair Permissions without problems. Opened up the console to track things, and poked around in the Time Machine. All was normal as far as I can tell. I also explored the Time Machine drive via the Finder. No problems.
    So I now went into Spotlight Privacy and removed the Time Machine drive from the privacy list expecting it to do the re-indexing I had stopped above. Spotlight started indexing the drive and a couple seconds later it stopped. I tried again -- into and out of privacy -- same result, a couple seconds of indexing and then it stopped.
    At this point I noticed the console was saying I had some bus errors in the I/O system, and that's what was terminating the md worker process and stopping the indexing.
    So I shut down, unplugged the Time Machine drive, and went through my maintenance ritual.
    I reset the PMU (this is a powerbook), reset PRAM, booted once in Safe Mode, booted normally, and ran Disk Utility again to Verify and Repair Permissions on the main hard drive. All of that went without a hitch. No failures, faults or funnies.
    I ran through the list of Applications I use, keeping an eye on the console. Again no problems.
    So I shut down, plugged the Time Machine drive back in and booted back up. I put the drive into Spotlight Privacy and turned off Time Machine backups. I then did a Verify Disk on that drive. No problems. I went into the Time Machine history display. No problems. And no problems looking at it in the Finder either. In particular, no bus errors or anything else funny in the console.
    I rebooted and did a new Back Up Now. It completed without problems. It was another Deep Traversal backup due to the Safe Mode Boot, but it went without a hitch. I rebooted and did another Back Up Now and got a normal speed incremental backup again without a hitch. The bottom line is that as far as I can see that Time Machine drive is working just fine.
    So I went into Spotlight Privacy and removed it from the list. Once again it started to index and stopped in a couple seconds. But this time there were NO Console error messages.
    I moved my main hard drive into Spotlight Privacy and removed it and it re-indexed from scratch just fine. Tried again with the Time Machine drive -- indexing stopped in a couple of seconds with no message in the Console. Spotlight searches find all the right stuff in the main drive. Spotlight and finder searches find only the top level Time Machine folders in the Time Machine drive.
    I also tried removing the Spotlight plist from my account's Library / Preferences. Spotlight created a new plist as expected but it still won't index that darned Time Machine drive.
    Apparently there is something left over from when I originally aborted the Spotlight indexing of that drive which is causing Spotlight to think it has no work to do. I'm not seeing any I/O errors of any sort any more (I think my maintenance pass took care of that) and Time Machine backups and history access continue to work just fine. And again, the Time Machine disk Verifies just fine.
    So I've run out of things to try.
    Is there a hidden file that I need to remove from that drive so that Spotlight no longer thinks it already has it indexed?
    --Bob

    Well unfortunately the command
    sudo mdutil -E /Volumes/MyDiskName
    didn't help.
    The command itself echoed the name of the volume and then said "Indexing Enabled", which looked good. But the Spotlight indexing stopped after a couple seconds. The Console reported the Terminal sudo command and nothing else.
    I tried moving the Time Machine drive in and out of Spotlight privacy and once again the indexing started and stopped a couple seconds later with no Console messages.
    I then tried another trick I've learned to make Spotlight indexing happen which is to do a Finder search for, say, all folders (limited to the one drive) via Command-f and while Including both System Files and files both Visible and Invisible. And indeed Spotlight indexing started but again stopped a few seconds later.
    However, this time there were console messages and a crash report.
    The Console shows (with personal information x'ed out):
    12/31/07 1:30:38 PM mds[28] (/)(Error) IndexCI in openindex_filelazy:open file error: 2, 0.indexGroups
    12/31/07 1:30:41 PM ReportCrash[146] Formulating crash report for process mds[28]
    12/31/07 1:30:42 PM com.apple.launchd[1] (com.apple.metadata.mds[28]) Exited abnormally: Bus error
    12/31/07 1:30:42 PM com.apple.launchd[1] (0x10ba40.mdworker[96]) Exited: Terminated
    12/31/07 1:30:42 PM com.apple.launchd[1] (0x1004a0.mdworker[108]) Exited: Terminated
    12/31/07 1:30:42 PM mds[147] (/Volumes/Xxxxxx Time Machine/.Spotlight-V100/Store-V1/Stores/80F3EC85-D77A-49FE-8BDC-BB7C3B3EC1CF)(E rror) IndexCI in ContentIndexOpenBulk:Unclean shutdown of /Volumes/Xxxxxx Time Machine/.Spotlight-V100/Store-V1/Stores/80F3EC85-D77A-49FE-8BDC-BB7C3B3EC1CF/0. ; needs recovery
    12/31/07 1:30:43 PM ReportCrash[146] Saved crashreport to /Library/Logs/CrashReporter/mds2007-12-31-133038Xxxxxx-Xxxxxx-Computer.crash using uid: 0 gid: 0, euid: 0 egid: 0
    The Crash Report reads as follows (again with personal information x'ed out):
    Process: mds [28]
    Path: /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Support/mds
    Identifier: mds
    Version: ??? (???)
    Code Type: PPC (Native)
    Parent Process: launchd [1]
    Date/Time: 2007-12-31 13:30:38.746 -0500
    OS Version: Mac OS X 10.5.1 (9B18)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000030
    Crashed Thread: 15
    Thread 0:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0000cfa0 0x1000 + 49056
    5 mds 0x00005580 0x1000 + 17792
    Thread 1:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 2:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 3:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 4:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 5:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 6:
    0 libSystem.B.dylib 0x92eda3ec _semwaitsignal + 12
    1 libSystem.B.dylib 0x92f16fa0 pthread_condwait + 1580
    2 mds 0x00009648 0x1000 + 34376
    3 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 7:
    0 libSystem.B.dylib 0x92ee0ea0 read$UNIX2003 + 12
    1 mds 0x000091b4 0x1000 + 33204
    Thread 8:
    0 libSystem.B.dylib 0x92f15438 kevent + 12
    1 mds 0x0007e584 0x1000 + 513412
    Thread 9:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 10:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 11:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 12:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 13:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.spotlight.index 0x00207f0c _handleExceptions + 208
    3 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 14:
    0 libSystem.B.dylib 0x92ed39d8 machmsgtrap + 8
    1 libSystem.B.dylib 0x92eda8fc mach_msg + 56
    2 com.apple.CoreFoundation 0x90214664 CFRunLoopRunSpecific + 1828
    3 mds 0x00059ab8 0x1000 + 363192
    4 mds 0x0005987c 0x1000 + 362620
    5 com.apple.Foundation 0x969c5d9c _NSThread__main_ + 1004
    6 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 15 Crashed:
    0 com.apple.spotlight.index 0x002046cc ContentIndexContainsContentByDocId + 204
    1 com.apple.spotlight.index 0x00164358 QueryFunctionCallbackContext::findContent(db_obj*, __CFString const*, char*, int) + 244
    2 com.apple.spotlight.index 0x001634d0 qpContentIndexMatch(datastoreinfo*, dblazyobj*, query_piece*, void*, int) + 328
    3 com.apple.spotlight.index 0x0015587c comparefile_againsttree + 828
    4 com.apple.spotlight.index 0x00155d30 comparefile_againsttree + 2032
    5 com.apple.spotlight.index 0x00155d5c comparefile_againsttree + 2076
    6 com.apple.spotlight.index 0x001e307c -[SISearchCtx isObjectInQuery:withQuery:shortcut:] + 144
    7 com.apple.spotlight.index 0x001fa268 -[SISearchCtx_FSWalk performSearch:] + 996
    8 com.apple.spotlight.index 0x001e2cbc -[SISearchCtx executeSearchContextCracked_2:jobNum:] + 136
    9 com.apple.spotlight.index 0x00177e80 siwork_queueprocess + 752
    10 com.apple.spotlight.index 0x0017811c sischeduleronce + 356
    11 com.apple.spotlight.index 0x0017816c sischeduleronce + 436
    12 com.apple.spotlight.index 0x001784f8 sischeduler_run_waitingtimeout + 640
    13 com.apple.spotlight.index 0x0016529c runLoop + 72
    14 com.apple.spotlight.index 0x00165308 query_runLoop + 32
    15 libSystem.B.dylib 0x92f15bf8 pthreadstart + 316
    Thread 15 crashed with PPC Thread State 32:
    srr0: 0x002046cc srr1: 0x0200f030 dar: 0x00000030 dsisr: 0x40000000
    r0: 0x002046a4 r1: 0xf09a4380 r2: 0x00000000 r3: 0x00000000
    r4: 0xf09a43c0 r5: 0x00000000 r6: 0x000074d1 r7: 0x00000000
    r8: 0x003fc080 r9: 0x00000000 r10: 0x00000000 r11: 0x44000444
    r12: 0x92ede094 r13: 0x00000000 r14: 0x00000000 r15: 0x00373410
    r16: 0x00000000 r17: 0x00239e98 r18: 0x00000001 r19: 0x00227b9c
    r20: 0x00000000 r21: 0x00245554 r22: 0x00000001 r23: 0x00000001
    r24: 0x00000000 r25: 0x00000005 r26: 0x00000000 r27: 0x00000000
    r28: 0x00000000 r29: 0x00000005 r30: 0xf09a43c0 r31: 0x00204610
    cr: 0x24000444 xer: 0x20000004 lr: 0x002046a4 ctr: 0x92ede094
    vrsave: 0x00000000
    Binary Images:
    0x1000 - 0xc1ffb mds ??? (???) <af9cc958b4b030835101ff024186c7d3> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Support/mds
    0xde000 - 0xe0ffd com.apple.MDSChannel 1.0 (1.0) /System/Library/PrivateFrameworks/MDSChannel.framework/Versions/A/MDSChannel
    0x139000 - 0x23fffb com.apple.spotlight.index 10.5.0 (398.1) <5843125c709dd85f22f9bd42744beea5> /System/Library/PrivateFrameworks/SpotlightIndex.framework/Versions/A/Spotlight Index
    0x1ca9000 - 0x1caaffc liblangid.dylib ??? (???) <5f078ac1f623f5ce432ea53fc29338c0> /usr/lib/liblangid.dylib
    0x2198000 - 0x22bdffb libmecab.1.0.0.dylib ??? (???) <cd875e74974e4ec3a0b13eeeb236fa53> /usr/lib/libmecab.1.0.0.dylib
    0x8fe00000 - 0x8fe309d3 dyld 95.3 (???) <a7be977c203ec5c76b2f25a7aef66554> /usr/lib/dyld
    0x90123000 - 0x9016effb com.apple.Metadata 10.5.0 (398) <b6bb1fd5a7a9135f546b2d8cbd65eafc> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x901ab000 - 0x902d0ff3 com.apple.CoreFoundation 6.5 (476) <9073c2bfdf6842562c8b7f0308109c02> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x9060a000 - 0x90612fff libbsm.dylib ??? (???) <c1fca3cbe3b1c21e9b31bc89b920f34c> /usr/lib/libbsm.dylib
    0x90683000 - 0x90688ff6 libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x90757000 - 0x907d2fff com.apple.SearchKit 1.2.0 (1.2.0) <1b448fbae02460eae76ee1c6883f45d6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x9088a000 - 0x9090ffff libsqlite3.0.dylib ??? (???) <7b379cb4220346e99c32c427d4539496> /usr/lib/libsqlite3.0.dylib
    0x90aa7000 - 0x90ab5fff libz.1.dylib ??? (???) <1a70dd3594a8c5ad39d785af5da23237> /usr/lib/libz.1.dylib
    0x90b50000 - 0x90be2fff com.apple.framework.IOKit 1.5.1 (???) <591b8b0cc4261db98a6e72e38eef5f9a> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x91105000 - 0x9116cffb libstdc++.6.dylib ??? (???) <a4e9b10268b3ffac26d0296499b24e8e> /usr/lib/libstdc++.6.dylib
    0x9116d000 - 0x912b5ff3 libicucore.A.dylib ??? (???) <250daed2fb2e6bf114480e2e4da0728b> /usr/lib/libicucore.A.dylib
    0x91c3c000 - 0x91d32ffc libiconv.2.dylib ??? (???) <05ae1fcc97404173b2f9caef8f8be797> /usr/lib/libiconv.2.dylib
    0x91d3a000 - 0x91db4ffd com.apple.CFNetwork 220 (221) <00b882d3d3325526b78ded74880759fe> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x9236a000 - 0x92382ffb com.apple.DictionaryServices 1.0.0 (1.0.0) <fe37191e732eeb66189185cd000a210b> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x92383000 - 0x9238effb libgcc_s.1.dylib ??? (???) <ea47fd375407f162c76d14d64ba246cd> /usr/lib/libgcc_s.1.dylib
    0x92742000 - 0x92769fff libxslt.1.dylib ??? (???) <3700d04090629deddb436aa2d516c56d> /usr/lib/libxslt.1.dylib
    0x92777000 - 0x92860fff libxml2.2.dylib ??? (???) <6f383df1e1e775be0158ba947784ae13> /usr/lib/libxml2.2.dylib
    0x928aa000 - 0x928b9fff com.apple.DSObjCWrappers.Framework 1.2 (1.2) <2411674c821a8907449ac741ce6a40c3> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x92a17000 - 0x92afafeb libobjc.A.dylib ??? (???) <4a90e315bd1718c3f5ae09ee6c23e36c> /usr/lib/libobjc.A.dylib
    0x92afb000 - 0x92bc9ff7 com.apple.CoreServices.OSServices 210.2 (210.2) <bad4943629f870d305f2bc7c6dfffe2d> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x92bde000 - 0x92dbfffb com.apple.security 5.0.1 (32736) <15632bf9bbdb223194b3d79a2e48e02d> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x92e9a000 - 0x92ec5ff7 libauto.dylib ??? (???) <c1f2bd227817ad7c7bf29ec74729ac7c> /usr/lib/libauto.dylib
    0x92ed2000 - 0x9306bfe3 libSystem.B.dylib ??? (???) <8a6cd873dfa7ada786efac188f95ed1b> /usr/lib/libSystem.B.dylib
    0x931a7000 - 0x934a7ff3 com.apple.CoreServices.CarbonCore 783 (783) <fd2acaf23e95472f78b8a077fa039986> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x946f2000 - 0x9472afff com.apple.SystemConfiguration 1.9.0 (1.9.0) <d925dde7699e6231c88a41b0254a7591> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x94933000 - 0x9494eff3 com.apple.DirectoryService.Framework 3.5 (3.5) <3246a5d1c6a3d678798a90e8c5cd3677> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x9494f000 - 0x9494fffa com.apple.CoreServices 32 (32) <42b6dda539f7411606187335d9eae0c5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x94c68000 - 0x94c9dfff com.apple.AE 402 (402) <a4b92c8ac89cc774b85fb44c48b9d882> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x96831000 - 0x9683afff com.apple.DiskArbitration 2.2 (2.2) <9c8f8ade43fa25b32109ef9dcc0cb5d5> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x9683b000 - 0x968d1ff7 com.apple.LaunchServices 286 (286) <a3a0b2af862e9a8945072f8cb523678f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x969bc000 - 0x96c00ffb com.apple.Foundation 6.5.1 (677.1) <4152239382fb0f48abbcbf35bd04afa6> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0xfffec000 - 0xfffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    0xffff8000 - 0xffff9703 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    Apparently the mdutil command didn't actually delete the Spotlight index file which is causing the problem, or at least didn't leave the indexing files in a consistent, empty state to start indexing over again. I may have to Erase this Time Machine disk and start over.
    I should point out that except for Spotlight indexing this disk is otherwise working just fine. It passes Verify Disk with no errors and both new Time Machine backups and viewing and restoring via Time Machine and Finder work without problem.
    Any suggestions before I just Erase the disk and start over with a new backup?
    --Bob

  • Do index rebuild in bussiness hours creates any problem?

    hi friends
    two node rac
    version 10.2.0.4
    windows-o/s
    do index rebuild in bussiness hours creates any problem.i had still half an hour time for business hours.
    out of 10 indexes still 2 indexes are left.please let me know your suggestions thanks.
    thanks in advance
    cheers :-)

    Respond to what, exactly?
    Oracle indexes do not need to be rebuilt as a general rule. There are some exceedingly rare cases where an occasional index may need to be rebuilt. But to have 10 indexes in a database that all need to be rebuilt would be exceptional. And your description doesn't seem to indicate any logical reason that any of your indexes need to be rebuilt. That leads me to strongly suspect that you are pointlessly rebuilding the indexes in the first place.
    If you are going to pointlessly rebuild indexes (which I don't recommend), you should do it during system downtime windows when no one else is using the system. It would be better not to do them in the first place, but if you're going to waste cycles, at least waste nonproductive cycles.
    Justin

  • Table lock while index rebuild

    Dear all,
    Can anyone kindly tell if the rebuild index operation locks the table on which rebuild index is performed ? (meaning that no inserts or updates are possible on that table during that time)
    I am using Oracle 10.1.0.4
    Thanks in advance
    L

    Dear all,
    Can anyone kindly tell if the rebuild index operation
    locks the table on which rebuild index is performed ?
    (meaning that no inserts or updates are possible on
    that table during that time)
    I am using Oracle 10.1.0.4
    Thanks in advance
    LThe online index rebuild allow DML statements on the tables during the index creation. When you use the ONLINE option to create or alter an index, the current index is left intact while a new copy of the index is created. This allows DML statements to access the old index.
    Message was edited by:
    oraburn

  • Gathering schema Statistics and Index rebuilding

    I want to know after how much time we must gather the schema Statistics and Index rebuilding.
    In our system approximately 7 logfile generates in one day
    Please suggest me

    Index rebuilding sounds so much Oracle 7! Indexes today generally take care of themselves quite well, throughout inserts, deletes and updates. It rebalances itself automatically when necessary, without requiring any rebuild. As for the stats, run it for sure after large data movements (i.e. deletes and inserts). Besides that, implement table monitoring for your tables, and run once in a while dbms_stats with the options parameter as GATHER STALE. That way, Oracle will automatically know which objects need their stats refreshed.
    Daniel

  • Goldengate Extracts reads slow during Table Data Archiving and Index Rebuilding Operations.

    We have configured OGG on a  near-DR server. The extracts are configured to work in ALO Mode.
    During the day, extracts work as expected and are in sync. But during any dialy maintenance task, the extracts starts lagging, and read the same archives very slow.
    This usually happens during Table Data Archiving (DELETE from prod tables, INSERT into history tables) and during Index Rebuilding on those tables.
    Points to be noted:
    1) The Tables on which Archiving is done and whose Indexes are rebuilt are not captured by GoldenGate Extract.
    2) The extracts are configured to capture DML opeartions. Only INSERT and UPDATE operations are captured, DELETES are ignored by the extracts. Also DDL extraction is not configured.
    3) There is no connection to PROD or DR Database
    4) System functions normally all the time, but just during table data archiving and index rebuild it starts lagging.
    Q 1. As mentioned above, even though the tables are not a part of capture, the extracts lags ? What are the possible reasons for the lag ?
    Q 2. I understand that Index Rebuild is a DDL operation, then too it induces a lag into the system. how ?
    Q 3. We have been trying to find a way to overcome the lag, which ideally shouldn't have arised. Is there any extract parameter or some work around for this situation ?

    Hi Nick.W,
    The amount of redo logs generated is huge. Approximately 200-250 GB in 45-60 minutes.
    I agree that the extract has to parse the extra object-id's. During the day, there is a redo switch every 2-3 minutes. The source is a 3-Node RAC. So approximately, 80-90 archives generated in an hour.
    The reason to mention this was, that while reading these archives also, the extract would be parsing extra Object ID's, as we are capturing data only for 3 tables. The effect of parsing extract object id's should have been seen during the day also. The reason being archive size is same, amount of data is same, the number of records to be scanned is same.
    The extract slows down and read at half the speed. If normally it would take 45-50 secs to read an archive log of normal day functioning, then it would take approx 90-100 secs to read the archives of the mentioned activities.
    Regarding the 3rd point,
    a. The extract is a classic extract, the archived logs are on local file system. No ASM, NO SAN/NAS.
    b. We have added  "TRANLOGOPTIONS BUFSIZE" parameter in our extract. We'll update as soon as we see any kind of improvements.

  • Alter index rebuild

    Hello, I want to rebuild an index :
    SQL> alter index APPLSYS.WF_LOCAL_ROLES_N1 REBUILD ;
    alter index APPLSYS.WF_LOCAL_ROLES_N1 REBUILD
    ERROR at line 1:
    ORA-14086: a partitioned index may not be rebuilt as a whole
    What is wrong with my sql instruction ? Should I give partition name may be ? Where can I find partition name for that index ? Many thanks before.

    [linuxas oracle test10]$ oerr ora 14086
    14086, 00000, "a partitioned index may not be rebuilt as a whole"
    // *Cause:  User attempted to rebuild a partitioned index using
    //          ALTER INDEX REBUILD statement, which is illegal
    // *Action: Rebuild the index a partition at a time (using
    //          ALTER INDEX REBUILD PARTITION) or drop and recreate the
    //          entire index
    [linuxas oracle test10]$To see partition names for an index :
    SQL> select partition_name from USER_IND_PARTITIONS
      2* where index_name = '<YOUR INDEX>';Paul

  • Alter index rebuild reverse duration

    Hi,
    I'm working on an Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option.
    I would need to rebuild reverse 2 indexes, 60gb each.
    Is it possibile to forecast somehow the opreation duration?
    The alter index rebuild is locking (insert on those tables are locked), doesn't it?
    Thanks in advance,
    Samuel

    You can rebuild it online, but it will demand extra temporary space, and can take more time.
    ALTER INDEX INDX REBUILD ONLINE

  • Index rebuild

    Hi Team,
    Please tell me any difference b/w alter index <index> rebuild or alter index <index> rebuild move.
    Is there any difference that more space will be released if I move index to diffrenet tablespace and move move back to orginal tablespace.
    I know that if we use move option we can move index to different tablespace,
    Regards,
    jit

    Even if you would do lots of dml's, that's not certainly means that you need the rebuilding of the index. If your assertion is based on this that there would be some "holes" within the leaf blocks which wont be reused and would require a rebuild, it's wrong then since Oracle would take care of these things on its own. So again, what criteria, other than an OLTP db you used to conclude that you need rebuilding of indexes?
    But I just wanted to know If I go for alter index rebuild or alter index rebuild move and move back the indexes, which option will be best for me mean by which option I can reclaim more space.Well, I am sorry to say but I think you really don't know very well both the commands. The commands don't differ in the space reclaim given by them but in the way they do the rebuild. Please read the documentation to know what both commands do and how? BTW, from where you picked the command alter index rebuild move since I am not sure that such command exists?
    Aman....

  • Different b/w index rebuild and index rebuild online

    hi..guys could u plz tel me difference between index rebuild and index rebuild online

    There is no difference in both the commands. Both will rebuild the index structure from the scratch.But in the first case with only Rebuild, as long as the index, its temporary segment is not prepared and merged together, index is not available for the other users for use. The Online clause makes the index available for others even while being rebuild.
    Rebuilding index online has the same concept of creating them online to some extent,
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/indexes.htm#3062
    HTH
    Aman....

  • Amount of temporary tablespace size used for index rebuild

    Hi All,
    I want to know approximate amount of temporary tablespace size used for index rebuild. I need this information to avoid the insufficient temporary tablespace error during the huge index rebuild.
    Is there a query or procedure to find it out.
    Thank you.

    Hi,
    While creating the index, the temporary segment is created in the permanent tablespace. So permanent tablespace must have sufficient space.
    http://www.oracle-base.com/articles/10g/SpaceObjectTransactionManagement10g.php
    http://aprakash.wordpress.com/2010/01/05/numeric-segment-name/
    Anand

  • 10.5.6 - spotlight wants to index the Time Machine backup

    Since I upgraded to 10.5.6, spotlight keeps trying to index the Time Machine backup. It won't let me add it to the privacy list - I get an "unknown error". Any ideas how to stop it doing that?
    It seems that while spotlight's trying to index, Time Machine won't go any further than "preparing backup".

    Spotlight does often seem to interfere with large TM backups.
    Apparently it has to do with Spotlight busily indexing things that TM has just put on the drive, but maybe hasn't completely released or finished with. Exact cause unknown.
    But it won't hurt to exclude your TM drive/partition from spotlight -- you'll find several threads in the Time Machine forum where this has helped greatly. After it's done, remove the exclusion if you want. Note that the TM disk may not get indexed until your next restart.
    Also, download the +Time Machine Buddy+ widget. It shows the messages from your logs for one TM backup run at a time, in a small window. Then you'll get a bit more info on what it's doing.
    If you see a message about a "deep traversal," when nothing seems to be happening, just be patient. This means TM must examine ever file and folder on your system to figure out what needs to be backed-up, so it will be a very lengthy process.

  • In EM 10g, i didn''t see alert like index rebuild(same was in 9i)

    in EM 10g, i didn''t see alert like index rebuild(same was in 9i)
    Do you know, which alert was being obsoleted in EM 10g grid

    In 10g, how to create an alert, which send mail who identify indexes which may benefit from rebuild

Maybe you are looking for

  • How to set the return language? i read the api already

    import java.io.*; import java.util.*; class Listing_Available_Locales      public static void main(String args[])             Locale[] locales = Locale.ENGLISH(); //error is here                          //Locale[] locales = Locale.getAvailableLocale

  • Works on ethernet, but not wireless

    I'm configuring my AirPort Extreme after some cable modem problems and now the wireless won't work. The AirPort utility says it doesn't have a proper IP address, but I can get internet through an ethernet cable from the AE box, so that doesn't seem r

  • Issuance is not updating in Reservation and MD04

    Hi folks!! I am getting a problem in stock issuance. While issuing against reservation created for production order, for some material the issued quantity is not getting updated in the withdrawl field in reservation, and it is also not getting update

  • Process chains trigger process

    Hi, I am using process chains to load the data and the respective processes after load. I scheduled the process chains to trigger every day. But our systems will be down for back up on a weekly basis.So is there any way I can stop this scheduled jobs

  • 16:9 and 4:30 ratios...

    Hello - I've seen posts on this subject, but nothing that's specifically answered my question - still fairly new to FCP, (I'm using FCP Studio), I'm cutting a dance video and noticed that the Side Angle Camera shows up fitting in the canvas window at