Reorganization

Hi,
I am New to SQL database.can anybody explain me the Reorganization procedure for SQL database?
Thanks in advance.
Vinnu.

A reorg in SQL means you reorder the leaf nodes of an index.  It works very well removing light fragmentation from an index.  It is less thorough then a full rebuild, but it is less intense and in SQL 2000 it won't lock the entire table during the operation, just the pages it is reorganizing.  In SQL 2005 it is a fully online operation.
In SQL 2000 you can do a reorg with the indexdefrag command
DBCC INDEXDEFRAG
    { 'database_name' | database_id | 0 }
        , { 'table_name' | table_id | 'view_name' | view_id }
    [ , { 'index_name' | index_id } [ , { partition_number | 0 } ] ]
    [ WITH NO_INFOMSGS ]
To rebuild the index in SQL 2000 (this is equivalent to a drop and create statement), you use the
DBCC DBREINDEX
        'table_name'
    [ , 'index_name' [ , fillfactor ] ]
    [ WITH NO_INFOMSGS ]
In SQL 2005 you use the alter index command...
ALTER INDEX { index_name | ALL }
    ON <object>
    { REBUILD
        [ [ WITH ( <rebuild_index_option> [ ,...n ] ) ]
          | [ PARTITION = partition_number
                [ WITH ( <single_partition_rebuild_index_option>
                        [ ,...n ] )
    | DISABLE
    | REORGANIZE
        [ PARTITION = partition_number ]
        [ WITH ( LOB_COMPACTION = { ON | OFF } ) ]
    | SET ( <set_index_option> [ ,...n ] )
<object> ::=
    [ database_name. [ schema_name ] . | schema_name. ]
        table_or_view_name
<rebuild_index_option > ::=
    PAD_INDEX  = { ON | OFF }
  | FILLFACTOR = fillfactor
  | SORT_IN_TEMPDB = { ON | OFF }
  | IGNORE_DUP_KEY = { ON | OFF }
  | STATISTICS_NORECOMPUTE = { ON | OFF }
  | ONLINE = { ON | OFF }
  | ALLOW_ROW_LOCKS = { ON | OFF }
  | ALLOW_PAGE_LOCKS = { ON | OFF }
  | MAXDOP = max_degree_of_parallelism
<single_partition_rebuild_index_option> ::=
    SORT_IN_TEMPDB = { ON | OFF }
  | MAXDOP = max_degree_of_parallelism
<set_index_option>::=
    ALLOW_ROW_LOCKS= { ON | OFF }
  | ALLOW_PAGE_LOCKS = { ON | OFF }
  | IGNORE_DUP_KEY = { ON | OFF }
  | STATISTICS_NORECOMPUTE = { ON | OFF }

Similar Messages

  • Lightroom 4-How to reorganize files by date when choosing to add rather than copy them to Lightroom

    My photos were in disorganized folders on different hard drives. I was able to import them into Lightroom 4 using COPY, and now my folders are reorganized by year and month on my hard drive, which is how I want them. However, I now have a copy of my photos in my catalog and a copy of each photo in my photo folder on my hard drive. This is taking up too much space. Is there a way to have Lightroom automatically import my pictures and reorganize them into folders by date using the ADD option rather than the copy option when importing from my hard drive? Thank you!

    You said:
    My photos were in disorganized folders on different hard drives. I was able to import them into Lightroom 4 using COPY, and now my folders are reorganized by year and month on my hard drive, which is how I want them.
    Meaning that they are still where they were, scattered, and not catalogued in LR.  PLUS, there is a copy of each file in the place you copied them to when you imported them, and these are the versions of the files that are catalogued in LR.  Right?
    You said:
    However, I now have a copy of my photos in my catalog and a copy of each photo in my photo folder on my hard drive.
    Yes, one set, the original ones, viewable only in Explorer/Finder, the other/duplicate set viewable in LR (and/or also in Explorer/Finder).
    You said:  This is taking up too much space.
    So just delete the original versions, as long as you are sure that you have them all in the copied-to location (where they are catalogued by LR).
    You said:
    Is there a way to have Lightroom automatically import my pictures and reorganize them into folders by date using the ADD option rather than the copy option when importing from my hard drive?
    As jd_paige says, next time use MOVE instead of COPY.  If you use ADD, they will remain where they are.  Sometimes it is easier to do it this way, and then move/reorganize them once you have them in the catalogue.

  • In Numbers, how can I save a filter sequence using Reorganize?

    I'm using Numbers (from iWorks 9) and have a filterning sequence that involves a date range and finding specific values in a text column.  It's pretty straightforward to use the Reorganize button, but my macro program (QuicKeys) can't seem to negotiate the nested pull-down menu selections, so is there a way to save this sequence within Numbers?

    File menu, Export. Select Excel as the format.

  • All of my apps are in iTunes AND on my iPod Touch. in iTunes it the checkbox next to sync apps is UNchecked. should i check the box and have to reorganize all my apps or leave it "un-synced"?

    all of my apps are in iTunes AND on my iPod Touch. in iTunes, under my iPod, the checkbox next to 'sync apps' (in the Apps page under my iPod) is Unchecked. if I check it, all my apps will be all over the place and I will waste hours trying to get it back to the way it was. I don't really have a reason to check the box but I don't know. should I check the box and have to reorganize all my apps or leave it "un-synced"?
    by "un-synced" I mean how it is on my iPod and iTunes at the same time but its not synced
    this happened b/c I had to make a new user acct on my only [Windows 7] computer and when i clicked transfer purchases, this happened.
    any help would be greatly appreciated
    And as you can see ( besides my problem here) i am out of dropbox space. it would be nice if you can click http://db.tt/TQiPs59V to make an acct to give me and you more space

    You should ALWAYS make sure that everything is on your computer and backed up, most especially before any update. The iphone is designed to be synced to your computer regularly.
    If you have failed to do this, then you need to redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Is there a way to reorganize bookmarks?

    I have way too many Safari bookmarks including many redundancies.  I need to do a wholesale reorganization of my Safari bookmarks. 
    I recently started using Dragon Drop which brilliantly facilitates moving Finder files and folders around tremendously, espcially since I started using a trackpad and find it least useful for any dragging chores.  But I just discivered that while Dragon Drop can be used for moving bookmarks, it only moves copies and leaves the original where it started, which is less than helpful in expediting the reorganization task. 
    But the task facing my Bookmarks reorganization is closest to a reorganization of my finder. 
    Wait a second!  I just found that I can have two bookmarks windows open at the same time on two different Safari screens on my two-screen desktop setup and drag and drop between the two screens as a way to facilitate bookmark reorganizaton.  OK.  That helps a lot. 
    Any other ideas for facilitating the wholesale reorganization of Safari Bookmarks would be greatly appreciated.
    Steve

    hi steve,
    i also find that safari's bookmarks could have more features allowing easier management of large quantities of urls. tags, key words, notes, extracts, date, etc. could be added to the bookmark fields and this metadata could help us sort our urls in spotlight, for example.
    in the meantime, here's how i sort things out :
    - i use safari's bookmarks when i am on my iOS devices
    - sync them with icloud
    - export them when i am on my computer
    - import them in URL Manager Pro
    unfortunately, i need to play with the imported bookmarks again, since they have no metadata. i haven't found a better method yet, for my needs anyway. there's always google bookmarks, delicious and other cloud based systems, but it doesn't solve the iOS management issue.
    best

  • Issue on BPM(Business Process Monitoring): Reorganization of old alerts

    Hi BPM Folks,
    Is there any way for reorganization of old alerts to clean up the system?
    Because a service desk message(Ticket) is created each time when a job is cancelled. i.e, The number of tickets are created as many times of the same job is cancelled.
    Is there any way to accumulate the tickets related to the same job OR not to recreate the ticket again if the same job is cancelled?
    We do see an option called u201Cmax number of alerts for each message idu201D in MTE properties of tcode RZ20. Is anything to do with this?
    Thanks in advance.
    Regards,
    Sanjai

    This issue is resolved.
    Resolution:
    1. BPMon alerts are automatically reorganized by the BPMon engine according to the settings in the BPMon session in node "Activation", tab "Alert reoganization".
    2. If we have configured 1 service desk message per 1 alert, then that's what we'll get. If we don't want fewer messages, we will have to change the thresholds for the messages in node "Notification" in the BPMon setup session.

  • How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all a

    How do I reorganize my photos on iPad 2?  I need to move (not copy) photos from one album to another.  When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums.  Please help.

    You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
    If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad

  • I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    Do some testing to get your method working right with some less than important footage.
    Copy/paste files where you want then.
    Use the FCE Reconnect feature to tell FCE where the newly copied files reside.
    Make sure the new location and files are working as expected with your Projects.
    Delete the original files if no longer required.
    Al

  • Oracle 8.1.7.4 에서 reorganization 에 관한 질문입니다.

    oracle 8.1.7.4 ops 에서 reorg작업을 할 생각입니다.
    1) Database Offline Full backup
    2) Table Reorganization.
    2-1)ALTER TABLE table_name MOVE ;
    2-2)LONG type 의 Table 은 exp/imp작업.
    3) ALTER INDEX index_name REBUILD;
    4) ANALYZE TABLE table_name COMPUTE STATISTICS FOR TABLE FOR ALL COLUMNS FOR ALL INDEXES;
    5) ANALYZE INDEX index_name COMPUTE STATISTICS;
    위와 같은 방법으로 진행할 생각인데 이에 관련하여 질문있습니다.
    현재 DB extent_management 가 DICTIONARY 방식으로 되어있습니다.
    제가 알아본 바로는
    기존의 Dictionary Management Tablespace하에서는 Fragmentation이 있어 재구성 이후에서 space의 비효율적인 사용이 생길 수 있다고 합니다.
    1)이에 관련하여 딕션너리 방식에서의 재구성 작업이 과연 의미가 있는지 궁금합니다.
    2)그럼 딕션너리 방식에서 Locally로 바꾼후 재구성작업을 해야하는지도 궁금합니다.
    3)또한 재구성에 관련하여 잘못된점이나 참고할 수 있는 문서 혹은 작업진행에 관련하여 답변부탁드립니다.

    예전에 질문하신 내용이지만, 답을 주신 분이 없어 댓글을 달아봅니다.
    세옹지마님이, tuning주제에 대한 토의에서도 설명하셨듯이, reorg는 중요합니다. 특히 다량의 데이타가 지워지거나 변경된 경우 그렇죠. (변경의 경우, index입장에서는 delete후 insert와 동일한 효과가 나타나니까요)
    reorg는 index의 경우 데이타가 지워져서 빈공간이 많더라도 ordering이 유지되지 못하면 해당 block에 새로 입력되는 데이타가 들어가지 못하니, 일반적으로 table보다 더 필요하게 여겨지고,
    table의 경우에도 fulll table scan의 경우 data가 있는 block만 읽는게 아니고 high water mark까지는 다 읽기 때문에 0건의 데이타를 읽기위해 10분의 select count(*) 작업을 하는 경우도 본만큼, 여전히 reorg가 필요합니다.
    이러한 reorg는 locally-managed는 필요하고, dictionary managed는 불필요하다는건 잘못 들으신 내용 같습니다. 특히 locally managed tablespace의 경우 9i부터 제공되는 featue이고, 질문하신 분의 경우 8i를 사용하고 계시니 tablespace를 locally managed로 변경하실 수 없습니다.
    이미 reorg하여 잘 사용하고 계시겠지만,
    table의 대량의 삭제가 변경작업이 발생한 경우, 혹은 꾸준히 그러한 작업이 발생하여 주기적으로 reorg가 필요하다고 판단되는 경우.. dictionary managed tablespace라도 작업이 필요합니다 ~

  • Reorganization of Credit data :

    Dear SAP Experts ,
    We have changed the Risk categories of some of the CUstomers . Now I have run the reorganization of the Credit Data.
    We have the following Message the NEw Credit Limit was created.
    Where can I view that what was changed and of which CUstomers.
    regards,
    A S

    Dear Gurunadh Kollipara,
    I have recreated the FI and SD data for the reorganization.
    Now in the FCV3 Report I can see there is double entry in the of all the Customers.
    The Payer Column there is one entry X and the other is Blank for each Customer.
    *The following is the help documents of the P( Payer:)
    FI checks only against current payer
    Indicates that credit checks against open items, oldest open item, and the highest dunning level are carried out using the open items and the dunning level of only the current payer (and not with data from all payers who are assigned to the credit customer).
    Note
    This is only the case if the payer is copied into the document on the basis of the partner determination procedure.*
    Why there is dual entry the report for all Customers.
    Please explain.
    Edited by: SAP Consultant on Dec 9, 2008 12:02 PM
    Edited by: SAP Consultant on Dec 9, 2008 12:23 PM

  • BPM - Background Job for Reorganization = Not Scheduled

    Good afternoon, first of all thank you very much for the support they can provide. I have developed a JDBC interface -> BPM (Multimapping) which works well. Modify a Message Mapping in the BPM that I use for an RFC Lookup, I have added the Configurable Parameters in the BPM and Integration Directory and everything works fine at design time. But when running the interface at run time the message reaches the BPM and the error "error in BPE inbound Permanent processing".
    I have reviewed the Business Process Engine in the RWB and the item is Red Schedule Background Job for Reorganization and detail reads: "Background Job for Reorganization = Not Scheduled".
    As I can solve this problem. Thank you very much.

    Re: Importing trans request failed
    Re: Transports Erroring
    Re: What is RDDIMPDP .....
    have a look it may help you
    Message was edited by:
            Vinod Udapudi
    Message was edited by:
            Vinod Udapudi

  • Reorganize Rules in Outlook 2010

    I am a heavy user of email rules in Outlook 2010, meaning I have 60 - 75 rules. 
    I've decided my logic was faulty in how I ordered my rules and essentially need to "flip" the top rules for the bottom rules. 
    I know you can move rules up and down by highlighting and clicking the up/down arrows, but this is a very tedious process with the number of rules I'm dealing with. 
    I've tried several key combinations and clicks to try to either move more than 1 rule at a time, to move a rule all the way to the top/bottom with a single action and "dragging" the rules, but to no avail. 
    I also tried exporting the rules to see if I could reorganize them that way. 
    The RWZ file wanted to open with Word by default, but it was well over 100 pages long and contained a lot of machine code and empty page breaks. 
    I tried text pad, but it was even worse.  If there is a simpler solution to this that someone knows, I'd be greatly appreciative. 
    Thanks.

    Hi,
    We don't have such a built-in feature which can bulk edit/reorder rules in Outlook client.
    You are holding a large amount of rules (60-75), the list of rules will be hard to manage. Personally, I would recommend you to revise their rules and sorting method.
    This article might be helpful:
    Managing large amount of message rules
    (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Physical disk space after ORACLE reorganization with brtools

    Hi all! .
    I perform reorganization after arсhiving with brtools. In db02 shows that free size in tablespace are increased but physical disk space not changed.
    Can i make changes in online with brtools to increase physical disk space in reorganized tablespaces? 
    system ver. :  ECC 5.0,   oracle 9.2.0.7.0, BRTOOLS 6.40 (52)
    Thanks for help!
    Edited by: Andrey Burakov on Jun 14, 2011 7:39 AM

    Andrey Burakov wrote:
    Hi all! .
    > I perform reorganization after arсhiving with brtools. In db02 shows that free size in tablespace are increased but physical disk space not changed.
    > Can i make changes in online with brtools to increase physical disk space in reorganized tablespaces? 
    > system ver. :  ECC 5.0,   oracle 9.2.0.7.0, BRTOOLS 6.40 (52)
    > Thanks for help!
    >
    > Edited by: Andrey Burakov on Jun 14, 2011 7:39 AM
    Hi Andrey,
    You need to reorganize whole tablespace, not only tables in order to reclaim the free space to the OS.
    The prerequisite for online reorganization is:
    Oracle 9.2 database or higher.
    The prerequisite for online conversion of the LONG-fields into LOB-fields:
    Oracle 10g database or higher.
    Online conversion is supported for SAP kernel 7.00 or higher. For SAP kernel 6.40,
    it is supported only in a restricted manner (see "Caution" in point III). Conversion is
    not supported for SAP systems with a kernel lower than 6.40.
    Check the note 646681 - Reorganizing tables with BRSPACE
    Best regards,
    Orkun Gedik
    Edited by: Orkun Gedik on Jun 14, 2011 9:10 AM

  • File Library Organize Library Reorganize files  Now can't locate music.  How do I get my music back in the playlists.  Still all in folders in music file??  HELP!

    I recently downloaded iTunes 10, found my library and things looked great..........UNTIL.....I clicked on the reorganize files box in the 'Organize Library' window.  Now all my music has a little ! next to it and says it cannot locate the song.  I have all the music still in the folders but iTunes not being able to locate it.  How do I get everything back the way it was??

    if I set up another library, will that affect my ipod?
    You will be given the chance to sync that iPod when it is connected if the iPod is set to sync automatically; if you choose that option, the music will be erased from the iPod. If not, you can transfer purchased content from the iPod and add additional music to it. Click here for more information.
    If I set up another library, do I go to that one when using my ipod.
    Yes.
    (31404)

  • Aperture 3: Can I reorganize masterfolders in Aperture library?

    I have having a bit of a problem, and it bothers me.
    The thing is that I last year in December finally chose to go with Aperture 3. In an earlier stage I imported the iPhoto library to my Aperture. Well, my problem is that Aperture organized all of my imported photos under Masters, and then under 2011 and then under 12 (December) and then 18. Is there a way to reorganize all the affected photos by shot date under masters, and not like it's now by import/consolidate date?
    It maybe doesn't affect my work with the photos, but it bothers me a lot that it is organized wrong. All of my imported photos shot after that date is imported correctly.
    Looking forward to from you
    /Carsten

    Carsten-
    Specifically, the solution for your expressed problem is to make time-based Albums for your old iPhoto imports such as 2008, 2009 etc. Then sort those old iPhoto files by date and drag them into the appropriate Albums.
    Originals should be backed up before import into Aperture or any other images management application. Those backups of originals can live in date-based folders on an offsite drive. Not only is that the only proper way to back up originals, it also allows your backup to consist of a more "literal" organization scheme.
    Personally I use the same name scheme from the start:
    • The camera card is uploaded on to the computer  into a date-named folder named for the Project such as 110829_KJones_Wed. Date/time organizing Projects IMO is important because that is the way Aperture sees Projects.
    • The camera card is ejected. An important step, because fatal errors to original images can still occur while the card remains in the computer.
    • Then the original folder on the internal drive gets split up as needed to maintain Project sizes less than ~400 pix and/or for naming convenience (110829_KJones_Wed_A, 110829_KJones_Wed_B, 110829_Boyd_Construction, etc.). Note that the sortable date 110829 or 20110829 for Aug 29, 2011 is very intentional; dates like 08/29/2011 are not good. Computers see time as a string year-month-day-hour-minute-second and we should name similarly.
    • The new folder(s) with the new originals in them get backed up to an exernal drive that will live off site. I leave the same folder names but append .bkup to them so I know that they are backup files rather than referenced Masters. Only after this step is complete can the camera card be reformatted, in-camera (not in-computer).
    • After all of the above is complete import into Aperture can occur. To reference Masters on external drives (recommended) have the files to be imported located on an external drive and select "Store images in their current location."
    My comments from an earlier thread on Aperture organization:
    First, Projects should be just that: individual-shoot based projects rather than some kind of organizing tool for all the architectural photos or whatever. For performance reasons personally I keep each Project under 500 20-MB images, making a second Project if the shoot is large (e.g. 110829_KJones_Wed_B). One or more albums will always organize the KJones wedding pix together anyway.
    Folders are indeed flexible organizational tools but IMO often overused. Folders can effectively hide contents from view and therefore require users to remember how folders are nested and what is inside them. Folders were the only way to deal with single-original film, but are IMO limiting to image database thinking.
    The way I look at it conceptually:
    Aperture is a database, and each image file lives in one Project.
    Albums are just collections of pointers that point to individual image files living in one or more Projects. Since they just contain pointers, albums can be created or deleted at will without affecting image files or taking up storage space. Very powerful.
    Keywords can be applied to every image separately or in batches. Keywords are hugely powerful and largely obviate the need for folders. Not that we should never use folders, just that we should use folders only when useful organizationally - - after first determining that using keywords and albums is not a better approach.
    As one example imagine the keyword "flowers."  Every image of 100k images that has some flowers in it has the keyword flowers. Then say we want to put flowers in an ad, or as background for a show of some kind, or to print pix for a party, or even just to look for an image for some other reason. We can find every flower image in a 100k-image database in 2 seconds, and instantly create an Album called "Flowers" that points to all of those individual images.
    Similarly all family pix can have a keyword "family" and all work pix can have a key word "work." Each individual pic may have any number of keywords.
    So by using keywords and albums we can have instant access to every image everywhere, very cool. And keywords and albums essentially take up no space in the database.
    Another approach is to use a folder "Family" for family pix, a folder "Flowers" for flowers pix and another folder "Work" for work pix. IMO such folders usage is a very poor approach to using an images database (probably stemming from old paper or film work practices). Note that one cannot put an image with family in a field of flowers at a work picnic in all three folders.
    HTH
    -Allen

  • Logs --reorganize

    when system logs are full how reorganize them?which file contains all the logs at OS level?

    Kumar,
    Usually the logs are tarred(.tar) and moved to a different location and the log file is recreated... as for the location - it is dependent on the OS and also how the person whoc has configured it has set the same..
    Arun

Maybe you are looking for