Article ID: 976066 - Last Review: October 12, 2009 - Revision: 1.0

A new Exchange 2007 database cannot be mounted, and you receive a "MapiExceptionNoAccess: Unable to mount database, (hr=0x80070005, ec=-2147024891)" error

Expand all | Collapse all

SYMPTOMS

A database cannot be mounted after you create a new mailbox database on a computer that is running Microsoft Exchange Server 2007. If you troubleshoot the issue, you may notice that a database file is created successfully at the specified location. However, the following error message is generated in the Exchange log file:
Failed to mount database <DatabaseName>. Error: Exchange is unable to mount the database that you specified. Specified database: <Exchange1\Exchange1-SG2\DB-3>; Error code: MapiExceptionNoAccess: Unable to mount database, (hr=0x80070005, ec=-2147024891)

Additionally, the following event is logged in the Application log:
Event Type: Error
Source: MSExchangeIS
Event Category: General
Event ID: 9519
Description: Error 0x80070005 starting database "<EXCHANGE1-SG2\DB-3>" on the Microsoft Exchange Information Store. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 46 61 69 6c 65 64 20 74 Failed t 0008: 6f 20 73 65 74 20 44 42 o set DB 0010: 20 63 72 65 61 74 65 64 created 0018: 20 61 74 74 72 69 62 75 attribu 0020: 74 65 20 69 6e 20 74 68 te in th 0028: 65 20 44 53 00 5b 44 49 e DS.[DI 0030: 41 47 5f 43 54 58 5d 00 AG_CTX].

In this scenario, if you collect a TraceControl for the Store component, you receive the following output.
212544	0 272 Store tagInformation:  Failed to set Database Created attribute in the DS
212545	0 272 Store tagError Error: ecAccessDenied-MAPI_E_NO_ACCESS (0x80070005) in EcStartMDB
212546	0 272 Store tagInformation: EcStartMDB: Failed to start MDB (DN from GUID)  /DC=com/DC=Fourthcoffee/CN=Configuration/CN=Services/CN=Microsoft Exchange/CN=Fourthcoffee/CN=Administrative Groups/CN=Exchange Administrative Group (FYDIBOHF23SPDLT)/CN=Servers/CN=Exchange1/CN=InformationStore/CN=Exchange1-SG2/CN=DB-3, ec=80070005, WinError: 0 Failed to set DB created attribute in the DS

CAUSE

This issue occurs because the Exchange Administrative group is missing write permission for the msExchDatabaseCreated object.

RESOLUTION

Write permission for the msExchDatabaseCreated object is inherited from the Exchange Organization container. To resolve this issue, run the following command to add the required permission at the organization level. To do this, follow these steps:
  1. Log on to Exchange server or the administrator workstation by using an account that has administrative credentials.
  2. Open Exchange Management Shell.
  3. In Exchange Management Shell, type CD \, and then press ENTER.

    Note There is a space between the CD command and the backslash character (\).
  4. Run the following command.
    Add-ADPermission -id "CN=<FourthCoffee>,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=<fourthcoffee>,DC=com" -User "Exchange Servers" -AccessRights WriteProperty -Properties "ms-Exch-Database-Created"
    Note Change the distinguished name to match the distinguished name of your Exchange organization. You can obtain the distinguished name of your organization by using the ADSIEDIT or LDP tools.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Exchange Server 2007 Enterprise Edition
  • Microsoft Exchange Server 2007 Standard Edition
Keywords: 
kbexpertiseinter kbsurveynew KB976066
 

Article Translations

 

Related Support Centers