You are on page 1of 14

Backup Database BES Server

Berikut panduan backup dan restore database di BES Server : Referensi : http://www.blackberry.com/btsc

How to move the BlackBerry Configuration Database to a new Microsoft SQL Server instance
OVERVIEW

The BlackBerry Enterprise Server services must be stopped during the process described in this article. Important: Restarting certain BlackBerry Enterprise Server services will delay email message delivery to BlackBerry smartphones. For more information, see KB04789. To move the BlackBerry Configuration Database to a new Microsoft SQL Server instance, complete the following tasks: Note: In a Microsoft Exchange environment, complete the tasks using the BlackBerry Enterprise Server service account unless otherwise stated.
1. Back up the BlackBerry Configuration Database. 2. Prepare the new Microsoft SQL Server. 3. Restore the BlackBerry Configuration Database. 4. Configure the BlackBerry Enterprise Server.

Task 1 - Back up the BlackBerry Configuration Database
To back up the BlackBerry Configuration Database, complete the appropriate steps for the environment: Microsoft SQL Server 2000 or 2005 1. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005).
2. Right-click the BlackBerry Configuration Database (for example, BESMgmt). 3. Select Backup Database. 4. Click Add to specify the Directory Name and File Name. 5. Click OK to accept the settings. 6. Click OK again to start the backup process.

7. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005) when the process is complete.

click the double quotation marks ( "" ) button.Microsoft SQL Server Desktop Engine (MSDE) 1. then click OK. 5. From a command prompt. Microsoft SQL Server 2005 requires the following server role permissions: System Administrator. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). . complete the following steps: Step 1 Depending on the environment. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). select the name of the BlackBerry Enterprise Server service account. 6. 2. Microsoft SQL Server 2000 or 2005 1. Note: In BlackBerry Enterprise Server software version 4.bak" 2> go 1> quit 3. select Server Administrators and Database Creators. From the General tab. 4. the System Administrator role is needed for role-based administration. type osql -E and press Enter. Task 2 . Note: If logging in to a named instance of the Microsoft SQL Server. Type the following commands in the specified order: 1> backup database to disk = "C:\. use the following command syntax to log in: osql -E -S \ 2. assign the appropriate permissions. On the Server Roles tab. Click Add. 7. Close the command prompt. Right-click Logins and select New Login. . Note: Complete this task using an account with administrator access to the new Microsoft SQL Server.1. From the Global Address List. 8. Go to Microsoft Server Group > <Microsoft_Server_name> > Security. 3.Prepare the new Microsoft SQL Server To prepare the Microsoft SQL Server. Database Creator.

The Microsoft Server Network Configuration Utility opens. Expand Local Users and Groups. Make sure that TCP/IP and Named Pipes are both listed as protocols that have been turned on. 5. . 7. Click Add. and close the Computer Management window. 3.MSDE 1. Type svrnetcn. Log in to the new Microsoft SQL Server. and open the Administrators group. 4. Click OK. Click OK. Step 2 Depending on the environment. 6. Right-click My Computer. and click Manage. Click Start > Run. Type the name of the BlackBerry Enterprise Server service account. 3. 4. Select Groups. turn on the correct server protocols. 2. 2. MSDE or Microsoft SQL Server 2000 1. and click Check Name.

2. Note: This service does not exist in Microsoft SQL Server 2005 Express. Verify that the Microsoft Server Agent service is started and that the Startup type is set to Automatic. then open Administrative Tools > Services. Open the Windows® Control Panel. Close the Microsoft Server Network Configuration Utility.5. If necessary. Select the Microsoft SQL Server instance that will be used for the BlackBerry Configuration Database. 3. 3. Close the Services window. turn on the TCP/IP and Named Pipes protocols. 1. . If a protocol is turned on in step 2. restart the Microsoft SQL services. Click Start > Microsoft SQL Server 2005 > Configuration Tools > Microsoft Server Configuration Manager > Microsoft Server 2005 Network Configuration. Microsoft SQL Server 2005 Express or Microsoft SQL Server 2005 1. 6. restart the Microsoft SQL Serverservices. Step 3 Make sure that the Microsoft Server Agent service is running. Step 4 Update the BlackBerry Configuration Database schema. 4. 2. If a protocol is turned on in the previous step.

