Troubleshooting database configuration issues
You can encounter issues while upgrading Remedy AR System server due to incorrect database configurations. Use this guide to understand the appropriate logging and troubleshooting steps to either resolve the problem or create a BMC Support case.
Symptoms
- Upgrade failed due to insufficient database privileges.
- Upgrade failed to run the Database Upgrade Utility.
- Upgrade failed to resolve Database Service Name or SID.
Scope
- One or more users can experience this problem.
In a server group environment, these issues can affect one or more servers.
These issues can affect any server in the group that is currently being upgraded.
These issues can occur with primary or secondary servers.
Resolution
Step | Task | Description | ||||||||||||||||||||||||||||||||
1 | Review configuration checks for the SQL Server database. | If you are using a SQL server, perform the following checks:
For more information, see Configuring the Microsoft SQL Server. | ||||||||||||||||||||||||||||||||
2 | Review the configuration for Oracle database. | If you are using Oracle, perform the following checks:
| ||||||||||||||||||||||||||||||||
3 | AR Server Database Configuration checklist (common for SQL & Oracle DB) |
If the result count is higher than 0, see Symptom 4. | ||||||||||||||||||||||||||||||||
4 | Review Current Upgrade Status |
| ||||||||||||||||||||||||||||||||
5 | Collect, disable, and analyze the logs. | Collecting the logs: Run the Maintenance Tool Utility for each upgrade issue. See the steps to run the Maintenance Tool Utility. Enable and combine API & SQL logs in one log file and reproduce the issue. See the steps to capture combined logs. Disabling the logs: Disable API & SQL logs (if enabled). Revert steps from steps to capture combined logs. Analyzing the logs: You can review the logs yourself to try to identify error messages or behaviors. Use the following solution table to help identify the possible symptoms and solutions. | ||||||||||||||||||||||||||||||||
6 | Keywords to review logs |
2. armonitor.log: If the AR Server failed to start, open this log file in a text editor and search using these keywords:
3. RIK Logs: These logs are located under <ARInstallDiectory>\ARSystem\Logs directory. Review this log in a scenario of timeout error or definition import failure.
| ||||||||||||||||||||||||||||||||
7 | Create a BMC Support Case | Collect and send logs and detailed information when creating a case with BMC Support:
b. Collect the following files:
Attach the ZIP file containing your logs to your case (up to 2 GB). You can also upload the files on FTP. |
Cause and resolution for error messages
Symptom | Cause | Solution | Reference | |||
---|---|---|---|---|---|---|
1 | Windows Authentication is denied when connecting to the database client. | Domain Account does not have full Administrator permissions and does not have required roles. | Involve your DBA for any DB related activity and take required backup. Perform the following query by using a database client:
| For more information, see Configuring the Microsoft SQL Server. | ||
2 | A DB user such as ARAdmin is not able to access or modify the database table | Db User does not have the 'dbo' role. | Involve your DBA for any DB related activity and take required backup. Perform the following query by using a database client: For SQL Database:
For Oracle Database:
| For more information, see Remedy install fails with "INSUFFICIENT_DATABASE_LOGIN_PRIVILEGES" | ||
3 | PARAMETERIZATION not set on SQL Database Server | Remedy AR System uses SQL bind variables when interacting with the database server. | Involve your DBA for any db related activity and take required backup. Perform the following query by using a database client to set SQL Server SIMPLE Parameterization and READ_COMMITTED_SNAPSHOT:
For example: alter database ARSystem set recovery simple; | For more information, see Configuring the Microsoft SQL Server. | ||
4 | Invalid Views in VUI db Table | Database Upgrade utility failed to run | Involve your DBA for any db related activity and take required backup. Run the following SQL statements by using a database client at the AR Server Database level:
| |||
5 | Oracle database admin user does not have 'All Privileges and Roles'. | DB user is not able to run the upgrade or does not have All Privileges in order to update the db table. | Involve your DBA for any db related activity and take required backup Run the following SQL statements using a database client at Oracle Database level:
Set the following privileges for the role: Grant the role to the Db Admin User: | For more information, see Configuring Oracle Databases. For more information, see Remedy install fails with "INSUFFICIENT_DATABASE_LOGIN_PRIVILEGES" | ||
6 | servgrp_** database tables show incorrect or duplicate Server Connect Name entries under the serverName column | Database was copied from another instance Server name changed due to a policy or host name change | Involve your DBA for any db related activity and take required backup Run the following SQL statements by using a database client at the AR Server Database level:
Re-run the following statement to confirm that the changes were applied:
| |||
7 | dbVersion and/or currDbVersion columns does not show correct API Protocol Numbers | Database was copied from another instance. Database was not rolled back after previous failed upgrade attempt. | Involve your DBA for any db related activity and take required backup Ask DBA to roll back the Remedy Server Database to a stage before the upgrade.
| For more information, see BMC Remedy Release Version Strings | ||
8 | Upgrade failed with Oracle Database with error "ORA-12505, TNS:listener does not currently know of SID given in connect descriptor " | Incorrect Oracle Service Name configuration |
| |||
9 | Upgrade failed immediately with SQL Database Server with error "Failed to validate AR DB user sessions],Detail=[com.microsoft.sqlserver.jdbc.SQLServerException: User does not have permission to perform this action.]" | Insufficient permission for domain account |
| For more information, see Installer fails on MSSQL with Windows Authentication mode: "[Failed to validate AR DB user sessions],Detail=....User does not have permission to perform this action ]" | ||
10 | AR Server Services failed to start during upgrade, when using MSSQL Server Always On feature setting | Incorrect configuration | Involve your DBA for any db related activity and take required backup
Involve DBA to perform database related activities. | For more information, see Configure MS SQL Server Always On and Always On availability groups. | ||
11 | AR Server Upgrade failed with error "arserver.installer.preupgrade.descriptionFailed to run Database Upgrade Utility" | Invalid vuiType in VUI table | See details on symptom 4. |
Comments
Log in or register to comment.