Перемещение контента БД для коллекции сайта на другой сервер БД
-
10-12-2019 - |
Вопрос
Можно ли переместить базу данных контента с одного сервера БД на другой сервер БД?Я прочитал статью, заявив, что это невозможно, вы можете переместить DB в рамках одного и того же сервера базы данных.Может кто-нибудь, пожалуйста, пролил свет на это?
Move-SPSite
.
Это из Эта статья :
База данных источника содержимого и база данных назначения должны быть Расположен на том же экземпляре SQL Server.
Решение
Here are the steps you will need to take Lets call content DB "MyTESTContentDB"
- Do a database backup for the content db "MyTESTContentDB" from sql management studio
- Go to target DB Server and create a empty database naming "MyTESTContentDB" after the content DB
- Restore the backup from step 1 to empty database create in step 2 "MyTESTContentDB"
- Go to SharePoint server and run following script Dismount-spcontentdatabase "MyTESTContentDB" and type "Y" to confirm
Run the following script
stsadm -o addcontentdb -url http://intranet.company.com/mytestsite -databasename MyTESTContentDB -databaseserver TARGETDBSERVER
You will have to input actual URL, actual db name and correct target db server name
Другие советы
You could do this:
1) Add a new Content Database to your existing web application, but with the database pointing to the new SQL server. You can use the New-SPContentDatabase Cmdlet to do this and specify the server at the same time: http://technet.microsoft.com/en-us/library/ff607572.aspx.
2) Use the Move-SPSite Cmdlet to move the desired site collections from the existing content database to the new one.