To change SharePoint_AdminContent database name
{ assuming the following ...
- Central admin site = "http://mysharepoint:13311/"
- Service account = "myDomain\John Doe" - (allow dbcreator role temporarily while performing this name change task)
- Databse server name = "myDatabaseServer"
- New admin content database name = "SharePoint_AdminContent"
- Backup current admin content database and restore it to a new database with the desirable name (i.e. SharePoint_AdminContent)
- In central admin site, remove the content database of the Central Admin site. After this, the Central Admin site becomes non- functional.
- On the web server that runs SharePoint Central Admin site, give local admin rights to the impersonator account("myDomain\John Doe") that connects to the database server for SharePoint.
- On the web server that runs SharePoint Central Admin site, open the command console and run the following command, [runas /u:"myDomain\John Doe" cmd.exe]. Enter password of "myDomain\John Doe" when prompted. A new console window will open up.
- This will allow "myDomain\John Doe" to perform the following tasks as service account and relieve you of lots of permission-related conflict.
- On the new console window (running under "myDomain\John Doe"), go to the following path "C:\Progra~1\common files\Microsoft Shared\Web Server Extensions\12\bin\".
- Run "stsadm -o addcontentdb -url "http://mysharepoint:13311/" - databasename "SharePoint_AdminContent" -databaseserver "myDatabaseServer"
To change SharePoint_Config database name
{ assuming the following ...
- Central admin site = "http://mysharepoint:13311/"
- Service account = "myDomain\John Doe" - (allow dbcreator role temporarily for this example)
- Databse server name = "myDatabaseServer"
- New config database name = "SharePoint_Config"
::Method A
- Backup current config database. Create a new database with the desired name (i.e., SharePoint_Config) and restore from the database backup of the original config database.
- On the web server that runs SharePoint Central Admin site, give local admin rights to the impersonator account("myDomain\John Doe") that connects to the database server for SharePoint.
- On the web server that runs SharePoint Central Admin site, open the command console and run the following command, [ runas /u:"myDomain\John Doe" cmd.exe ]. Enter password of "myDomain\John Doe" when prompted. A new console window will open up.
- This will allow "myDomain\John Doe" to perform the following tasks as service account and relieve you of lots of permission-related conflicts.
- On the new console window (running under "myDomain\John Doe"), go to the following path "C:\Progra~1\common files\Microsoft Shared\Web Server Extensions\12\bin\".
- Run stsadm -o deleteconfigdb
- Run stsadm -o setconfigdb -connect -databaseserver "myDatabaseServer" -databasename "SharePoint_Config" -farmuser "myDomain\John Doe" -farmpassword "
" - Run stsadm -o setadminport 13311.
- Run Configuration Wizard to re-install the Central Admin site.
::Method B
- Backup current config database. Create a new database with the desired name (i.e., SharePoint_Config) and restore from the database backup of the original config database.
- Run the SharePoint Products and Technologies Configuration Wizard on the server that hosts Central Admin Site.
- Disjoin from the current config database (current farm).
- Run the Configuration Wizard again and join an existing farm by specifying the database server name ("myDatabaseServer") and the new config database name ("SharePoint_Config").
- Run the Configuration Wizard again. Choose the option that the machine (server) will continue to host the web site.
- On the next window, you will see the URL of the Central Admin Site listed as (http://mysharepoint:13311/). Click Next.
- After the Wizard completes, you should have the Central Admin site come up automatically(http://mysharepoint:13311/).
No comments:
Post a Comment