Database initialization fails due to missing SQL Server permissions
This article explains how to resolve database initialization errors in Adobe Experience Manager Forms Configuration Manager that are caused by missing or insufficient SQL Server permissions.
Description description
Environment
- Adobe Experience Manager (AEM) Forms Service Pack 23
- Windows Server 2016
- JBoss 7.1.4 (clustered)
- SQL Server 2016
Issue/Symptoms
- Configuration Manager fails during the Database Initialization step.
- Server log contains warnings about missing permissions, such as:
Missing permissions "DATABASE:CREATE TABLE, DATABASE:CREATE VIEW, SCHEMA:ALTER, SCHEMA:REFERENCES"on database.
- Failure to create and seed helper tables: execute non-query failure (insert into EDCVERSIONENTITYSQ2 values(…))
- Error: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name ‘EDCVERSIONENTITYSQ2’.
- User Manager store initialization fails with: ALC-TTN-011-003: Bootstrapping failed for platform component
[UserManager]. getProvider failure: factory not initialized.
Cause
The AEM Forms database login lacked sufficient permissions to create required schema objects, resulting in initialization failures and errors in Configuration Manager.
Resolution resolution
To fix the database initialization issue, follow these steps:
-
Assign the AEM Forms database login the
db_ownerrole on the Forms database. -
In SQL Server Management Studio (SSMS), go to Security
>Logins>[your login]>User Mapping. Select the Forms database and checkdb_owner. -
Alternatively, run the following SQL command:
code language-none ALTER ROLE db_owner ADD MEMBER [ your_forms_login] ; -
Ensure the login’s default schema is
dbo. -
Confirm the login is mapped to the correct, empty Forms database (not to
master). -
Set the database to
READ_COMMITTED_SNAPSHOT ON, which is required for AEM Forms:code language-none ALTER DATABASE [ YourFormsDB] SET READ_COMMITTED_SNAPSHOT ON; -
For Amazon RDS SQL Server, verify that the permission grant is effective, as the RDS admin login may not have full sysadmin rights. Confirm effective permissions after applying changes.
-
Re-run Configuration Manager and repeat only the Database Initialization step to verify the issue is resolved.