type osql -E and press Enter.x\Database. Note: When logging in to a named instance of the Microsoft SQL Server.bak" with recovery. change the SERVER=local line to SERVER=\ and close the file. 5. 8.x.cfg and press Enter. use the following command: osql -E -S \ 3. Note: The default location of this folder is c:\Research In Motion\BlackBerry Enterprise Server 4. 7. Copy the BlackBerry Configuration Database backup to the C:\ path of the new Microsoft SQL Server. Close the command prompt. The following are the steps for MSDE and Microsoft SQL Server 2000 and 2005.Important: If the BlackBerry Enterprise Server software was installed to create a blank BlackBerry Configuration Database on a new Microsoft SQL Server instance. . From a command prompt. 2. Go to the Database folder and open the BESMgmt. Download the installation package for the version of the BlackBerry Enterprise Server that is being used. do not perform the following task because the schema has already been updated. 6. Locate the DB_NAME=BESMgmt or (DATABASE_NAME=BESMgmt) line depending on the version of the upgrade and then make sure that the name specified matches the BlackBerry Configuration Database name. Save the changes. 4. There are two methods available: restoring the BlackBerry Configuration Database from a backup. 9. Type createdb. Task 3 . use one of the methods below to restore the BlackBerry Configuration Database. go to the Database directory.Restore the BlackBerry Configuration Database Depending on the environment. Extract the contents of the installation package.exe BESMgmt. 2.cfg file in a text editor. Copy the Database folder to the new Microsoft SQL Server. such as Notepad. 3. 1. or detaching and re-attaching the BlackBerry Configuration Database files. If using a named instance of Microsoft SQL Server. Restore database method for MSDE BlackBerry Configuration Database on a Microsoft SQL Server with the same directory structure 1. After the command has finished executing. From a command prompt. Type the following commands in the specified order: 1> restore database from disk = "c:\. replace 2> go 1> quit 4. close the command prompt.

Type the following commands in the specified order. move "_log" to "<new_path>\MSSQL\Data\. . complete the following steps: 1. From a command prompt.ldf" 2> go 1> quit Note: To determine the logical file names _data and _log for the BlackBerry Configuration Database. use the following command: osql -E -S \ 3. Copy the BlackBerry Configuration Database backup to the C:\ path of the new Microsoft SQL Server. open a command prompt and type the following command: OSQL -E or OSQL -E -S <SQL_Server_name>\<instance_name> 2. Close the command prompt. Note: When logging in to a named instance of the Microsoft SQL Server. On the Microsoft SQL Server hosting the BlackBerry Configuration Database. 2. pressing Enter after each command: 1> exec sp_helpdb <BlackBerry_Configuration_Database_Name> 2> go 3.mdf".bak" with move "_data" to "<new_path>\MSSQL\Data\. Type the following commands in the specified order: 1> restore database from disk = "C:\. The items circled in the following image are the two logical file names for the BlackBerry Configuration Database: 4. type osql -E and press Enter.BlackBerry Configuration Database on a Microsoft SQL Server with a different directory structure 1.

