Skip to content

Linking


Linking a data source will create a dSource object on the engine and allow Delphix to ingest data from this source. The dSource is an object that the Delphix Virtualization Engine uses to create and update virtual copies of your database.

Prerequisites


  • Delphix Virtualization Engine version compatible with this Select Connector Support Matrix

  • MSSQL Server Binaries should have been installed and MSSQL Server Instances should be up and running.

  • Delphix Select Connector for MSSQL Server should be installed.

  • Staging Server must meet the Delphix official prerequisites indicated in this link: Delphix Official MSSQL Documentation .

Create dSource


Steps:

  1. Click on Manage menu --> Environments --> Choose Staging Environment --> Click on database tab
  2. Under Staging Environment, scroll to Sqlserver Manual Discovery - MSSQLSERVER(Or the corresponding MSSQL Server instance of the DB you want to ingest). Screenshot
  3. Click on plus sign to add database. Screenshot
  4. Provide the name of Sql Server Staging Database, which will remain in Standby/ReadOnly Mode. The recommended format is "<sourcename>_Staging". Screenshot
  5. Click on "Add".
  6. Once added, database name will appear under Sqlserver Manual Discovery. Screenshot
  7. Click on Add dSource in front of Staging database name. Screenshot
  8. Provide the Database Name in pop-up box and click Next Screenshot
  9. Provide the dSource Name, Group Name and click on Next Screenshot
  10. Choose Staging Environment and OS user on staging environment, click Next. Screenshot
  11. Setup required policies in place for the dSource and click Next Screenshot
  12. Assign any required pre-sync and post-sync hooks Screenshot
  13. Validate Summary of the dSource creation Screenshot
  14. This will start dSource syncing. Screenshot
  15. Once finished, dSource will be created with Inactive status with one snapshot. That initial snapshot does not hold any data so after the ingestion process is completed, we recommend to remove it. Screenshot This will create mount point for each staging database on staging server under Delphix Connector path:

    <DLPX_CONNECTOR_PATH>\SqlServer Manual Discovery\mnt

    This is the iSCSI volume that you will see in the Staging Server using your dSource name:

    Screenshot

  16. Login to Windows Staging Server and build Staging database with same name as we used to create dSource.

  17. Login to SSMS and right click on Databases to restore the database. Screenshot
  18. Under General, Choose the full backup of Source Server and restore it on Staging server for creating Staging database. Change the Destination Database Name to match Staging database. Screenshot
  19. Under Files, Check Box “Relocate all files to folder” and point Data File Folder and Log File Folder to the mount path of the database mentioned in Step 15

    <DLPX_CONNECTOR_PATH>\SqlServer Manual Discovery\mnt\<StagingDBName>

    Screenshot

  20. Under Options, set the Recovery State to “RESTORE WITH STANDBY” and point standby file location to mount point on staging server

    <DLPX_CONNECTOR_PATH>\SqlServer Manual Discovery\mnt\<StagingDBName>

    And press OK

    Screenshot

  21. This will restore Staging database in Standby/Readonly mode.

  22. Datafiles will show now under mount location of database. Screenshot
  23. Now go back to Delphix GUI and take another snapshot of dSource. Screenshot
  24. Once snapshot completes, status of dSource status changes to Active. Screenshot

    All logs related to plugin scripts can be found in the following path in the Staging server:

    <DLPX_CONNECTOR_PATH>\SqlServer Manual Discovery\logs\<StagingDBName>\debug

    It also applies for Target server just replacing "StagingDBName" with "TargetDBName".

Synching dSource


dSource created by this plugin can be further synched by multiple ways:

  1. Log Shipping from Source database to Staging database:

    -This option will keep dSource in real-time sync with source database and snapshots can be taken any time with minimal impact.

    -Suggestion is to setup a snapsync policy for this dSource so Delphix can continuosly keep track of the changes. Please refer to this link for more information.

    -This is a sample procedure on how to configure Log Shipping

    -Delphix will not provide support on Log Shipping issues.

  2. Apply source database backups (Full/Differential/T-Log) in standby mode on staging database:

    -Snapshot the dSource after every restore, to record changes in Delphix.

    -Delphix will not provide support on Restoring MSSQL Server DB backups.