Move site collections to a new database

Source: Internet
Author: User

From [http://technet.microsoft.com/en-us/library/cc825328 (office.12). aspx]

Some site collections within a database that hosts multiple site collections are growing faster than expected, and you need to CT the database to approach its size limit quickly. you can split the database to move the growing site collections to another database or to another server.

Split a content database

You can use this procedure to split a content database that is associated with your site collections. When you split a content database, you are moving a site collection to a different database.

We recommend that you install the specified l cumulative update before you split content databases. This update fixes known issues with the stsadmMergecontentdbsOperation. For more information, see deploy software updates for Office Sharepoint Server 2007.

Before you use the stsadmMergecontentdbsOperation, make sure that there is free space available on the hard disk that is equal to at least three times the size of the source site collection. to determine the size of the site collection, refer toStorageusedmbAttribute of the stsadmEnumsitesOperation in step 2 of the following procedure.

To complete the following procedure, you must be a member of both the farm Administrators Group and the Administrators group on the local computer. you must have full control permission for any site collection that needs to be moved. the account that you use to perform this procedure must be a member ofDb_ownerFixed database role in SQL Server.

Split a content database
  1. At a command prompt on the drive where SharePoint products and technologies are installed, change to the following directory:

    % Commonprogramfiles % \ microsoft shared \ Web Server Extensions \ 12 \ bin

  2. Type the following command, and then press Enter:
    Stsadm-O enumsites-URL<URL>><Path/File Name>. Xml

    WhereURLIs the address of the web application that contains the site collection that you want to move, andPath/file nameIs the name of the XML file that you want to create with the site collection data.

    For more information, see enumsites: stsadm operation (Office Sharepoint Server ).

    The previous step creates an XML file that contains all of the site collection URLs in the current database.

  3. open the XML file that you created in a text editing application. if there are any URLs for site collections that you do not want to move, be sure to delete them from the file. the only URLs that shocould remain in the XML file shocould be for the site collections that you want to move.

    Note:

    there is no need to change the site count or any of the other site collection information in the file. only the URLs are relevant to this procedure.

  4. type the following command, and then press Enter:
    stsadm-O mergecontentdbs-URL -sourcedatabasename -destinationdatabasename -operation 3-filename

    where URL is the address of the web application that contains the site collection that you want; sourcedatabasename is the name of the database that you want to move the site collection from; destinationdatabasename is the name of the database that you want to move the site collection; operation 3 is the "read from file" operation; and file name is the name of the file that contains the site collection URLs that you want to move.

    For more information, see mergecontentdbs: stsadm operation (Office Sharepoint Server ).

  5. restart IIS by typing the following command, and then pressing enter:
    iisreset/noforce .

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.