After installing the Plant Applications Server, you can move the Plant Applications or Unified Manufacturing Database (UMDB) database file and log file to a separate physical disk to optimize performance.
About this task
The physical disk should be part of the disk subsystem,Note:
- For more information on optimizing SQL Server performance, contact Support at Support.
- If upgrading SQL Server to a newer version, run sp_revokeDBAccess for ProficyDBO, ComxClient, and ProficyConnect. Next, run spSupport_ChangeDBOAccount to reconfigure the SQL User Accounts.
An SQL Server database consists of MDF (database file) and LDF (log file) files. By default, these two files are located in the following directory:
C:\Program Files\Microsoft SQL Server\MSSQL\Data
Procedure
- Locate the MDF and LDF files.
- Start SQL Server Management Studio from the Windows Start menu.
- Navigate to the database, right-click it, then select Properties to display the Database Properties dialog box.
- Under Select a page, right-click Files to view the location of the MDF and LDF files.
- Stop the following Plant Applications Server services:
- Proficy Server Manager
- Proficy Server Router
- Proficy Server License Manager
- Stop the Proficy Server, Proficy Publisher, and Proficy STS Services used for SOA.
- In SQL Server Management Studio, take the database offline.
- Select Plant Applications SQL Server, then select Databases.
- Right-click the Plant Applications database, select Tasks, and then select Take Offline.
- Detach the database (refer to SQL Server documentation).
- Copy the MDF and LDF files to the SQL Server instance.
- Attach the database to the SQL Server instance.
- Bring the database online, then verify the location of the MDF and LDF files.
- Restart the Plant Applications Server and SOA services.
- After the database has been restored, verify that permissions are set up correctly in the Plant Applications database. From SQL Server Management Studio, run the following script to rebuild the SQL permissions:
exec sp_Revokedbaccess 'ProficyDBO'Plant Applications
go
exec sp_Revokedbaccess 'ComXClient'
go
exec sp_Revokedbaccess 'ProficyConnect'
go
exec SpSupport_ChangeDBOAccount 'Proficydbo','ProficyDBO'