
Download redshift driver - similar. Exclusive
Configuring an ODBC connection
You can use an ODBC connection to connect to your Amazon Redshift cluster from many third-party SQL client tools and applications. To do this, set up the connection on your client computer or Amazon EC2 instance. If your client tool supports JDBC, you might choose to use that type of connection rather than ODBC due to the ease of configuration that JDBC provides. However, if your client tool doesn't support JDBC, follow the steps in this section to configure an ODBC connection.
Amazon Redshift provides ODBC drivers for Linux, Windows, and macOS X operating systems. Before you install an ODBC driver, determine whether your SQL client tool is 32-bit or 64-bit. Install the ODBC driver that matches the requirements of your SQL client tool. Otherwise, the connection doesn't work. If you use more than one SQL client tool on the same computer or instance, make sure that you download the appropriate drivers. You might need to install both the 32-bit and the 64-bit drivers if the tools differ in their system architecture.
For the latest information about ODBC driver functionality and prerequisites, see Amazon Redshift ODBC driver release notes.
For installation and configuration information for Amazon Redshift ODBC drivers, see Amazon Redshift ODBC driver installation and configuration guide.
If you want to use an ODBC connection, take the following steps.
Obtain the ODBC URL for your cluster
Amazon Redshift displays the ODBC URL for your cluster in the Amazon Redshift console. This URL contains the information to set up the connection between your client computer and the database.
An ODBC URL has the following format:
The fields of the format shown preceding have the following values.
Field | Value |
---|---|
The name of the ODBC driver to use. Depending on the driver that you download for your architecture, the values is Amazon Redshift (x86) (for the 32-bit driver) or Amazon Redshift (x64) (for the 64-bit driver). | |
The endpoint of the Amazon Redshift cluster. | |
The database that you created for your cluster. | |
The user name of a user account that has permission to connect to the database. This value is a database permission, not an Amazon Redshift permission, although you can use the master user account that you set up when you launched the cluster. | |
The password for the user account to connect to the database. | |
The port number that you specified when you launched the cluster. If you have a firewall, ensure that this port is open for you to use. |
The following is an example ODBC URL:
For information about how to get your ODBC connection, see Finding your cluster connection string.
Install and configure the Amazon Redshift ODBC driver on Microsoft Windows
System requirements
You install the Amazon Redshift ODBC driver on client computers accessing an Amazon Redshift data warehouse. Each computer where you install the driver must meet a list of minimum system requirements. For information about minimum system requirements, see Amazon Redshift ODBC driver installation and configuration guide.
Installing the Amazon Redshift driver on Windows operating systems
Use the following procedure to download the Amazon Redshift ODBC drivers for Windows operating systems. Only use a driver other than these if you're running a third-party application that is certified for use with Amazon Redshift and that requires a specific driver.
To install the ODBC driver
Download one of the following, depending on the system architecture of your SQL client tool or application:
Download the MSI package that corresponds to the system architecture of your SQL client tool or application. For example, if your SQL client tool is 64-bit, install the 64-bit driver.
Then download and review the Amazon Redshift ODBC and JDBC driver license agreement.
Double-click the .msi file, and then follow the steps in the wizard to install the driver.
Creating a system DSN entry for an ODBC connection on Microsoft Windows
After you download and install the ODBC driver, add a data source name (DSN) entry to the client computer or Amazon EC2 instance. SQL client tools use this data source to connect to the Amazon Redshift database.
We recommend that you create a system DSN instead of a user DSN. Some applications load the data using a different user account. These applications might not be able to detect user DSNs that are created under another user account.
For information about how to create a system DSN entry, see Amazon Redshift ODBC driver installation and configuration guide.
To create a system DSN entry for an ODBC connection on Windows
In the Start menu, open ODBC Data Sources.
Make sure that you choose the ODBC Data Source Administrator that has the same bitness as the client application that you are using to connect to Amazon Redshift.
In the ODBC Data Source Administrator, choose the Driver tab and locate the driver folder.
If you installed the 32-bit driver, the folder is named Amazon Redshift ODBC Driver (32-bit). If you installed the 64-bit driver, the folder is named Amazon Redshift ODBC Driver (64-bit). If you installed both drivers, you have a folder for each driver.
Choose the System DSN tab to configure the driver for all users on the computer, or the User DSN tab to configure the driver for your user account only.
Choose Add. The Create New Data Source window opens.
Choose the Amazon Redshift ODBC driver, and then choose Finish. The Amazon Redshift ODBC Driver DSN Setup window opens.
Under Connection Settings, enter the following information:
Data source name
Enter a name for the data source. You can use any name that you want to identify the data source later when you create the connection to the cluster. For example, if you followed the Amazon Redshift Getting Started, you might type to make it easy to remember the cluster that you associate with this DSN.
Server
Specify the endpoint for your Amazon Redshift cluster. You can find this information in the Amazon Redshift console on the cluster's details page. For more information, see Configuring connections in Amazon Redshift.
Port
Enter the port number that the database uses. By default, Amazon Redshift uses 5439, but use the port that the cluster was configured to use when it was launched.
Database
Enter the name of the Amazon Redshift database. If you launched your cluster without specifying a database name, enter . Otherwise, use the name that you chose during the launch process. If you followed the Amazon Redshift Getting Started, enter .
Under Authentication, specify the configuration options to configure standard or IAM authentication. For information about different authentication options, see "Configuring Authentication on Windows" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
Under SSL Settings, specify a value for the following:
SSL authentication
Choose a mode for handling Secure Sockets Layer (SSL). In a test environment, you might use . However, for production environments and when secure data exchange is required, use or . For more information about using SSL on Windows, see "Configuring SSL Verification on Windows" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
Under Additional Options, specify options on how to return query results to your SQL client tool or application. For more information, see "Configuring Additional Options on Windows" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
In Logging Options, specify values for the logging option. For more information, see "Configuring Logging Options on Windows" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
Then choose OK.
Under Data Type Options, specify values for data types. For more information, see "Configuring Data Type Options on Windows" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
Then choose OK.
Choose Test. If the client computer can connect to the Amazon Redshift database, you see the following message: Connection successful.
If the client computer fails to connect to the database, you can troubleshoot possible issues. For more information, see Troubleshooting connection issues in Amazon Redshift.
Configure TCP keepalives on Windows to prevent connections from timing out. For information about how to configure TCP keepalives on Windows, see Amazon Redshift ODBC Driver Installation and Configuration Guide.
To help troubleshooting, configure logging. For information about how to configure logging on Windows, see Amazon Redshift ODBC Driver Installation and Configuration Guide.
Install the Amazon Redshift ODBC driver on Linux
System requirements
You install the Amazon Redshift ODBC driver on client computers accessing an Amazon Redshift data warehouse. Each computer where you install the driver must meet a list of minimum system requirements. For information about minimum system requirements, see Amazon Redshift ODBC driver installation and configuration guide.
Installing the Amazon Redshift driver on Linux operating systems
Use the steps in this section to download and install the Amazon Redshift ODBC drivers on a supported Linux distribution. The installation process installs the driver files in the following directories:
(for a 32-bit driver)
(for a 64-bit driver)
To install the Amazon Redshift ODBC driver
Download one of the following, depending on the system architecture of your SQL client tool or application:
The name for each of these drivers is Amazon Redshift ODBC driver.
Download the package that corresponds to the system architecture of your SQL client tool or application. For example, if your client tool is 64-bit, install a 64-bit driver.
Then download and review the Amazon Redshift ODBC and JDBC driver license agreement.
Go to the location where you downloaded the package, and then run one of the following commands. Use the command that corresponds to your Linux distribution.
On RHEL and CentOS operating systems, run the following command.
Replace with the RPM package file name. For example, the following command demonstrates installing the 32-bit driver.
On SLES, run the following command.
Replace with the RPM package file name. For example, the following command demonstrates installing the 64-bit driver.
On Debian, run the following command.
Replace with the Debian package file name. For example, the following command demonstrates installing the 64-bit driver.
Install the Amazon Redshift ODBC driver on macOS X
System requirements
You install the driver on client computers accessing an Amazon Redshift data warehouse. Each computer where you install the driver must meet a list of minimum system requirements. For information about minimum system requirements, see Amazon Redshift ODBC driver installation and configuration guide.
Installing the Amazon Redshift ODBC driver on macOS X
Use the steps in this section to download and install the Amazon Redshift ODBC driver on a supported version of macOS X. The installation process installs the driver files in the following directories:
Configure the ODBC driver on Linux and macOS X operating systems
On Linux and macOS X operating systems, you use an ODBC driver manager to configure the ODBC connection settings. ODBC driver managers use configuration files to define and configure ODBC data sources and drivers. The ODBC driver manager that you use depends on the operating system that you use. For more information about the supported ODBC driver managers to configure the Amazon Redshift ODBC drivers, see System requirements for Linux operating systems and System requirements for macOS X operating systems.
Three files are required for configuring the Amazon Redshift ODBC driver: , , and .
If you installed to the default location, the configuration file is located in one of the following directories:
(for the 32-bit driver on Linux operating systems)
(for the 64-bit driver on Linux operating systems)
(for the driver on macOS X)
Additionally, under on Linux or /opt/amazon/redshift/Setup on macOS X, there are sample and files. You can use these files as examples for configuring the Amazon Redshift ODBC driver and the data source name (DSN).
We don't recommend using the Amazon Redshift ODBC driver installation directory for the configuration files. The sample files in the directory are for example purposes only. If you reinstall the Amazon Redshift ODBC driver at a later time, or upgrade to a newer version, the installation directory is overwritten. You then lose any changes that you might have made to those files.
To avoid this, copy the file to a directory other than the installation directory. If you copy this file to the user's home directory, add a period (.) to the beginning of the file name to make it a hidden file.
For the and files, either use the configuration files in the user's home directory or create new versions in another directory. By default, your Linux or macOS X operating system should have an file and an file in the user's home directory ( or .). These default files are hidden files, which is indicated by the dot (.) in front of each file name. These files display only when you use the flag to list the directory contents.
Whichever option you choose for the and files, modify the files to add driver and DSN configuration information. If you create new files, you also need to set environment variables to specify where these configuration files are located.
By default, ODBC driver managers are configured to use hidden versions of the and configuration files (named . and .) located in the home directory. They also are configured to use the file in the subfolder of the driver installation directory. If you store these configuration files elsewhere, set the environment variables described following so that the driver manager can locate the files. For more information, see "Specifying the Locations of the Driver Configuration Files" in Amazon Redshift ODBC driver installation and configuration guide.
Creating a data source name on Linux and macOS X operating systems
When connecting to your data store using a data source name (DSN), configure the file to define DSNs. Set the properties in the file to create a DSN that specifies the connection information for your data store.
For information about how to configure the file, see "Creating a Data Source Name on a Non-Windows Machine" in Amazon Redshift ODBC driver installation and configuration guide.
Use the following format on Linux operating systems.
The following example shows the configuration for odbc.ini on Linux operating systems.
Use the following format on macOS X operating systems.
The following example shows the configuration for on macOS X operating systems.
Configuring a connection without a DSN on Linux and macOS X operating systems
To connect to your data store through a connection that doesn't have a DSN, define the driver in the file. Then provide a DSN-less connection string in your application.
For information about how to configure the file in this case, see "Configuring a DSN-less Connection on a Non-Windows Machine" in Amazon Redshift ODBC driver installation and configuration guide.
Use the following format on Linux operating systems.
The following example shows the configuration for both the 32-bit and 64-bit drivers installed in the default directories on Linux operating systems.
Use the following format on macOS X operating systems.
The following example shows the configuration for the driver installed in the default directory on macOS X operating systems.
Configuring environment variables
Use the correct ODBC driver manager to load the correct driver. To do this, set the library path environment variable. For more information, see "Specifying ODBC Driver Managers on Non-Windows Machines" in Amazon Redshift ODBC driver installation and configuration guide.
By default, ODBC driver managers are configured to use hidden versions of the and configuration files (named . and .) located in the home directory. They also are configured to use the file in the subfolder of the driver installation directory. If you store these configuration files elsewhere, the environment variables so that the driver manager can locate the files. For more information, see "Specifying the Locations of the Driver Configuration Files" in Amazon Redshift ODBC Driver Installation and Configuration Guide.
Configuring connection features
You can configure the following connection features for your ODBC setting:
Configure the ODBC driver to provide credentials and authenticate the connection to the Amazon Redshift database.
Configure the ODBC driver to connect to a socket enabled with Secure Sockets Layer (SSL), if you are connecting to an Amazon Redshift server that has SSL enabled.
Configure the ODBC driver to connect to Amazon Redshift through a proxy server.
Configure the ODBC driver to use a query processing mode to prevent queries from consuming too much memory.
Configure the ODBC driver to pass IAM authentication processes through a proxy server.
Configure the ODBC driver to use TCP keepalives to prevent connections from timing out.
For information about these connection features, see Amazon Redshift ODBC driver installation and configuration guide.
Configure ODBC driver options
You can use configuration options to control the behavior of the Amazon Redshift ODBC driver.
In Microsoft Windows, you typically set driver options when you configure a data source name (DSN). You can also set driver options in the connection string when you connect programmatically, or by adding or changing registry keys in . For more information about configuring a DSN, see Install and configure the Amazon Redshift ODBC driver on Microsoft Windows. For an example of setting driver options in a connection string, see Connect to your cluster programmatically.
In Linux and macOS X, you set driver configuration options in your and files, as described in Configure the ODBC driver on Linux and macOS X operating systems. Configuration options set in an file apply to all connections. In contrast, configuration options set in an file are specific to a connection. Configuration options set in take precedence over configuration options set in .
For information about how to set up ODBC driver configuration options, see Amazon Redshift ODBC driver installation and configuration guide.
Use previous ODBC driver versions in certain cases
Download a previous version of the Amazon Redshift ODBC driver only if your tool requires a specific version of the driver.
For authentication using AWS Identity and Access Management (IAM) credentials or identity provider (IdP) credentials, use Amazon Redshift ODBC driver version 1.3.6.1000 or later.
Amazon Redshift has changed the way that SSL certificates are managed. If you must use a driver version earlier than 1.3.7.1000, you might need to update your current trust root CA certificates to continue to connect to your clusters using SSL. For more information, see Transitioning to ACM certificates for SSL connections.
Use previous ODBC driver versions for Windows
The following are the 32-bit drivers:
The following are the 64-bit drivers:
0 thoughts to “Download redshift driver”