or for Microsoft SQL Server 2005 select Tasks and click Detach. 12. Click From Device and browse for the . Select All Tasks. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). 4. Detach and re-attach database method for Microsoft SQL Server 2000 or 2005 1. Select Restore Database.bak file. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005) when the process is complete. 11. 3. Move the files that were copied in step 8 to the Microsoft SQL Server Data directory. 18. 3. Select All Tasks. 5. Right-click the BlackBerry Configuration Database name. 6. then click Detach Database. Select the MDF file to attach. In Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). or for Microsoft SQL Server 2005 select Tasks and click Detach. 14. then click All Tasks. then click OK (see screen shot below). Right-click the Databases (for example. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). Log in to the new Microsoft SQL Server. 15. 5. right-click the Database folder. . 16. and click Detach Database (see screen shot below). Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). Move the file copies to the new Microsoft SQL Server. and open Administrative Tools > Services. When prompted to overwrite the files. Open the Control Panel. 7. Stop each service that has a name that begins with BlackBerry. 4. 2.Restore database method for Microsoft SQL Server 2000 or 2005 1. BESMgmt). Note: The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt. click Yes. 17. Right-click the BlackBerry Configuration Database name. Log in to the existing Microsoft SQL Server.ldf. 13. Go to the Microsoft SQL Server Data directory and copy the MDF and LDF files. 6. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005). 9. 2.mdf and BESMgmt. 8. Select Attach Database or for Microsoft SQL 2005 right-click the Database folder and select Attach. 10. Click OK to accept selection.

and open Administrative Tools > Services. 8. Open the Control Panel. 4. Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "" 2> go 1> quit 6. Log in to the new MSDE Server. 3.ldf. From a command prompt. Stop each service that has a name that begins with BlackBerry. 9. use the following command: osql -E -S \ 5. type osql -E and press Enter. Go to the Microsoft SQL Server Data directory and copy the MDF and LDF files. From a command prompt. Note: When logging in to a named instance of the Microsoft SQL Server. Note: The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt. Log in to the existing MSDE Server. 7. Move the files that were copied in step 6 to the new Microsoft SQL Server. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005).19.mdf and BESMgmt. use the following command: osql -E -S \ . 2. Note: When logging in to a named instance of Microsoft SQL Server. type osql -E and press Enter. Detach and re-attach database method for MSDE 1.

Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "" 2> go 2> quit 11. specify the new Microsoft SQL Server name and the existing BlackBerry Configuration Database name. . Task 4 . (see screen shot below) 3. Open Administrative Tools > Services and make sure that all of the BlackBerry Enterprise Server services started successfully. click Start > Programs > BlackBerry Enterprise Server > BlackBerry Server Configuration. Move the files that were copied in step 6 to the Microsoft SQL Server Data directory. Note: The BlackBerry Database Consistency Service might be unavailable. 2> @filename1 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\. complete the following steps: 1. Continue with the wizard. From a command prompt.ldf" 4> go 1> quit 14. Make sure that the Start Services check box is selected. this is normal. Select the Properties tab and verify that the Microsoft SQL Server information and BlackBerry Configuration Database name are correct. and select Properties. 4. In the Change Database Wizard. Right-click BlackBerry Manager.10.0 1. When prompted to overwrite the files. Note: If logging in to a named instance of Microsoft SQL Server. Type the following commands in the specified order: 1> exec sp_attach_db @dbname = "".Configure the BlackBerry Enterprise Server To configure the BlackBerry Enterprise Server to connect to the new BlackBerry Configuration Database. use the following command syntax to log in: osql -E -S \ 13. 5. type osql -E and press Enter. Close the command prompt. 6.mdf". 2. click Yes. 12. On the Database Connectivity tab. On the BlackBerry Enterprise Server. 2. Open BlackBerry Manager and make sure that the correct database is set up by completing the following: For BlackBerry Enterprise Server software version 4. select Change Database. and click Finish. 3> @filename2 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\.

make sure to check the settings from step 6. 4.1.For BlackBerry Enterprise Server software version 4. 8. Test email message flow from the BlackBerry smartphone. 7.1 3. If there is a remote BlackBerry Manager. install the database notification system . For BlackBerry Enterprise Server software version 4. Verify that all of the BlackBerry smartphone user accounts appear on BlackBerry Manager. Go to Tools > Options > Database and verify that the Microsoft SQL Server information and BlackBerry Configuration Database name are correct.

