+ All Categories
Home > Documents > Backing Up Blackberry Enterprise Server

Backing Up Blackberry Enterprise Server

Date post: 07-Apr-2018
Category:
Upload: otilius
View: 231 times
Download: 0 times
Share this document with a friend

of 15

Transcript
  • 8/6/2019 Backing Up Blackberry Enterprise Server

    1/14

    Backup Database BES ServerBerikut panduan backup dan restore database di BES Server :

    Referensi :http://www.blackberry.com/btsc

    How to move the BlackBerryConfiguration Database to a newMicrosoft 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 emailmessage 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 BlackBerryEnterprise 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 theenvironment:

    Microsoft SQL Server 2000 or 2005

    1. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement 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 ServerManagement Studio (Microsoft SQL Server 2005) when the process is complete.

    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03112&sliceId=SAL_Public&dialogID=126554456&stateId=0%200%2055911569http://www.blackberry.com/btsc/KB04789http://www.blackberry.com/btsc/KB04789http://www.blackberry.com/btsc/KB04789http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03112&sliceId=SAL_Public&dialogID=126554456&stateId=0%200%2055911569
  • 8/6/2019 Backing Up Blackberry Enterprise Server

    2/14

    Microsoft SQL Server Desktop Engine (MSDE)

    1. From a command prompt, type osql -E and press Enter.

    Note: If logging in to a named instance of the Microsoft SQL Server, use the followingcommand syntax to log in:

    osql -E -S \

    2. Type the following commands in the specified order:

    1> backup database to disk = "C:\.bak"

    2> go

    1> quit

    3. Close the command prompt.

    Task 2 - Prepare the new Microsoft SQL Server

    To prepare the Microsoft SQL Server, complete the following steps:

    Step 1Depending on the environment, assign the appropriate permissions.

    Note: Complete this task using an account with administrator access to the new MicrosoftSQL Server. Microsoft SQL Server 2005 requires the following server role permissions:System Administrator, Database Creator.

    Microsoft SQL Server 2000 or 2005

    1. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    2. Go to Microsoft Server Group > > Security.

    3. Right-click Logins and select New Login.

    4. From the General tab, click the double quotation marks ( "" ) button.

    5. From the Global Address List, select the name of the BlackBerry Enterprise Serverservice account.

    6. Click Add, then click OK.

    7. On the Server Roles tab, select Server Administrators and Database Creators.

    Note: In BlackBerry Enterprise Server software version 4.1, the System Administrator roleis needed for role-based administration.

    8. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    .

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    3/14

    MSDE

    1. Log in to the new Microsoft SQL Server.

    2. Right-click My Computer, and click Manage.

    3. Expand Local Users and Groups.

    4. Select Groups, and open the Administrators group.

    5. Click Add.

    6. Type the name of the BlackBerry Enterprise Server service account, and click CheckName.

    7. Click OK, and close the Computer Management window.

    Step 2

    Depending on the environment, turn on the correct server protocols.

    MSDE or Microsoft SQL Server 2000

    1. Click Start > Run.

    2. Type svrnetcn.

    3. Click OK. The Microsoft Server Network Configuration Utility opens.

    4. Make sure that TCP/IP and Named Pipes are both listed as protocols that have beenturned on.

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    4/14

    5. Close the Microsoft Server Network Configuration Utility.

    6. If a protocol is turned on in step 2, restart the Microsoft SQL services.

    Microsoft SQL Server 2005 Express or Microsoft SQL Server 2005

    1. Click Start > Microsoft SQL Server 2005 > Configuration Tools > Microsoft ServerConfiguration Manager> Microsoft Server 2005 Network Configuration.

    2. Select the Microsoft SQL Server instance that will be used for the BlackBerry ConfigurationDatabase.

    3. If necessary, turn on the TCP/IP and Named Pipes protocols.

    4. If a protocol is turned on in the previous step, restart the Microsoft SQL Serverservices.

    Step 3

    Make sure that the Microsoft Server Agent service is running.

    Note: This service does not exist in Microsoft SQL Server 2005 Express.

    1. Open the Windows Control Panel, then open Administrative Tools > Services.

    2. Verify that the Microsoft Server Agent service is started and that the Startup type isset to Automatic.

    3. Close the Services window.

    Step 4

    Update the BlackBerry Configuration Database schema.

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    5/14

    Important: If the BlackBerry Enterprise Server software was installed to create a blankBlackBerry Configuration Database on a new Microsoft SQL Server instance, do notperform the following task because the schema has already been updated.

    1. Download the installation package for the version of the BlackBerry EnterpriseServer that is being used.

    2. Extract the contents of the installation package.3. Copy the Database folder to the new Microsoft SQL Server.

    Note: The default location of this folder is c:\Research In Motion\BlackBerryEnterprise Server 4.x.x\Database.

    4. Go to the Database folder and open the BESMgmt.cfg file in a text editor, such asNotepad.

    5. Locate the DB_NAME=BESMgmt or (DATABASE_NAME=BESMgmt) linedepending on the version of the upgrade and then make sure that the namespecified matches the BlackBerry Configuration Database name.

    6. If using a named instance of Microsoft SQL Server, change the SERVER=local lineto SERVER=\ and close the file. Save the changes.

    7. From a command prompt, go to the Database directory.

    8. Type createdb.exe BESMgmt.cfg and press Enter.

    9. After the command has finished executing, close the command prompt.

    Task 3 - Restore the BlackBerry Configuration Database

    Depending on the environment, use one of the methods below to restore the BlackBerryConfiguration Database. There are two methods available: restoring the BlackBerryConfiguration Database from a backup, or detaching and re-attaching the BlackBerry

    Configuration Database files. The following are the steps for MSDE and Microsoft SQLServer 2000 and 2005.

    Restore database method for MSDE

    BlackBerry Configuration Database on a Microsoft SQL Server with the samedirectory structure

    1. Copy the BlackBerry Configuration Database backup to the C:\ path of the newMicrosoft SQL Server.

    2. From a command prompt, type osql -E and press Enter.

    Note: When logging in to a named instance of the Microsoft SQL Server, use thefollowing command:

    osql -E -S \

    3. Type the following commands in the specified order:

    1> restore database from disk = "c:\.bak" with recovery, replace

    2> go

    1> quit

    4. Close the command prompt.

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    6/14

    BlackBerry Configuration Database on a Microsoft SQL Server with a differentdirectory structure

    1. Copy the BlackBerry Configuration Database backup to the C:\ path of the newMicrosoft SQL Server.

    2. From a command prompt, type osql-E and press Enter.

    Note: When logging in to a named instance of the Microsoft SQL Server, use thefollowing command:

    osql -E -S \

    3. Type the following commands in the specified order:

    1> restore database from disk = "C:\.bak" with move "_data" to"\MSSQL\Data\.mdf", move "_log" to"\MSSQL\Data\.ldf"

    2> go

    1> quit

    Note: To determine the logical file names _data and _logfor the BlackBerryConfiguration Database, complete the following steps:

    1. On the Microsoft SQL Server hosting the BlackBerry ConfigurationDatabase, open a command prompt and type the following command:

    OSQL -E or OSQL -E -S \

    2. Type the following commands in the specified order, pressing Enteraftereach command:

    1> exec sp_helpdb

    2> go

    3. The items circled in the following image are the two logical file names for theBlackBerry Configuration Database:

    4. Close the command prompt.

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    7/14

    Restore database method for Microsoft SQL Server 2000 or 2005

    1. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    2. Right-click the Databases (for example, BESMgmt).

    3. Select Restore Database.

    4. Click From Device and browse for the .bak file.

    5. Click OK to accept selection.

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

    Detach and re-attach database method for Microsoft SQL Server 2000 or 2005

    1. Open the Control Panel, and open Administrative Tools > Services.

    2. Stop each service that has a name that begins with BlackBerry.

    3. Log in to the existing Microsoft SQL Server.

    4. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    5. Right-click the BlackBerry Configuration Database name.

    6. Select All Tasks, and click Detach Database (see screen shot below), or forMicrosoft SQL Server 2005 select Tasks and click Detach.

    7. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    8. Go to the Microsoft SQL ServerData directory and copy the MDF and LDF files.

    Note: The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\and the default filenames are BESMgmt.mdfand BESMgmt.ldf.

    9. Move the file copies to the new Microsoft SQL Server.

    10. Log in to the new Microsoft SQL Server.

    11. Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    12. Right-click the BlackBerry Configuration Database name.

    13.Select All Tasks, then click Detach Database, or for Microsoft SQL Server 2005select Tasks and click Detach.

    14.Move the files that were copied in step 8 to the Microsoft SQL ServerDatadirectory.

    15.When prompted to overwrite the files, clickYes.16.In Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server

    Management Studio (Microsoft SQL Server 2005), right-click the Database folder,then click All Tasks.

    17.Select Attach Database or for Microsoft SQL 2005 right-click the Database folderand select Attach.

    18.Select the MDF file to attach, then click OK (see screen shot below).

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    8/14

    19. Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL ServerManagement Studio (Microsoft SQL Server 2005).

    Detach and re-attach database method for MSDE

    1. Open the Control Panel, and open Administrative Tools > Services.

    2. Stop each service that has a name that begins with BlackBerry.

    3. Log in to the existing MSDE Server.

    4. From a command prompt, type osql -E and press Enter.

    Note: When logging in to a named instance of the Microsoft SQL Server, use the

    following command:osql -E -S \

    5. Type the following commands in the specified order:

    1> exec sp_detach_db @dbname = ""

    2> go

    1> quit

    6. Go to the Microsoft SQL ServerData directory and copy the MDF and LDF files.

    Note: The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\and the default filenames are BESMgmt.mdfand BESMgmt.ldf.

    7. Move the files that were copied in step 6 to the new Microsoft SQL Server.

    8. Log in to the new MSDE Server.

    9. From a command prompt, type osql -E and press Enter.

    Note: When logging in to a named instance of Microsoft SQL Server, use thefollowing command:

    osql -E -S \

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    9/14

    10. Type the following commands in the specified order:

    1> exec sp_detach_db @dbname = ""

    2> go

    2> quit

    11.Move the files that were copied in step 6 to the Microsoft SQL ServerDatadirectory. When prompted to overwrite the files, clickYes.

    12.From a command prompt, type osql -Eand press Enter.

    Note: If logging in to a named instance of Microsoft SQL Server, use the followingcommand syntax to log in:

    osql -E -S \

    13. Type the following commands in the specified order:

    1> exec sp_attach_db @dbname = "",

    2> @filename1 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\.mdf",

    3> @filename2 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\.ldf"4> go

    1> quit

    14. Close the command prompt.

    Task 4 - Configure the BlackBerry Enterprise Server

    To configure the BlackBerry Enterprise Server to connect to the new BlackBerry Configuration Database,

    complete the following steps:

    1. On the BlackBerry Enterprise Server, click Start > Programs > BlackBerryEnterprise Server> BlackBerry Server Configuration.

    2. On the Database Connectivity tab, select Change Database. (see screen shotbelow)

    3. In the Change Database Wizard, specify the new Microsoft SQL Server name andthe existing BlackBerry Configuration Database name.

    4. Continue with the wizard. Make sure that the Start Services check box is selected,and click Finish.

    5. Open Administrative Tools > Services and make sure that all of the BlackBerryEnterprise Server services started successfully.

    Note: The BlackBerry Database Consistency Service might be unavailable; this isnormal.

    6. Open BlackBerry Manager and make sure that the correct database is set up bycompleting the following:

    For BlackBerry Enterprise Server software version 4.0

    1. Right-click BlackBerry Manager, and select Properties.

    2. Select the Properties tab and verify that the Microsoft SQL Serverinformation and BlackBerry Configuration Database name are correct.

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    10/14

    For BlackBerry Enterprise Server software version 4.1

    3. Go to Tools > Options > Database and verify that the Microsoft SQLServer information and BlackBerry Configuration Database name arecorrect.

    4. Verify that all of the BlackBerry smartphone user accounts appear on

    BlackBerry Manager.7. If there is a remote BlackBerry Manager, make sure to check the settings from step

    6.

    8. Test email message flow from the BlackBerry smartphone.

    For BlackBerry Enterprise Server software version 4.1, install the databasenotification system

  • 8/6/2019 Backing Up Blackberry Enterprise Server

    11/14

    Note: This is only required in smaller environments running a maximum of 3 BlackBerryEnterprise Server instances.

    1. Copy the RimEsp.dll file to the C:\Program Files\Microsoft SQLServer\MSSQL\Binn folder on the new Microsoft SQL Server.

    2. In Microsoft Query Analyzer, go to the Database\DBInstallScripts\SQLServer\4.1

    folder on the installation media.

    3. Open the NotifyInstall.sql file and replace with the name ofthe BlackBerry Configuration Database. (see screen shot below)

    4. Run the script.

    5. Verify that the Microsoft Query Analyzer displays the following message:

    Function dbo.xp_RIM_xxxx registered.

    For BlackBerry Enterprise Server software version 5.0

    BlackBerry Enterprise Server 5.0 does not have a change database option like previousversions. KB18129 explains the process for BlackBerry Enterprise Server 5.0.

    ADDITIONAL INFORMATION

    When moving from an MSDE server instance to a full Microsoft SQL Server instance on aseparate computer, see KB04039for information on how to increase the mail agentlimitation on the BlackBerry Enterprise Server.

    If receiving an error that the BlackBerry Configuration Database is in use, complete thefollowing steps:

    1. 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

    http://www.blackberry.com/btsc/KB18129http://www.blackberry.com/btsc/KB04039http://www.blackberry.com/btsc/KB04039http://www.blackberry.com/btsc/KB18129http://www.blackberry.com/btsc/KB04039
  • 8/6/2019 Backing Up Blackberry Enterprise Server

    12/14

    1> use

    2> go

    1> exit

    2. Detach the BlackBerry Configuration Database by typing the following commandsat a command prompt:

    OSQL -E

    1> use master

    2> sp_detach_db @dbname =

    3> go

    1> exit

    3. Attach the BlackBerry Configuration Database by typing the following commands ata command prompt:

    OSQL -E

    1> use master

    2> exec sp_attach_db @dbname = "",

    3> @filename1 = "C:\\.mdf",

    4> @filename2 = "C:\\.ldf"

    5> go

    1> exit

    Note:The default path is C:\Program Files\Microsoft SQLServer\MSSQL\Data\ and the default filenames are BESMgmt.mdfandBESMgmt.ldf.

    How to change the BlackBerry ConfigurationDatabase in BlackBerry Enterprise Server5.0Article ID: KB18129

    Type: Support Content

    http://www.blackberry.com/btsc/KB18129http://www.blackberry.com/btsc/KB18129
  • 8/6/2019 Backing Up Blackberry Enterprise Server

    13/14

    Last Modified: 10-22-2010

    Print Email Document Bookmark

    Product(s) Affected: BlackBerry Enterprise Server

    BlackBerry Enterprise Server Express for Microsoft Exchange

    Search the knowledge base:

    Top of Form

    UMAS_ARCHIVE GuidedSearch /rfPlayerWidget.d search

    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 and 4.1, Change Database is available in the BlackBerryServer Configuration Panel. This option is no longer available as of BlackBerry EnterpriseServer 5.0.

    To configure the BlackBerry Enterprise Server to use a new BlackBerry Configuration Databaseor a new database server, the BlackBerry Enterprise Server setup application must be run again.

    Important: This will stop and restart the BlackBerry Enterprise Server and may delay messagedelivery to BlackBerry smartphones.

    Steps to Configure the BlackBerry Enterprise Server 5.0 to connect to the new BlackBerry ConfigurationDatabase:

    1. Run Setup.exe from the source installation folder. By default, this location is

    :\Research In Motion\BlackBerry Enterprise Server 5.0.0 or:\Research In Motion\BlackBerry Enterprise Server 5.0.1

    2. Accept the License Agreement and click Next.

    3. On the Database Information Screen, update the Database server information withthe new Microsoft SQL Server name and the restored BlackBerry ConfigurationDatabase name.

    4. Reinstall any previously installed Maintenance Releases.

    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://supportforums.blackberry.com/http://www.twitter.com/blackberryhelphttp://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://supportforums.blackberry.com/http://www.twitter.com/blackberryhelphttp://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB18129
  • 8/6/2019 Backing Up Blackberry Enterprise Server

    14/14

    5. Repeat these steps on any remote nodes of the BlackBerry Administration Server,BlackBerry Mobile Data System Connection Service, and BlackBerry MonitoringServer.

    Note: After the setup has completed and the services restarted, message flow and organizer datasynchronization will continue as usual. No interaction is required by the BlackBerry smartphoneusers.


Recommended