사이트 모음을 다른 DB 서버로 이동하는 콘텐츠 DB 이동
-
10-12-2019 - |
문제
하나의 DB 서버에서 다른 DB 서버로 콘텐츠 데이터베이스를 이동할 수 있습니까?나는 동일한 데이터베이스 서버 내에서 Contend 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.