Jump to: navigation, search

encrypt-certificate

Section: gim-export
Default Value: No default value
Valid Values: Valid path and file name.
Changes Take Effect:
Dependencies: None
Introduced: 8.5.116.20

Specifies the full path and file name of the certificate Genesys Info Mart uses to encrypt exported ZIP files.

If the option is not specified (the default value), Genesys Info Mart does not encrypt the exported files.

run-export

Section: schedule
Default Value: false
Valid Values: true, false
Changes Take Effect: Immediately
Dependencies: None
Introduced: 8.5.005

Specifies whether Job_ExportGIM will run. When the value of this option is set to true, the scheduler will start and run the job at the time and intervals specified by the export-schedule option.

export-schedule

Section: schedule
Default Value: 20 0/8
Valid Values: A valid CRON expression
Changes Take Effect: Immediately
Dependencies: run-export
Introduced: 8.5.005

Defines the time intervals at which Job_ExportGIM will run. The job will start and then run periodically in accordance with this schedule when the run-export option is set to true. By default, the job runs at 00:20, 08:20, and 16:20 every day.

The default schedule, run in conjunction with the default chunk-size-seconds option in the [gim-export] section, is designed to keep daily disruptions or delays from carrying over to the next day.

Job_ExportGIM can run in conjunction with the ETL jobs, but not in conjunction with Job_MaintainGIM.

The schedule is defined in the format of a CRON expression that represents a set. The expression comprises two fields, which are separated by whitespace:

  • The first field specifies minutes. Valid values are 0–59 and optional special characters (see below).
  • The second field specifies hours. Valid values are 0–23 and allowed special characters.

The following special characters are allowed in the CRON expression:

  • , (comma)—Separates items in a list.
  • - (hyphen)—Defines a range.
  • * (asterisk)—Indicates that the CRON expression will match for all values of the field.
  • / (forward slash)—Describes increments.

use-export-views

Section: gim-export
Default Value: false
Valid Values: true, false
Changes Take Effect: On the next run of Job_ExportGIM
Dependencies: None
Introduced: 8.5.009.20

Controls whether Genesys Info Mart will export data using export views, which represent a snapshot of the Info Mart schema at the time the export views were created.

  • false—Genesys Info Mart will export data using the current schema. The export might include schema changes, such as new or renamed tables or columns, that occurred as part of a recent Info Mart migration.
  • true—Genesys Info Mart will export data using export views. The export will include the same tables and columns as the previous export(s), regardless of any schema changes resulting from migration(s) that may have occurred in the interim.

About Data Export Capability

Data Export capability is enabled in select Genesys Multicloud CX deployments to periodically copy the data that is stored in the Genesys historical database (called the Info Mart database) into local .csv files, so that the data is available for further import into a data warehouse (the target database) for the purpose of archiving or custom reporting. Starting with release 8.5.011.22, Genesys Info Mart supports Data Export in on-premises deployments as well.

