ZZ: Moving or Renaming the WSS Central Administration Content Database
2009-09-08 17:05
726 查看
Original Article http://www.whitworth.org/2006/08/07/moving-or-renaming-the-wss-central-administration-content-database/
I finished my MOSS 2007 setup and noticed that one of the databases created was named
SharePoint_AdminContent_92b02fbd-632e-4784-a1fa-a6c5ee437f5a. I really don’t like
the GUID being appended to the end of the database name, so I wanted to change it.
For most content databases in WSS v3, you can follow these steps to rename the content
database
Go to Central Administration > Application Management > Content Databases to
find the name of the content database your web application is using
On your SQL Server, backup this database, then restore it with the new name.
In Central Administration > Application Management > Content Databases select
the web app you want to change then select the content database. Delete the content
database from the details page.
Add a content database from the Content Databases page pointing to the new database
you created.
I ran into a problem trying this with the Central Administration web application.
I kind of expected this problem, but I think MS should do a better job of warning
you when you go to remove the content database for the Central administration web
site. The problem is that if you use the GUI to remove the content database, you no
longer have access to the gui. To fix this, you must use STSADM from a command line
to add the new content database. Beyond that,I had to run the command line using alternate
credentials because using my credentials, I got an Access Denied error.
Here are the steps I took to rename the Central Administration Web Application
Go to Central Administration > Application Management > Content Databases to
find the name of the content database your web application is using
On your SQL Server, backup this database, then restore it with the new name.
In Central Administration > Application Management > Content Databases select
the web app you want to change then select the content database. Delete the content
database from the details page.
After step 3, you will get an error message on the Central Administration GUI and
you will not be able to get back into it. If you are not logged into the WSS server
using the credentials you used for database access, then you will need to run your
command prompt using the correct database credentials. (I don’t know if this is a
bug, I know there are parameters to pass a databaseuser and databasepassword to the
STSADM Command, but they don’t work). In my case I ran
runas /user:domain~Sharepoint2007 cmd.exe
Change to the directory c:program filescommon filesMicrosoft Sharedweb server
extensions12bin directory and run the command: stsadm -o addcontentdb -url http://servername:42000 -databasename
Sharepoint_AdminContent -databaseserver databaseservername
I finished my MOSS 2007 setup and noticed that one of the databases created was named
SharePoint_AdminContent_92b02fbd-632e-4784-a1fa-a6c5ee437f5a. I really don’t like
the GUID being appended to the end of the database name, so I wanted to change it.
For most content databases in WSS v3, you can follow these steps to rename the content
database
Go to Central Administration > Application Management > Content Databases to
find the name of the content database your web application is using
On your SQL Server, backup this database, then restore it with the new name.
In Central Administration > Application Management > Content Databases select
the web app you want to change then select the content database. Delete the content
database from the details page.
Add a content database from the Content Databases page pointing to the new database
you created.
I ran into a problem trying this with the Central Administration web application.
I kind of expected this problem, but I think MS should do a better job of warning
you when you go to remove the content database for the Central administration web
site. The problem is that if you use the GUI to remove the content database, you no
longer have access to the gui. To fix this, you must use STSADM from a command line
to add the new content database. Beyond that,I had to run the command line using alternate
credentials because using my credentials, I got an Access Denied error.
Here are the steps I took to rename the Central Administration Web Application
Go to Central Administration > Application Management > Content Databases to
find the name of the content database your web application is using
On your SQL Server, backup this database, then restore it with the new name.
In Central Administration > Application Management > Content Databases select
the web app you want to change then select the content database. Delete the content
database from the details page.
After step 3, you will get an error message on the Central Administration GUI and
you will not be able to get back into it. If you are not logged into the WSS server
using the credentials you used for database access, then you will need to run your
command prompt using the correct database credentials. (I don’t know if this is a
bug, I know there are parameters to pass a databaseuser and databasepassword to the
STSADM Command, but they don’t work). In my case I ran
runas /user:domain~Sharepoint2007 cmd.exe
Change to the directory c:program filescommon filesMicrosoft Sharedweb server
extensions12bin directory and run the command: stsadm -o addcontentdb -url http://servername:42000 -databasename
Sharepoint_AdminContent -databaseserver databaseservername
相关文章推荐
- Exchange 2007: Renaming the default storage group / mailbox database or deleting and recreating.
- Move Site Collection到其他content Database时遇到错误"Cannot complete the copy or merge operation because the
- Data Guard ORA-16810: multiple errors or warnings detected for the database
- ibatiS启动的异常 The content of elements must consist of well-formed character data or markup
- SharePoint 2013: The "New Web Application" button is disabled is the central administration
- SCOM2007: Moving the Operations Manager Database
- 如何窥探PDB的秘密?(How to Inspect the Content of a Program Database (PDB) File)
- user,group,or role 'test' already exists in the current database,error 15023
- Cannot execute as the database principal because the principal "guest" does not exist, this type of principal cannot be impersonated, or you do not have permission.
- MyBatis报错:The content of elements must consist of well-formed character data or markup.
- Error code: 0x80004005 "The Microsoft Access database engine cannot open or write to the file &
- mybatis的xml配置文件出现The content of elements must consist of well-formed character data or markup.
- [zz]The difference of importing cerficate into Local Computer or Registry physical store
- The content of elements must consist of well-formed character data or markup.
- android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or da
- Msg 15581 Please create a master key in the database or open the master key in the session
- SharePoint 2013: The "New Web Application" button is disabled is the central administration
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- resolution will not be reattempted until the update interval of central has elapsed or updates are f
- android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or da