-
Notifications
You must be signed in to change notification settings - Fork 10
Setup Distributed Replay
Previous Install .Net 4.x | Manual Install | Setup RSAT Next |
---|
FineBuild can setup Distributed Replay Utility (DRU) so that it is ready for use.
Distributed Replay is written by Microsoft and is only available with SQL 2012 and above. It is included in FineBuild because it provides the ability to capture and replay SQL Statements useful for problem resolution or regression testing.
For SQL2008R2 and below you should Install RML Utilities instead of Distributed Replay.
There are two DRU processes that can be setup by FineBuild:
To setup the Distributed Replay Controller, the following parameters must be included when you run FineBuild:
Parameter | Value | Description |
---|---|---|
/SetupDRUCtlr: | Yes or No | Include DRU Controller when SQL Server installed. Default value is No |
/CtlrSVCAccount: | DRU Controller Service Account | Must be in Domain\Account format. Default value is the SQL Server Service Account |
/CtlrSvcPassword: | DRU Controller Service Password | Password for service account. Default value is the SQL Server Service Password |
/CtlrSvcStartupMode: | Manual or Automatic | Startup mode for DRU Controller Service. Default is Manual |
The FineBuild DRU Controller setup includes the following items:
Automated DRU Client Setup relates to Process Id 2AR and is controlled by the parameters below:
Parameter | Value | Description |
---|---|---|
/SetupDRUClt: | Yes or No | Include DRU Client when SQL Server installed. Default value is Yes. |
/CltSVCAccount: | DRU Client Service Account | Must be in Domain\Account format. Default value is the SQL Server Service Account |
/CltSvcPassword: | DRU Client Service Password | Password for service account. Default value is the SQL Server Service Password |
/CltSvcStartupMode: | Manual or Automatic | Startup mode for DRU Client Service. Default is Manual |
The FineBuild DRU Client setup includes the following items:
- Setup Folders for DRU Client
- Setup DCOM Rights for DRU Client
- Setup Filewall Exception for DRU Client
- Setup SQL Rights for DRU Client
The following steps show what you would have to do for manual DRU setup. FineBuild does all of this work for you automatically.
There are two DRU processes that need to be setup:
To setup the DRU Controller, the following options must be selected during the SQL Server install process:
-
Include DRU Controller with SQL Server install
Ensure the DREPLAY_CTLR option is selected
-
Provide the remaining DRU Controller parameters
Parameter Function Description /CtlrSVCAccount: DRU Controller Service Account Must be in Domain\Account format. Default value is the SQL Server Service Account /CtlrSvcPassword: DRU Controller Service Password Password for service account. Default value is the SQL Server Service Password /CtlrSvcStartupMode: Manual or Automatic Startup mode for DRU Controller Service. Default is Manual
Run the following command to setup the Firewall Exception for the DRU Controller
NETSH ADVFIREWALL FIREWALL ADD RULE NAME="SQL DRU Controller" PROGRAM="C:\Program Files (x86)\Microsoft SQL Server\110\Tools\DReplayController\DReplayController.exe" ACTION=ALLOW PROFILE=DOMAIN DIR=IN ENABLE=YES
To setup the DRU Client, the following options must be selected during the SQL Server install process:
-
Include DRU Client with SQL Server install
Ensure the DREPLAY_CLT option is selected
-
Provide the remaining DRU Client parameters
Parameter Function Description /CltSVCAccount: DRU Client Service Account Must be in Domain\Account format. Default value is the SQL Server Service Account /CltSvcPassword: DRU Client Service Password Password for service account. Default value is the SQL Server Service Password /CltSvcStartupMode: Manual or Automatic Startup mode for DRU Client Service. Default is Manual
The following folders will be created for the DRU Client.
/VolDBA:\SQLFiles\DRU\Work
/VolDBA:\SQLFiles\DRU\Result
FineBuild will set the default value for the /VolDBA: parameter to the /VolProg: value, but /VolDBA: can be specified if you want to use a different drive.
Run the following command on the server hosting the DRU Controller to allow the DRU client to use COM facilities
NET LOCALGROUP "Distributed COM Users" "/CltSVCAccount:" /ADD
Run the following command to setup the Firewall Exception for the DRU Controller
NETSH ADVFIREWALL FIREWALL ADD RULE NAME="SQL DRU Client" PROGRAM="C:\Program Files (x86)\Microsoft SQL Server\110\Tools\DReplayClient\DReplayClient.exe" ACTION=ALLOW PROFILE=DOMAIN DIR=IN ENABLE=YES
After SQL Server is installed, run the following commands to give the DRU Client the rights needed in SQL Server. The DRU Client needs Sysadmin rights so that it can process a replay file.
CREATE LOGIN [_CltSVCAccount_] FROM WINDOWS
EXEC sp_addsrvrolemember '/CltSVCAccount:', 'sysadmin'
Copyright FineBuild Team © 2012 - 2021. License and Acknowledgements
Previous Install .Net 4.x | Top | Setup RSAT Next |
---|
Key SQL FineBuild Links:
SQL FineBuild supports:
- All SQL Server versions from SQL 2019 through to SQL 2005
- Clustered, Non-Clustered and Core implementations of server operating systems
- Availability and Distributed Availability Groups
- 64-bit and (where relevant) 32-bit versions of Windows
The following Windows versions are supported:
- Windows 2022
- Windows 11
- Windows 2019
- Windows 2016
- Windows 10
- Windows 2012 R2
- Windows 8.1
- Windows 2012
- Windows 8
- Windows 2008 R2
- Windows 7
- Windows 2008
- Windows Vista
- Windows 2003
- Windows XP