Connection String Options
The following is the full list of the options you can configure in the connection string for this provider.
| Prepare a query statement before its execution. |
| The type of authentication to use when connecting to Amazon Redshift. |
| Specify true to create a database user with the name specified for User if one does not exist while connecting with IAM credentials. See AuthScheme . |
| Your AWS account access key or the access key for an authorized IAM user. |
| Your AWS account secret key or the secret key for an authorized IAM user. |
| Your AWS session token. |
| The name of the Redshift database. |
| A comma-delimited list of the names of one or more existing database groups the database user joins for the current session when connecting with IAM credentials. See AuthScheme . |
| This field sets whether the provider is getting detailed information about resultset columns from the server. |
| A password used to authenticate to a proxy-based firewall. |
| The TCP port for a proxy-based firewall. |
| The name or IP address of a proxy-based firewall. |
| The protocol used by a proxy-based firewall. |
| The user name to use to authenticate with a proxy-based firewall. |
| Visibility restriction filter which is used to hide the list of schemas by metadata quering. For example, 'information_schema, pg_catalog'. Schema names are case sensitive. |
| A path to the directory that contains the schema files defining tables, views, and stored procedures. |
| Core modules to be included in the log file. |
| Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time. |
| These hidden properties are used only in specific use cases. |
| The password required for authentication with the Amazon Redshift server. |
| The port number of the Amazon Redshift server. |
| You can use this property to enforce read-only access to Redshift from the provider. |
| The host name or IP address of the Redshift cluster. |
| The TLS/SSL client certificate store for SSL Client Authentication (2-way SSL). |
| The password for the TLS/SSL client certificate. |
| The subject of the TLS/SSL client certificate. |
| The type of key store containing the TLS/SSL client certificate. |
| The certificate to be accepted from the server when connecting using TLS/SSL. |
| The SSOProvider login URL. |
| The password of the SSOProvider used to authenticate the user. |
| The name of the SSO provider you are trying to authenticate. |
| The SSOProvider user account used to authenticate. |
| When set the null characters are stripped out from character values in bulk operations. |
| The value in seconds until the timeout error is thrown, canceling the operation. |
| Set time zone for the current session. |
| The username used to authenticate with the Amazon Redshift Server . |
| This field sets whether SSL is enabled. |
| Visibility restrictions used to filter exposed metadata for tables with privileges granted to them for current user. For example 'SELECT,INSERT' filter is restricting metatdata visibility only for those tables which may be accessed by current user for SELECT and INSERT opearations. Supported privilege values are SELECT, INSERT, UPDATE, DELETE, REFERENCES. |
Allow Prepared Statement
Prepare a query statement before its execution.
Data Type
bool
Default Value
true
Remarks
If the AllowPreparedStatement property is set to false, statements are parsed each time they are executed. Setting this property to false can be useful if you are executing many different queries only once.
If you are executing the same query repeatedly, you will generally see better performance by leaving this property at the default, true. Preparing the query avoids recompiling the same query over and over. However, prepared statements also require the adapter to keep the connection active and open while the statement is prepared.
Auth Scheme
The type of authentication to use when connecting to Amazon Redshift.
Data Type
string
Default Value
"Auto"
Remarks
• Auto: Lets the driver decide automatically based on the other connection properties you have set.
• Basic: Set this to use BASIC user / password authentication.
• ADFS: Set this to perform Active Directory Federated Services authentication.
• IAMCredentials: Set this to perform authentication with Redshift's GetClusterCredentials API.
Auto Create
Data Type
bool
Default Value
false
Remarks
The default is false.
Aws Access Key
Your AWS account access key or the access key for an authorized IAM user.
Data Type
string
Default Value
""
Remarks
To authorize Amazon Redshift requests, provide the credentials for an administrator account or for an IAM user with custom permissions. Set this property along with AwsSecretKey.
Note: Though you can connect as the AWS account administrator, it is recommended to use IAM user credentials to access AWS services.
Obtaining the Access Key
To obtain the credentials for an IAM user, follow the steps below:
1. Sign into the IAM console.
2. In the navigation pane, select Users.
3. To create or manage the access keys for a user, select the user and then select the Security Credentials tab.
To obtain the credentials for your AWS root account, follow the steps below:
1. Sign into the AWS Management console with the credentials for your root account.
2. Select your account name or number and select My Security Credentials in the menu that is displayed.
3. Click Continue to Security Credentials and expand the Access Keys section to manage or create root account access keys.
Aws Secret Key
Your AWS account secret key or the secret key for an authorized IAM user.
Data Type
string
Default Value
""
Remarks
Your AWS account secret key or the secret key for an authorized IAM user. See AwsAccessKey to obtain the secret key and access key.
AWS Session Token
Your AWS session token.
Data Type
string
Default Value
""
Remarks
Your AWS session token. This value can be retrieved in different ways.
Db Groups
A comma-delimited list of the names of one or more existing database groups the database user joins for the current session when connecting with IAM credentials. See AuthScheme .
Data Type
string
Default Value
""
Remarks
By default, the new user is added only to PUBLIC.
Fetch Result Set Metadata
This field sets whether the provider is getting detailed information about resultset columns from the server.
Data Type
bool
Default Value
false
Remarks
By default, the adapter will not request server to provide too detailed information about resultset columns (like the table name, for example) when the query is succeeding, because it requires issuing additional metaquery by the adapter, and may affect query performance essentially in some scenarios. Consider this property when you are requiring all details about resultset columns together with the query result.
Database
The name of the Redshift database.
Data Type
string
Default Value
""
Remarks
The database to connect to when connecting to the Amazon Redshift Server. If the database is not provided, the user's default database will be used.
Firewall Password
A password used to authenticate to a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.
Firewall Port
The TCP port for a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.
Firewall Server
The name or IP address of a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling.
Firewall Type
The protocol used by a proxy-based firewall.
Data Type
string
Default Value
"NONE"
Remarks
This property specifies the protocol that the adapter will use to tunnel traffic through the FirewallServer proxy.
Type | Default Port | Description |
TUNNEL | 80 | When this is set, the adapter opens a connection to Amazon Redshift and traffic flows back and forth through the proxy. |
SOCKS4 | 1080 | When this is set, the adapter sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted. |
SOCKS5 | 1080 | When this is set, the adapter sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes. |
Firewall User
The user name to use to authenticate with a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.
Ignored Schemas
Visibility restriction filter which is used to hide the list of schemas by metadata quering. For example, 'information_schema, pg_catalog'. Schema names are case sensitive.
Data Type
string
Default Value
""
Remarks
By default restrictions are not applied.
Location
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Data Type
string
Default Value
"%APPDATA%\\CData\\Redshift Data Provider\\Schema"
Remarks
The path to a directory which contains the schema files for the adapter (.rsd files for tables and views, .rsb files for stored procedures). The folder location can be a relative path from the location of the executable. The Location property is only needed if you want to customize definitions (for example, change a column name, ignore a column, and so on) or extend the data model with new tables, views, or stored procedures.
If left unspecified, the default location is "%APPDATA%\\CData\\Redshift Data Provider\\Schema" with %APPDATA% being set to the user's configuration directory:
Platform | %Appdata% |
Windows | The value of the APPDATA environment variable |
Mac | ~/Library/Application Support |
Linux | ~/.config |
Log Modules
Core modules to be included in the log file.
Data Type
string
Default Value
""
Remarks
Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.
Max Rows
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Data Type
string
Default Value
"-1"
Remarks
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Other
These hidden properties are used only in specific use cases.
Data Type
string
Default Value
""
Remarks
The properties listed below are available for specific use cases. Normal driver use cases and functionality should not require these properties.
Specify multiple properties in a semicolon-separated list.
Integration and Formatting
DefaultColumnSize | Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000. |
ConvertDateTimeToGMT | Determines whether to convert date-time values to GMT, instead of the local time of the machine. |
RecordToFile=filename | Records the underlying socket data transfer to the specified file. |
Password
The password required for authentication with the Amazon Redshift server.
Data Type
string
Default Value
""
Remarks
The User and Password will be used to authenticate with the Amazon Redshift Server.
Port
The port number of the Amazon Redshift server.
Data Type
string
Default Value
"5439"
Remarks
The port number of the Server hosting the Amazon Redshift Database. If not specified the default port number 5439 is used.
Readonly
You can use this property to enforce read-only access to Redshift from the provider.
Data Type
bool
Default Value
false
Remarks
If this property is set to true, the adapter will allow only SELECT queries. INSERT, UPDATE, DELETE, and stored procedure queries will cause an error to be thrown.
Server
The host name or IP address of the Redshift cluster.
Data Type
string
Default Value
""
Remarks
The host name or IP of the Amazon Redshift cluster Database. You can obtain this value from the AWS Management Console:
1. Open the Amazon Redshift console (http://console.aws.amazon.com/ redshift).
2. On the Clusters page, click the name of the cluster.
3. On the Configuration tab for the cluster, copy the cluster URL from the connection strings displayed.
SSL Client Cert
The TLS/SSL client certificate store for SSL Client Authentication (2-way SSL).
Data Type
string
Default Value
""
Remarks
The name of the certificate store for the client certificate.
The SSLClientCertType field specifies the type of the certificate store specified by SSLClientCert. If the store is password protected, specify the password in SSLClientCertPassword.
SSLClientCert is used in conjunction with the
SSLClientCertSubject field in order to specify client certificates. If SSLClientCert has a value, and
SSLClientCertSubject is set, a search for a certificate is initiated. See
SSL Client Cert Subject for more information.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
MY | A certificate store holding personal certificates with their associated private keys. |
CA | Certifying authority certificates. |
ROOT | Root certificates. |
SPC | Software publisher certificates. |
In Java, the certificate store normally is a file containing certificates and optional private keys.
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (for example, PKCS12 certificate store).
SSL Client Cert Password
The password for the TLS/SSL client certificate.
Data Type
string
Default Value
""
Remarks
If the certificate store is of a type that requires a password, this property is used to specify that password to open the certificate store.
SSL Client Cert Subject
The subject of the TLS/SSL client certificate.
Data Type
string
Default Value
"*"
Remarks
When loading a certificate the subject is used to locate the certificate in the store.
If an exact match is not found, the store is searched for subjects containing the value of the property. If a match is still not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks the first certificate in the certificate store.
The certificate subject is a comma separated list of distinguished name fields and values. For example, "CN=www.server.com, OU=test, C=US, E=support@company.com". The common fields and their meanings are shown below.
Field | Meaning |
CN | Common Name. This is commonly a host name like www.server.com. |
O | Organization |
OU | Organizational Unit |
L | Locality |
S | State |
C | Country |
E | Email Address |
If a field value contains a comma, it must be quoted.
SSL Client Cert Type
The type of key store containing the TLS/SSL client certificate.
Data Type
string
Default Value
""
Remarks
This property can take one of the following values:
USER - default | For Windows, this specifies that the certificate store is a certificate store owned by the current user. Note that this store type is not available in Java. |
MACHINE | For Windows, this specifies that the certificate store is a machine store. Note that this store type is not available in Java. |
PFXFILE | The certificate store is the name of a PFX (PKCS12) file containing certificates. |
PFXBLOB | The certificate store is a string (base-64-encoded) representing a certificate store in PFX (PKCS12) format. |
JKSFILE | The certificate store is the name of a Java key store (JKS) file containing certificates. Note that this store type is only available in Java. |
JKSBLOB | The certificate store is a string (base-64-encoded) representing a certificate store in JKS format. Note that this store type is only available in Java. |
PEMKEY_FILE | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
PEMKEY_BLOB | The certificate store is a string (base64-encoded) that contains a private key and an optional certificate. |
PEMKEY_BLOB | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
PUBLIC_KEY_FILE | The certificate store is a string (base-64-encoded) that contains a PEM- or DER-encoded public key certificate. |
SSHPUBLIC_KEY_FILE | The certificate store is the name of a file that contains an SSH-style public key. |
SSHPUBLIC_KEY_BLOB | The certificate store is a string (base-64-encoded) that contains an SSH-style public key. |
P7BFILE | The certificate store is the name of a PKCS7 file containing certificates. |
PPKFILE | The certificate store is the name of a file that contains a PuTTY Private Key (PPK). |
XMLFILE | The certificate store is the name of a file that contains a certificate in XML format. |
XMLBLOB | The certificate store is a string that contains a certificate in XML format. |
SSL Server Cert
The certificate to be accepted from the server when connecting using TLS/SSL.
Data Type
string
Default Value
""
Remarks
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.
This property can take the following forms:
Description | Example |
A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
A path to a local file containing the certificate | C:\cert.cer |
The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine is accepted.
Certificates are validated as trusted by the machine based on the System's trust store. The trust store used is the 'javax.net.ssl.trustStore' value specified for the system. If no value is specified for this property, Java's default trust store is used (for example, JAVA_HOME\lib\security\cacerts).
Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.
This property can take the following forms:
Description | Example |
A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
A path to a local file containing the certificate | C:\cert.cer |
The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine is accepted.
Certificates are validated as trusted by the machine based on the System's trust store. The trust store used is the 'javax.net.ssl.trustStore' value specified for the system. If no value is specified for this property, Java's default trust store is used (for example, JAVA_HOME\lib\security\cacerts).
Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.
SSO Login URL
The SSOProvider login URL.
Data Type
string
Default Value
""
Remarks
The SSOProvider login URL.
SSO Password
The password of the SSOProvider used to authenticate the user.
Data Type
string
Default Value
""
Remarks
The SSOUser and SSOPassword are together used to authenticate with the SSOProvider.
SSO Provider
The name of the SSO provider you are trying to authenticate.
Data Type
string
Default Value
"OKTA"
Remarks
The name of the SSO provider you are trying to authenticate. The following options are available: OKTA,OneLogin,ADFS
SSO User
The SSOProvider user account used to authenticate.
Data Type
string
Default Value
""
Remarks
Together with SSOPassword, this field is used to authenticate against the specified SSOProvider.
Strip Out Nulls
When set the null characters are stripped out from character values in bulk operations.
Data Type
bool
Default Value
false
Remarks
Timeout
The value in seconds until the timeout error is thrown, canceling the operation.
Data Type
int
Default Value
10
Remarks
If Timeout = 0, operations do not time out. The operations run until they complete successfully or until they encounter an error condition.
If Timeout expires and the operation is not yet complete, the adapter throws an exception.
Time Zone
Set time zone for the current session.
Data Type
string
Default Value
""
Remarks
If the TimeZone property is not set, provider uses client system time zone. Setting this property can be useful when you need the server to convert time with time zone and timestamp with timezone values to specific time zone, which is different than client's system time zone.
User
The username used to authenticate with the Amazon Redshift Server .
Data Type
string
Default Value
""
Remarks
The username used to authenticate with the Amazon Redshift Server.
Use SSL
This field sets whether SSL is enabled.
Data Type
bool
Default Value
false
Remarks
This field sets whether the adapter will attempt to negotiate TLS/SSL connections to the server. By default, the adapter checks the server's certificate against the system's trusted certificate store. To specify another certificate, set SSLServerCert.
Visibility
Visibility restrictions used to filter exposed metadata for tables with privileges granted to them for current user. For example 'SELECT,INSERT' filter is restricting metatdata visibility only for those tables which may be accessed by current user for SELECT and INSERT opearations. Supported privilege values are SELECT, INSERT, UPDATE, DELETE, REFERENCES.
Data Type
string
Default Value
""
Remarks
By default visibility filtering is not applied. Filtering values are case insensitive.