Set Up Connectors and Groups

The following tasks are presented in the order you would perform them to set up DB Connector for your organization.

Create Connector Groups

You can create multiple connectors and group them to provide redundancy and continuity in case one of the connectors fail. You can also create different connector groups for connectors that serve different purposes. When you create a DB Connector group, it also appears in the DB Connector application on the DB Connector server.

If you're not creating multiple connectors or don't plan to use multiple connectors for failover, you can safely skip this task.

  1. Log in to CXone.
  2. Click the app selector and select ACD.
  3. Go to ACD ConfigurationDB Connectors.
  4. Click New and select DB Connector Groups.
  5. Type a Name and Description.
  6. Click Create DB Group. Your new group appears in the tree view in the list of the left pane, and also appears in the Group drop-down when you create connectors. You also gain access to additional tabs so you can configure the group.
  7. Click the Contacts tab.
  8. Click Edit. Enter the contact information for the person at your company who should be contacted in case of a database connector failure. You can provide a Name, Email, and Phone Number.
  9. Configure failover and connector priority, if this group requires those options.
  10. Click Done.

Create Connectors

When you create a connector, it also appears in the DB Connector application on the DB Connector server.

  1. Log in to CXone.
  2. Click the app selector and select ACD.
  3. Go to ACD ConfigurationDB Connectors.
  4. Click New and select Database Connectors.
  5. Type a Name and Description.
  6. For Group, select the group to which this connector should be assigned from the drop-down of available groups.
  7. Type a numeric value in Thread Pool. A thread pool is the number of concurrent tasks (or threads) that run at the same time. This parameter can be tuned to provide the best performance. A larger thread pool increases resource use but may allow for faster results. The default value is 50.
  8. Click Create DB Connector.

Configure Connector Group Failover and Connector Priority

Once multiple connectors have been created and assigned to a connector group, you can edit the group to configure the Connector Priority and Failover properties. Failover is an optional configuration that enables the system to switch to a different connector if the specified connector fails. Connector priority tells the system which connector should receive commands by default and the order in which connectors will be used in the case of a failover.

While connector groups are most commonly used for multiple connectors that work together for failover protection, you could use groups to organize different connectors that are used for similar purposes. In that scenario, you would not configure Connector Priority or Failover properties for the connector group.

You cannot configure groups if one or more of the connectors in that group is registered. You must unregister the connectors, configure the group, and then re-register the connectors.

  1. Log in to CXone.
  2. Click the app selector and select ACD.
  3. Go to ACD ConfigurationDB Connectors.
  4. Click the desired group from the Groups column.
  5. Click the Failover tab and then click Edit.
  6. Select the checkbox for Allow Failover to next DB Connector in Group.
  7. Configure failover:

    1. Select the option that matches how you want to trigger failover behavior. You can choose either For all errors EXCEPT those listed below or For only those errors listed below.
    2. Click New to add an error.
    3. Enter the text of an Error from a log file. Include the full text of the error starting with the word Exception, but excluding the timestamp. For example:

      Exception:Sql Action Failed - QueryType: SqlSelect - Query: SELECT Address1_line1 FROM ViewCustomerInfoUAT where phonenumber ='RESKILL' and rown = 1OleDbExceptionError converting data type varchar to bigint.System.Data.OleDb.OleDbException (0x80040E07): Error converting data type varchar to bigint

      To trigger a failover for any database error, type Exception in the Error field. All database errors begin with this word.

    4. Click Add.
    5. When you're finished entering errors, click Done.
  8. Configure connector priority: 
    1. Click the Connector Priority tab and then click Edit.
    2. Click the up Icon of an arrow pointing up in a circle. or down Icon of an arrow pointing down in a circle. arrow in the Order field to change that connector's position in the list. By default, connectors in a group are used in the order they were created.
  9. Click Done.

Configure a Connector Health Check

You can optionally configure connectors to test their connection to the database every 30 seconds. This "health check" is a SQL query that you set up (such as a simple select query). You cannot configure a health check for a connector while it is registered as a Windows service. You must either configure the health check before registering the connector, or unregister the connector and then re-register it after the health check is set up.

  1. Log in to CXone.
  2. Click the app selector and select ACD.
  3. Go to ACD ConfigurationDB Connectors.
  4. Click the connector for which you want to configure a health check and then click the Health Check tab.
  5. Click Edit.
  6. Select the Enable 30 second interval Health Check checkbox.
  7. In the Query to run field, type a simple SQL query to be executed using the DB connector.
  8. Click Done.

You must configure connectors and connector groups before you perform this task in the DB Connector application. You cannot configure data links for connectors that are registered. If you need to reconfigure the data link for a connector that is actively running, you must deactivate the connector, then stop it, and finally unregister it in the DB Connector application. When you have finished your configuration, reverse those steps to put the connector back into production: register and start the connector in the DB Connector application, then activate it in CXone.

  1. Run the DBCCFG application as an administrator on the DB Connector server.
  2. Click the connector you want to configure.
  3. In the Reminder to Activate dialog, click OK.
  4. Click Configure above the Connection String field.
  5. In the Data Link Properties dialog, click the Provider tab and then click the provider type for your database.
  6. Click OK.

Register or Unregister Connectors

Connectors must be registered to run as Windows services on the DB Connector server. You cannot configure any aspect of a connector while it is registered. You can unregister a connector if you need to reconfigure the data link, the connector group, and so forth.

  1. Run the DBCCFG application as an administrator on the DB Connector server.
  2. Select the connector you want to register or unregister.
  3. Click Register or Unregister if the connector was registered previously.
  4. In the Reminder to Activate dialog, click OK.

Start or Stop a Connector

Once a connector has been configured and registered, it must be started in order to pass data. You can also stop the connector if necessary to make configuration changes or to uninstall it.

If you want to uninstall DB Connector from the DB Connector workstation, you must stop all connectors. You can then use the Programs and Features functionality in Windows to remove the application.

  1. Run the DBCCFG application as an administrator on the DB Connector server.
  2. Click the connector you want to start or stop.
  3. Click Start, or Stop if the connector is already running.

Activate or Deactivate a Connector

Connectors cannot be used in Studio scripts until they are activated.

  1. Log in to CXone.
  2. Click the app selector and select ACD.
  3. Go to ACD ConfigurationDB Connectors.
  4. Click the connector you want to activate or deactivate.
  5. Click Activate, or Deactivate if the connector has previously been activated.