• Move site collections to a new database


    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 expect 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 April Cumulative Update before you split content databases. This update fixes known issues with the Stsadm mergecontentdbs operation. For more information, see Deploy software updates for Office SharePoint Server 2007.

    Before you use the Stsadm mergecontentdbs operation, 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 to the StorageUsedMB attribute of the Stsadm enumsites operation 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 of the db_ownerfixed database role in SQL Server.

    Split a content database

    1. At a command prompt on the drive where SharePoint Products and Technologies is 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

      where url is the address of the Web application that contains the site collection that you want to move, and path/file name is 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 should remain in the XML file should be for the site collections that you want to move.

      NoteNote:

      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<URL>-sourcedatabasename<database name>-destinationdatabasename<database name>-operation 3 -filename<file name>

      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 to; 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.

  • 相关阅读:
    【机器学习】作业7: 随机森林
    【机器学习】作业6-EM算法
    【分布式系统】Consistent Hashing
    北京G,计算几何,线段相交
    带权区间调度问题,软件的期中复习
    机器学习期中考复习(md全是证明题)
    hihocoder35 模板场
    缺课两周后的数值计算笔记
    跨域访问设置
    截取视频第一帧图片
  • 原文地址:https://www.cnblogs.com/frankzye/p/1866930.html
Copyright © 2020-2023  润新知