Was this helpful?
Actian Warehouse
Actian Data Platform (formerly Avalanche) is a fully managed cloud data warehouse delivered as a service. It is a database application that you can connect natively using ODBC 3.5. For more information, see Actian Data Platform help.
The integration platform uses the Actian Warehouse connector (formerly Actian Avalanche connector) for reading and writing data to Actian Warehouse data tables.
Prerequisites
Go to the Actian Data Platform console and add your computers IP address to the list of allowed IPs.
Install Actian Data Platform Client Runtime:
b. On the ESD download page, select Actian Data Platform from the PRODUCT dropdown, Client Runtime from the RELEASE dropdown, and Windows 64-bit from the PLATFORM dropdown.
c. Scroll down to the Actian Data Platform Client Runtime section and expand it, if necessary.
d. Click the Download button to download the driver.
e. Save the Zip, tgz, or tar.Z file to a location on your local machine.
f. Read the readme file that is posted with the package and follow the installation instructions for your platform.
This gives you the Actian Data Platform JDBC driver, iijdbc.jar.
Setup ODBC Data Source for Actian Data Platform:
a. Start typing odbc data sources into search, and click ODBC Data Sources (64-bit).
The ODBC Data Source Administrator (64-bit) window is displayed.
b. Select the User DSN and click Add.
The Create New Data Source dialog opens, which lists all the ODBC drivers installed on your system.
c. Select Actian AC driver and click Finish.
The ODBC Administrator window appears for the selected driver.
d. Specify the following:
Data Source: Specify the data source name. For example, Database.
Description: (Optional) Description text for data source.
Host Name: Specifies the network host name or IP address of the computer on which the target database resides.
Note:  It is recommended to specify the host IP address instead of host name because if the host name is too long, the driver may not accept it.
Listen Address: Specify the ODBC Port value from the Actian Warehouse Connection page.
Authentication Type - Select Native for a Native authentication type and Browser for browser based authentication.
Note:  To use the Native authentication option, you must first create a native connection in the Connections page of your Actian Data Platform Warehouse.
Database: Specify the name of the Actian Warehouse database. When you click the box, you are prompted to enter the user name and password.
Note:  To avoid generating the user name and password prompt, specify the user name and password in your ODBC application.
e. Click Test to test the current settings.
f. Click Apply and then click OK.
The created data source is displayed on the User DSN tab. The name of the driver is also displayed.
g. Click OK to close the ODBC Administrator window.
If you are using Actian Data Platform in the cloud environment, and want to use DSN, set the following properties:
DSNType = User & System/User/System
Database/Source Data Source/Target Data Source = Specify the Actian AC DSN name.
ModifyDriverOptions = True
DriverOptions = Automatically generated and fetched on clicking Connect.
If you are using Actian Data Platform in the cloud environment, and want to use the native login ODBC connection string which is provided in the Connections page of your Actian Data Platform Warehouse, set the following properties:
DSNType = Driver
Database/Source Data Source/Target Data Source = Specify Actian/Actian AC
ModifyDriverOptions = False
DriverOptions = Copy paste the ODBC connection string from the Connections page of your Actian Data Platform Warehouse (use a macro to avoid redundancies when changing the warehouse)
Note:  To open the Connections page, click the name of the warehouse, and then click Connections. From here you can copy and use the Host Name, Listen Address (ODBC Port), Database name, and Connection String. For more information, see Actian Data Platform help.
In case you need to update client to newer version to make sure all ODBC data sources work correctly, uninstall all old versions of Ingres clients installed on your system and remove all ODBC data sources created with old version of client. Reinstall newer version of Ingres client, and re-create ODBC Data sources for Actian Warehouse, Ingres, Actian Vector, and Actian X with the ODBC driver from this new version of client installation.
Connector-Specific Notes
The target connector has the following limitation: table row widths cannot exceed 255 KB.
Do not include a period (.) in the table name.
Connector Parts
Connector parts are the fields you configure to connect with a data source or target. The fields that are available depend on the connector you select.
For a list of all parts for source connectors, see Specifying Source Connector, Parts, and Properties.
For a list of all parts for target connectors, see Specifying Target Connector, Parts, and Properties.
Connector Properties
You can specify the following source (S) and target (T) properties:
Property
S/T
Description
Encoding
S/T
Type of character encoding to use with source and target files. The default value is OEM.
Shift-JIS encoding is used only in Japanese operating systems.
UCS-2 is no longer considered a valid encoding name, but you may use UCS2. In the data file, change UCS-2 to UCS2.
Note:  This property is not encoding of the database that you connect to, but it is the encoding in which the connector expects to receive SQL query statements that must be sent to the database.
WhereStmt
S
Provides a pass-through mechanism for SQL connectors where advanced users can construct the Where clause of the SQL query themselves. It can be used as an alternative to writing a lengthy query statement. You may use this to instruct the SQL database server to filter the data based on a particular condition before sending it to the integration platform. There is no default value for this property.
Note:  This property is not applicable when the source connection is a query statement or file. This property enables data filtering when you select a table.
SystemTables
S/T
If set to True, allows you to see all tables created by the DBA in the database. The system table names appear in the table list. The default value is False.
Note:  This property is applicable only if you have logged in to the database as the Database Administrator (DBA). Only the DBA has access to system tables.
Views
S/T
If set to True, this property allows you to see the view names in the table list along with the table names. Default is True.
Note:  This property supports only Append and DeleteAndAppend output modes and does not support the Replace output mode.
Synonyms
S/T
If set to True, allows you to see synonyms. The alias names appear in the table list along with the tables. The default value is False.
DSNType
S/T
Data sources or drivers to connect to in the Data Source Name (DSN) list. DSNs are listed in Control Panel > Administrative Tools > ODBC Data Source Administrator window. The options are:
User & System: This is the default option.
System: This DSN allows database access for any user of a particular computer. The System DSN are stored in the Windows registry.
User: This DSN allows database access for a single user on a single computer. Like the System DSN, the information is stored in the Windows registry.
Driver: The ODBC driver to connect to. This driver must be installed on your computer.
File: This DSN stores information required to connect to the desired data source in a text file with a .DSN extension (not in the Windows registry) and can be shared by users of different computers who have the same drivers installed.
For more information, see Configuring ODBC Data Source.
CursorType
S
Type of cursor to use for retrieving records from the source table. The options available are:
Dynamic
Static
Forward Only
The default value is Forward Only.
Note:  If you select Dynamic or Static, some times you may not be able to view the data in the Data Browser. To resolve this, append SELECTLOOPS=N to the DriverOptions property and refresh the connection.
DriverCompletion
S/T
Control whether or not the driver prompts you for information. The options available are:
Prompt: Prompts you for each information.
Complete: Prompts you for information you forgot to enter.
Complete Required: Prompts you for information that is essential to complete the connection.
No Prompt: Does not prompt you for any information.
The default value is Complete.
IdentifierQuotes
S/T
Quoted identifiers are used to parse the SQL statement and distinguish between columns and character data in SQL statements. All databases have quoted identifiers.
In a SQL statement, you must enclose identifiers containing special characters or match keywords in identifier quote characters (also known as delimited identifiers in SQL-92). For example, the Accounts Receivable identifier is quoted in the following SELECT statement:
SELECT * FROM "Accounts Receivable"
If you do not use identifier quotes, the parser assumes there are two tables, Accounts and Receivable, and returns a syntax error that they are not separated by a comma.
If either of the following values contain a space, set the identifierQuotes property on the source and the target to ““ or Default:
the value of the source connector part Table/View field.
the value of a source column name (for example, Account Number).
Otherwise, if the IdentifierQuotes property is set to None, a SQL error is returned and the source table data is not displayed.
IdentifierQuotes has the following options:
Default
None
"
ModifyDriverOptions
S/T
If set to True, stores the ODBC connection information. If set to False (default), you are prompted for the connection information each time you access multiple tables in the same transformation when the transformation runs.
DriverOptions
S/T
Specify a valid ODBC driver string connection. The default is empty for a new map.
This property can be specified or edited when one of the following is true:
The Source Data Source" is selected and the DSNType is set to "Driver".
All source connection parts are specified and the map is connected to the data. In this case, the connector builds the DriverOptions for you based on the connection parts you enter. Users can edit the pre-built options string as needed.
Append SELECTLOOPS=N if you have selected CursorType property as Dynamic or Static.
MaxDataLength
S/T
Maximum number of characters to write to a field. It is the maximum data length for long data types. The default value is 1 MB. You can change this value based on the available memory and target requirements.
When this connector requests the column field size for these data types, it checks for a returned value greater than the MaxDataLength value. If the value is greater, then the MaxDataLength value is used.
Some ODBC drivers have maximum data length limitations. If you choose an ODBC source or target connector and the default setting is not 1 MB, the integration platform sets the value for that particular ODBC driver. In this case, do not set the MaxDataLength property to a higher value.
TransactionIsolation
S/T
Isolation level when reading from or writing to a database table with ODBC. The isolation levels are:
Read uncommitted – Permits P1, P2, and P3.
Read committed – Permits P2 and P3. Does not permit P1.
Repeatable read – Permits P3. Does not permit P1 and P2.
Serializable – Does not permit P1, P2 or P3.
The default is serializable.
The ANSI SQL 2 standard defines three specific ways in which serializability of a transaction may be violated: P1 (Dirty Read), P2 (Nonrepeatable Read), and P3 (Phantoms).
For further details about TransactionIsolation levels, see the IBM DB2 Universal Database ODBC documentation.
ConstraintDDL
T
Additional SQL data definition language statements that must be executed after the target table is created. This is similar to the support provided for SQL pass-through in the SQL import connectors. Each line must be a valid ODBC DDL statement.
For example, you can have the following statements:
CREATE UNIQUE INDEX index1 ON mytable (Field1 ASC)
CREATE INDEX index2 ON mytable (Field2, Field3)
These statements creates two indices on the table mytable. The first statement does not allow duplicates and the index values are stored in ascending order. The second index is a compound index on fields Field2 and Field3.
The ConstraintDDL is run only if the output mode is Replace for the target. If there are any errors, they are written to the error and event log file. An error during transformation displays the Transformation Error dialog. You can ignore the DDL errors and continue the transformation.
ConstraintDDL also supports an escaping mechanism that allows you to specify DDL in the native SQL of the DBMS. Any statement preceded by an @ sign is sent directly to DBMS.
The following is a DDL statement for creating a primary key for the table mytable:
@CREATE INDEX pk_mytable ON mytable (Field1, Field2) WITH PRIMARY
Some ODBC drivers do not support the SQL extensions required to create a primary key with the ODBC variant of the SQL CREATE statement. In these cases, to create primary keys, use native SQL.
CommitFrequency
T
Allows you to control how often data is committed to the database when the AutoCommit property is set to False.
The default value is zero that is, the data is committed at the end of the transformation, allowing rollback on error. This is the slowest setting. When performing large transformations, this is not practical as it may produce too many transaction log entries.
Specifying a nonzero value indicates that data is committed to the database after inserting or updating specified number of records.
AutoCommit
T
If set to True, it allows you to automatically commit changes as they are made by each SQL statement, instead of waiting until the end of the transaction.
Also, if this option is set to True, you cannot roll back changes after they are done. It will overwrite the CommitFrequency value, which means that the changes are committed by each SQL statement irrespective of the value set for CommitFrequency.
The default value is False.
BulkOperations
T
Determines if an insert statement is run for each record or a bulk add is executed for each record. The default is False, the slower setting. If you want to maximize speed and instruct the integration platform to use a bulk add, change this setting to True. Use bulk operations for faster insert.
PrimaryKey
T
List of field names that are used to create the primary key. Field names are delimited by commas.
If the PrimaryKey property contains one or more field names, these names are included in the SQL CREATE statement when the connector is in Replace mode.
To use the PrimaryKey property, the ODBC driver must support Integrity Enhancement Facility (IEF). Only advanced ODBC drivers support this.
UseCursors
T
If set to True and the specified ODBC driver does not support cursor inserts, the integration platform falls back on the SQL INSERT mode of adding records. The default value is False.
For exports, cursor support is meant to enhance the performance of inserting records. This is applicable for desktop databases.
For database servers, there is no noticeable change in insert speed. Another complication of cursor inserts is that some drivers require the target table be indexed, otherwise positioned updates (cursors) are not allowed. The PrimaryKey and ConstraintDDL properties in the ODBC export connector addresses this issue.
ArraySize
T
Determines the number of rows to be sent to the server at a time. The default value is 1000. While this improves the speed, it affects error reporting (a server error will not be detected or reported until the next batch of records is sent to the server).
The maximum value allowed for this property is 100000. While the connector allows a high value to be set, many drivers have lower limits. The connector will log a message indicating if the driver is forcing a lower value for the array size. In addition, the connector does not support arrays when there is a LOB-type field in the table, or when the (maximum) length of a character-type field is longer than 32767 characters. In these cases, a message will be logged indicating the array size has been reduced to 1.
Due to the way the connector attempts to support older drivers, the array support requires BulkOperations and UseCursors is set to True or both must be set to False. If BulkOperations is False and UseCursors is True, then the array size is ignored and a message is logged indicating this condition.
UsePartition
T
If set to True, the WITH PARTITION=(...) clause is added to SQL statement when creating a table. The (...) is partitioning scheme that is specified in the Partition option.
If set to False, the WITH NOPARTITION clause is added to SQL statement when creating a table
The default value is False.
Partition
T
Partitioning scheme. A table partition definition format is:
PARTITION = (dimension)
The syntax for each partition dimension is:
dimension = rule ON column {, column} partitionspec {, partitionspec}| rule partitionspec {, partitionspec}
where:
rule: Defines the type of distribution scheme for assigning rows to partitions. The only valid value is HASH, which distributes rows evenly among the partitions according to a hash value.
ON column {, column}: Specifies the columns to partition the table on.
partitionspec: When rule is HASH, defines the number of partitions and optionally their names:
partitionspec = DEFAULT PARTITIONS | [nn] PARTITION[S] [(name {, name})] [with_clause]
where:
DEFAULT PARTITIONS: Uses the number of partitions specified in the DBMS configuration parameter default_npartitions. The statement returns an error if the default partition value is not set. If DEFAULT PARTITIONS is specified, neither explicit partition names nor a with_clause can be specified.
nn: Number of partitions, which defaults to 1 if omitted.
name: Identifies the partition. When the number of partitions is two or more, a comma-separated list of names can be provided to override the default value. The default value is iipartNN.
with_clause: Specifies WITH clause options for partitioning. The with_clause for partitioning has the format WITH with-option, where with-option = LOCATION = (location). When specifying a LOCATION for the table, this location will only be used for PARTITIONS that are lacking a WITH LOCATION clause.
For more information about partitioning schemes, see Partitioned Tables section in Actian Vector documentation available at docs.actian.com.
StripLeadingBlanks
S/T
Strips out leading blanks in all data fields if set to true. Default is false.
Note:  This property is applied to the source connector only if Source Table/View is set to Table/View. It is not applied if Source Table/View is set to Query Statement or Query Files.
StripTrailingBlanks
S/T
Strips out trailing blanks in all data fields if set to true. Default is false.
Note:  This property is applied to the source connector only if Source Table/View is set to Table/View. It is not applied if Source Table/View is set to Query Statement or Query Files.
Supported Output Modes
Actian Warehouse connector supports the Replace, Append, and Delete and Append output modes. For more information, see Target Output Modes.
Supported Data Types
The following data types are supported:
ANSIDATE
BOOLEAN
CHAR
DECIMAL
FLOAT
FLOAT8
INTEGER
INTEGER1
INTEGER8
INTERVAL DAY TO SECOND
INTERVAL YEAR TO MONTH
NCHAR
NVARCHAR
REAL
SMALLINT
TIME
TIMESTAMP
UUID
VARCHAR
If you are appending data to an existing table in target, then the data type of each field (from source) uses the data type in the selected table by default.
Last modified date: 12/03/2024