dll file to the C:\Program Files\Microsoft SQL Server\MSSQL\Binn folder on the new Microsoft SQL Server. 1. For BlackBerry Enterprise Server software version 5.xp_RIM_xxxx registered. Verify that the Microsoft Query Analyzer displays the following message: Function dbo. (see screen shot below) 4.0 does not have a change database option like previous versions.0 BlackBerry Enterprise Server 5. 2. go to the Database\DBInstallScripts\SQLServer\4. If receiving an error that the BlackBerry Configuration Database is in use. Run the script. Remove all the BlackBerry smartphone user accounts from the BlackBerry Configuration Database by typing the following commands at a command prompt: OSQL -E 1> use master 2> alter database database_name set single_user with rollback immediate 3> go . Open the NotifyInstall.0. In Microsoft Query Analyzer. Copy the RimEsp. 5. complete the following steps: 1. KB18129 explains the process for BlackBerry Enterprise Server 5.1 folder on the installation media. 3. ADDITIONAL INFORMATION When moving from an MSDE server instance to a full Microsoft SQL Server instance on a separate computer. see KB04039 for information on how to increase the mail agent limitation on the BlackBerry Enterprise Server.sql file and replace <_databasename> with the name of the BlackBerry Configuration Database.Note: This is only required in smaller environments running a maximum of 3 BlackBerry Enterprise Server instances.

Attach the BlackBerry Configuration Database by typing the following commands at a command prompt: OSQL -E 1> use master 2> exec sp_attach_db @dbname = "<database_name>". 4> @filename2 = "C:\<Path_to_transaction_log_file>\<database_name>.ldf.1> use <database_name> 2> go 1> exit 2.mdf and BESMgmt.mdf". 3> @filename1 = "C:\<Path_to_database_file>\<database_name>.0 Article ID: KB18129 Type: Support Content . Detach the BlackBerry Configuration Database by typing the following commands at a command prompt: OSQL -E 1> use master 2> sp_detach_db @dbname = <database_name> 3> go 1> exit 3. How to change the BlackBerry Configuration Database in BlackBerry Enterprise Server 5.ldf" 5> go 1> exit Note: The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt.

1.do search GuidedSearch SAL_Public LA_eng_US gs true true true Bottom of Form • • Visit BlackBerry Community Support Forums Follow us on Twitter® @BlackBerryHelp Collapse all | Expand all Jump to: Overview | Environment Overview In BlackBerry Enterprise Server 4.0. On the Database Information Screen. Accept the License Agreement and click Next. Important: This will stop and restart the BlackBerry Enterprise Server and may delay message delivery to BlackBerry smartphones.0 to connect to the new BlackBerry Configuration Database: 1. This option is no longer available as of BlackBerry Enterprise Server 5. Reinstall any previously installed Maintenance Releases. Change Database is available in the BlackBerry Server Configuration Panel.0. 3. . Steps to Configure the BlackBerry Enterprise Server 5.exe from the source installation folder.0. update the Database server information with the new Microsoft SQL Server name and the restored BlackBerry Configuration Database name. the BlackBerry Enterprise Server setup application must be run again.Last Modified: 10-22-2010 PrintEmail Document Bookmark Product(s) Affected: • • BlackBerry® Enterprise Server BlackBerry® Enterprise Server Express for Microsoft® Exchange Top of Form Search the knowledge base: UMAS_ARCHIVESTATE_ACTIVE_1_1 /rfPlayerWidget. Run Setup. To configure the BlackBerry Enterprise Server to use a new BlackBerry Configuration Database or a new database server. By default. 4.0 and 4.1 2.0 or <drive>:\Research In Motion\BlackBerry Enterprise Server 5. this location is <drive>:\Research In Motion\BlackBerry Enterprise Server 5.

No interaction is required by the BlackBerry smartphone users.5. BlackBerry® Mobile Data System Connection Service. message flow and organizer data synchronization will continue as usual. and BlackBerry Monitoring Server. Repeat these steps on any remote nodes of the BlackBerry Administration Server. . Note: After the setup has completed and the services restarted.