Author: Paweł Drab
Introduction
Migration of databases to a different database environment or their recreation in such environment may require changing database name. If references to a database are present in several locations, external, logical change of database name is insufficient. The article describes the procedure of changing database name by modifying configuration.
Procedure
The procedure involves:
in locations where it is not possible to choose the <current database> option or where the query contains direct reference to the database.
If the problem applies to a newly installed WEBCON BPS app, it is better to reinstall the app than to enter the changes manually.
Changes in configuration entries
Configuration database
Content database
Attachment database
Archive database
1 | -- CONFIG
2 | select CD_ID, CD_Name, CD_Type from ContentDatabases
3 |
4 | -- CONTENT
5 | select ARD_ID, ARD_Name from ArchivingDatabases
6 |
7 | select ADB_ID, ADB_Name from WFAttachmentDatabases
8 |
9 | select DEF_ID, DEF_Name, DEF_APPID, DEF_AttachmentsDatabase, DEF_ArchivingDatabase from WFDefinitions
10 |
11 | select PRM_Name, PRM_Value from GlobalParameters
12 | where PRM_Name in ('WFAttachmentsDefaultDB', 'ConfigDatabase', 'ArchiveDefaultDB')
13 |
14 | -- ARCH/ATT
15 | select PRM_Name, PRM_Value from GlobalParameters
16 | where PRM_Name in ('DBMain')