The export job, Job_ExportGIM, exports data from fact and dimension tables that are part of the Genesys Info Mart dimensional model and creates a .zip archive containing individual .csv files, one file per database table. The .csv files are formatted in accordance with RFC 4180 (https://www.ietf.org/rfc/rfc4180.txt).

The output data files are encoded using the UTF8 format by default. On-premises customers can specify a different character encoding for exported files (see Schedule and other export job settings).

What tables are included in the data export?

The export does not include aggregate (RAA) tables or internal (GIDB_*) tables except for certain configuration tables, as listed below. The fact and dimension tables included in your specific data export depend on the details of your deployment. The following tables are available for export:


In on-premises deployments the data export will also include custom user-data tables and mappings you added to the Info Mart schema, as described in Preparing Custom User-Data Storage in the Genesys Info Mart Deployment Guide.

In addition to the data from the Genesys Info Mart dimensional model tables, configuration details data is exported from the following GIDB tables:

  • GIDB_GC_ANNEX (starting with release 8.5.116.12)
  • GIDB_GC_CALLING_LIST
  • GIDB_GC_CAMPAIGN
  • GIDB_GC_FOLDER
  • GIDB_GC_LOGIN
  • GIDB_GC_GROUP
  • GIDB_GC_PLACE
  • GIDB_GC_SKILL
  • GIDB_GC_TENANT
  • GIDB_GCX_LOGIN_INFO


Export views

You can configure Genesys Info Mart so that it exports your data from export views, which represent a frozen snapshot of the Info Mart schema at the time the export views were created. Using export views means that the export will always include the same tables and columns, regardless of any schema changes that may occur as a result of Genesys Info Mart upgrades and database migrations.

The export views include all the tables listed above, including the custom user-data tables you might have created, provided the length of the table name is no more than 26 characters.

Using export views frees you from the need to continually update your target database and consumption queries to ensure consistency with a migrated Info Mart schema. For example, without export views, new columns added to a table that gets exported would break an import query that selects all columns from the exported table, unless you have also added the corresponding columns in the target database.

Be aware that using export views means that the export will not reflect any changes that may have occurred in the Info Mart schema since the export views were created, including deletion or renaming of tables or columns, which might affect how Genesys Info Mart populates certain data.

You can update your export views if you migrate to a later release of Genesys Info Mart and identify that it provides new data that you want to be included in your export. For information about Info Mart schema changes between releases, see New in the Info Mart Database and Summary of Info Mart Schema Changes.

Important
Before your export views are refreshed, ensure that your consumption queries and target database are ready to process the additional data. For information about creating or updating your target database schema, see Target database, below.

Creating and using export views

To create or update export views for your on-premises deployment, run the migration job from the command line with the make-export-views parameter. For example:

gim_etl_server.bat -host localhost -port 8000 -app <app> -job Job_MigrateGIM -make-export-views

Genesys Info Mart will create export views of the schema that was in effect before the migration job was run. Starting with release 8.5.116.12, the script that was used to create the export views (make_export_views<db-schema>.sql) is included in the Data Export output package, to enable you to restore or troubleshoot the export views used for your data export (for example, if your views get corrupted or you want to restore an earlier version).

After you have created export views, set the use-export-views configuration option to true. Future runs of the export job will use the export views to export data.

Schedule and other export job settings

The export job does not run as part of the ETL schedule. Configuration options in the [schedule] section—namely, export-schedule and run-export—enable you to schedule the export job to run regularly. You cannot run the export job on an ad hoc basis from GIM Manager. By default, the export runs at 00:20, 08:20, and 16:20 every day. Genesys rercommends that the export schedule should not be any more frequent than every 30 minutes.

Options in the [gim-export] section enable you to control many aspects of Job_ExportGIM functioning, such as the export chunk size, retry behavior, and export file encoding. For full information, see the gim-export Section page in the Genesys Info Mart Options Reference. Starting with release 8.5.116.20, you can optionally choose to encrypt the Data Export files. Use the encrypt-certificate option to specify the path to the certificate for Genesys Info Mart to use to encrypt the exported .zip files.

File/directory structure

The export is incremental and uses special audit keys to identify changes in data since the last export. At each export, a chunk of exported data is written into a separate folder that is named according to the following naming convention: export_XXX

where XXX consists of:

  • an audit key identifier (audit key high-water mark)
  • the maximum date of data contained in all previous exports and this export, in GMT time zone, written in the YYYY_MM_DD_HH_MI_SS format.

The output folder contains several .zip files, as follows:

  • export_XXX.zip — zip file with exported data. Each table is stored in a separate file with a file name in the format <table-name>.csv—for example, interaction_fact.csv. Within a .csv file, a header line identifies the table column names. Note that, within the exported .csv files, nulls and empty strings are represented as empty fields. If the Data Export is encrypted, the file is a compressed binary named export_XXX.zip.bin.
  • export_XXX.zip.sha1 — checksum for export_XXX.zip. The checksum can be validated by sha1sum program (https://en.wikipedia.org/wiki/Sha1sum) and is used to verify that the .zip file is complete on the receiving side. If the Data Export is encrypted, the checksum is export_XXX.zip.bin.sha1.
  • export_XXX.extracted.xml — metadata about export_XXX.zip.

Starting with release 8.5.116.12, the output folder also contains RDBMS-specific sql_scripts/<dbms> folders, containing the update_target and make_export_views SQL scripts described on this page.

Important
The subfolder .gim is reserved for internal use.

Checksums are also generated for each individual table .csv file. If a table does not have any changes since the last export, nothing is written for that table.

Export metadata file

The export_XXX.extracted.xml metadata file includes information about the export file, as shown in the example below.

Example

<info>
<created-ts>1521091600</created-ts>
<gim-schema-version>8.5.009.15</gim-schema-version>
<gim-version>8.5.009.20</gim-version>
<hwm-from audit-key="13" created-ts="1520919983"/>
<hwm-to audit-key="200074" created-ts="1520995485"/>
<max-data-ts>1521006157</max-data-ts>
</info>

Where:

  • created-ts — The UTC timestamp, in seconds since January 1, 1970, for the execution of the export.
  • gim-schema-version — The version of the Info Mart database schema used to populate the tables; if export views are used, this schema version is not necessarily the same as the schema version reflected by the export views and actually used for the export.
  • gim-version — The version of Genesys Info Mart Server that created the export files.
  • hwm-from — The starting point of the data in the export by audit key and the create time, in UTC seconds, of that audit key.
  • hwm-to — The ending point of the data in the export by audit key and the create time, in UTC seconds, of that audit key.
  • max-data-ts — The maximum time, in UTC seconds, of the data contained in all previous exports and this export.

The hwm-to and hwm-from values must match between successive export runs. Use them to verify that no intermediate export file has been missed on the receiving side. For example, the next export following the example .xml file above is supposed to have hwm-from audit-key = 200074.

The maximum time span of data in any single export file is one day. For example, if historical reporting was not available for two days (because, for instance, the server or database has been down), the export will continue from the last exported high-water mark and move ahead one day in the data. The next export will continue from there, exporting no more than one day at a time, until the export has caught up with the current data.

Target database

Genesys provides an SQL script to assist you in creating a target schema into which to import the exported Info Mart data. (The script is update_target_gim_db.sql, update_target_gim_db_partitioned.sql, update_target_gim_db_multilang.sql, or update_target_gim_db_multilang_partitioned.sql in the sql_scripts folder in your Genesys Info Mart installation package. Starting with release 8.5.116.12, Genesys Info Mart also includes the update_target_gim_db*.sql scripts in RDBMS-specific sql_scripts/<dbms> folders in the Data Export output package; the scripts match the Genesys Info Mart release in effect when the data export was performed.) Execute the script against your target database to create a schema consistent with the Info Mart schema. Be sure to use an update_target_*.sql script from the Genesys Info Mart installation package that is currently installed or that you are about to deploy.

You can also use the script to migrate your target database if the Info Mart database schema changes after you have set up your target database, and either you are not using export views or your export views have been updated to include the schema changes. The update_target_*.sql script enables you to migrate your target database directly from any Info Mart schema version to any later schema version, by updating the target schema with new tables or columns if they are missing.

When to run the update_target_*.sql script to migrate your target schema following an Info Mart migration depends on your business needs, import processing, and consumption queries, as well as on whether you are using export views.

  • If you are not using export views, you might need to update your target schema and/or modify your import and other consumption queries almost immediately, before you try to import the next batch of exported data.
  • If you are using export views, you can choose whether you want your export to include new data available in the Info Mart database. If you do, you can continue to export data using the existing export views, while you prepare your consumption queries (for example, you can test adjusted queries against the migrated Info Mart database).
    When you are ready, migrate your target schema by executing the update_target_*.sql script from the Genesys Info Mart installation package that is currently installed. Then run the migration job to refresh your export views, as described above.

Custom user-data tables—limitation

While the export job does export custom user-data tables, the update_target_*.sql script does not include custom tables. You must create or migrate custom user-data tables separately in your target schema.

Considerations for cross-platform export and import

Genesys Info Mart supports data export and import across RDBMS platforms. For example, you can export data from a PostgreSQL Info Mart database and import it into a Microsoft SQL Server database.

If you are importing data into a Microsoft SQL Server database, note the following considerations:

  • Case-sensitive vs. case-insensitive data — Starting with release 8.5.015.07, Genesys Info Mart supports either a case-sensitive or a case-insensitive collation for the Info Mart database in Microsoft SQL Server deployments. (In earlier releases, Genesys Info Mart required a case-insensitive collation.) Starting with release 8.5.014.34, the update_target_*.sql script for a Microsoft SQL Server target database schema is compatible with a case-sensitive Microsoft SQL Server collation.
    If you plan to import case-sensitive data from an Oracle or PostgreSQL Info Mart database into a Microsoft SQL Server target database, ensure that your target database is case-sensitive.
  • Index size limitation — Remember that a Microsoft SQL Server limitation restricts the maximum length of index keys.
    In releases earlier than 8.5.014.34, the sizes of many columns in dimension tables in the target database schema defined for Microsoft SQL Server were reduced, to ensure that indexes did not exceed Microsoft SQL Server size limits. Starting with release 8.5.014.34, the sizes of all columns defined in the update_target_*.sql scripts are the same across all RDBMS platforms.
    For a list of the dimension columns that were modified in the update_target_*.sql scripts for Microsoft SQL Server, see New in Release 8.5.014.34.
    Important
    If you are importing Info Mart data into a Microsoft SQL Server database, ensure that your import tool or process is able to handle errors that arise when the sum of the actual values of dimension table columns included in an index exceeds the Microsoft SQL Server limit on index size.

Consumption

The exported table data typically contains a mix of created and updated rows. For this reason, you should merge newly exported data with existing data loaded from prior exports. For example, first, load the export files into a temporary table and then use an SQL merge statement based on the primary key for the table to merge the data into a permanent target table that holds the cumulative data from prior exports.

Process the export folders in order by folder name.

If necessary, you can restart the export data stream from the beginning or from a fixed date. Also, you can re-export a time span backwards from the most recent export.

Data decoding

The data is exported into .csv files that are formatted in accordance with RFC 4180 (https://www.ietf.org/rfc/rfc4180.txt). The exported data must be decoded properly before it is imported into the target database for custom reporting or archiving purposes. Customers should perform decoding of the exported .csv files according to the guidelines in RFC 4180. Properly decoded data is expected to fit into the target schema that is created by Genesys-provided scripts without the need to increase field sizes.

Handling Unicode characters

Special considerations are required for data that includes Unicode characters. By default, Genesys Info Mart encodes the exported data using Eight-bit Unicode Transformation Format (UTF8) character encoding. However, both the original Info Mart database and the target database must be set up to accommodate Unicode characters in respective database fields, as follows:

  • For Microsoft SQL Server, specify the NVARCHAR(N) data type for the columns that store Unicode data
  • For Oracle, specify AL32UTF8 as the database character set when creating the database
  • For PostgreSQL, choose the default encoding, which is UTF8, when creating the database

Subsequently, a special "multilanguage" version of the Genesys-provided SQL script is required to create both the Info Mart schema and a target schema with the fields that store data with Unicode characters.

On-premises customers are advised to keep the default value of utf8 for the gim-export/output-files-encoding configuration option, to ensure that Unicode characters are stored properly in the .csv files (see Schedule and other export job settings).

Finally, when exported data is decoded before being imported into the target database, .csv file decoding must be done using UTF8 encoding.

Following the above guidelines will help to avoid issues such as data corruption due to data not being decoded properly or data import due to data length being larger than the column size in the target database.

GDPR compliance

Genesys Info Mart data complies with General Data Protection Regulation (GDPR) requirements. However, depending on when you export Info Mart data in relation to specific GDPR requests, as well as when and how you process the exported data, your target database or retained export files might contain personally identifiable information (PII) that needs to be redacted.

You are responsible for implementing adequate processes to ensure that any PII in your exported Info Mart data is handled in accordance with GDPR requirements, including using suitable retention periods or redacting data to comply with "forget" requests.

For details about which Info Mart tables potentially contain PII, see the description of the CTL_GDPR_HISTORY table. (Note that this table is not included in your data export.)

This page was last edited on June 23, 2022, at 00:14.
Comments or questions about this documentation? Contact us for support!