Professional Documents
Culture Documents
7.2 Netezza Odbc JDBC Guide
7.2 Netezza Odbc JDBC Guide
Version 7.2
IBM Netezza
Version 7.2
Note
Before using this information and the product it supports, read the information in “Notices” on page C-1
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X-1
iv IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Electronic emission notices
When you attach a monitor to the equipment, you must use the designated
monitor cable and any interference suppression devices that are supplied with the
monitor.
This equipment was tested and found to comply with the limits for a Class A
digital device, according to Part 15 of the FCC Rules. These limits are designed to
provide reasonable protection against harmful interference when the equipment is
operated in a commercial environment. This equipment generates, uses, and can
radiate radio frequency energy and, if not installed and used in accordance with
the instruction manual, might cause harmful interference to radio communications.
Operation of this equipment in a residential area is likely to cause harmful
interference, in which case the user is required to correct the interference at their
own expense.
Properly shielded and grounded cables and connectors must be used to meet FCC
emission limits. IBM® is not responsible for any radio or television interference
caused by using other than recommended cables and connectors or by
unauthorized changes or modifications to this equipment. Unauthorized changes
or modifications might void the authority of the user to operate the equipment.
This device complies with Part 15 of the FCC Rules. Operation is subject to the
following two conditions: (1) this device might not cause harmful interference, and
(2) this device must accept any interference received, including interference that
might cause undesired operation.
Responsible manufacturer:
Dieses Gerät ist berechtigt, in Übereinstimmung mit dem Deutschen EMVG das
EG-Konformitätszeichen - CE - zu führen.
Verantwortlich für die Einhaltung der EMV Vorschriften ist der Hersteller:
vi IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
International Business Machines Corp.
New Orchard Road
Armonk, New York 10504
914-499-1900
IBM Deutschland
Technical Regulations, Department M456
IBM-Allee 1, 71137 Ehningen, Germany
Telephone: +49 7032 15-2937
Email: tjahn@de.ibm.com
This product is a Class A product based on the standard of the Voluntary Control
Council for Interference (VCCI). If this equipment is used in a domestic
environment, radio interference might occur, in which case the user might be
required to take corrective actions.
This is electromagnetic wave compatibility equipment for business (Type A). Sellers
and users need to pay attention to it. This is for any areas other than home.
viii IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Regulatory and compliance
Regulatory Notices
Install the NPS® system in a restricted-access location. Ensure that only those
people trained to operate or service the equipment have physical access to it.
Install each AC power outlet near the NPS rack that plugs into it, and keep it
freely accessible.
The IBM PureData® System for Analytics appliance requires a readily accessible
power cutoff. This can be a Unit Emergency Power Off Switch (UEPO), a circuit
breaker or completely remove power from the equipment by disconnecting the
Appliance Coupler (line cord) from all rack PDUs.
CAUTION:
Disconnecting power from the appliance without first stopping the NPS
software and high availability processes might result in data loss and increased
service time to restart the appliance. For all non-emergency situations, follow the
documented power-down procedures in the IBM Netezza System Administrator’s
Guide to ensure that the software and databases are stopped correctly, in order, to
avoid data loss or file corruption.
High leakage current. Earth connection essential before connecting supply. Courant
de fuite élevé. Raccordement à la terre indispensable avant le raccordement au
réseau.
Homologation Statement
This product may not be certified in your country for connection by any means
whatsoever to interfaces of public telecommunications networks. Further
certification may be required by law prior to making any such connection. Contact
an IBM representative or reseller for any questions.
Use this information to learn about the SQL CLI, ODBC, JDBC, and OLE DB
interfaces in the IBM Netezza database environment. The topics include procedures
for installing and configuring driver managers, IBM Netezza ODBC and JDBC
drivers, the OLE DB provider, and data sources on all IBM Netezza supported
platforms.
You should be familiar with Netezza concepts and user interfaces, as described in
theIBM Netezza Getting Started Tips. You should be comfortable using
command-line interfaces, Linux operating system utilities, windows-based
administration interfaces, and installing software on client systems for access.
For more information about these implementations, refer to resources such as the
following sites:
v For the Microsoft ODBC implementation of the SQL CLI standards, see
http://msdn.microsoft.com/en-us/library.
v For the Oracle Sun Developer Network JDBC implementation of the SQL CLI,
see http://java.sun.com/reference/api/index.html .
v For the Microsoft OLE DB implementation, see http://msdn.microsoft.com/en-us/
library.
xii IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Chapter 1. General information about ODBC, JDBC, and OLE
DB
The International standard for SQL defines a standard high-level language for
accessing and manipulating the data which is stored in a relational database. The
International standard for the SQL CLI defines an application programming
interface (API) that programs use to issue SQL statements in a standardized
manner through a series of well-defined API functions.
The term Open Database Connectivity (ODBC) is a more commonly used term than
SQL CLI, and in many contexts, the two terms are used synonymously. ODBC is a
Microsoft specification for an API that constitutes an implementation of the
International standards for the SQL CLI. ODBC is a superset of the SQL API, since
it defines many functions that the International standards for the SQL API do not
define. However, the SQL CLI and the Microsoft ODBC specification are closely
aligned, and the two terms are used interchangeably especially in the C and C++
programming environments. Unless otherwise noted, the terms SQL CLI and
ODBC mean the same thing in this document.
Sun Microsystems developed a specification, called JDBC, that defines an API for
the Java™ programming environment that Java programmers use to access
relational databases and issue SQL statements. The JDBC specification defines
many of the same types of functions for Java programmers that ODBC and the
SQL CLI define for C and C++ programmers. It is possible for Java programs to
directly invoke the API functions defined by ODBC and the SQL API. However,
the nature of the Java programming environment makes this process cumbersome.
JDBC often provides a better solution than ODBC for the object-oriented Java
programming environment.
Like ODBC, JDBC is an implementation of the International standards for the SQL
CLI. The JDBC implementation consists of a set of Java interfaces, classes, and
methods that a Java programmer can use to do the same types of functions that a
C or C++ programmer uses when invoking ODBC function calls. Similarly, JDBC
constitutes a superset of the SQL CLI, since it defines many functions that the
International standards for the SQL CLI do not define.
ODBC architecture
To use ODBC to access an IBM Netezza appliance, you need at least a two-tier
client-server configuration. In a two-tier client-server system, the data source is
stored on the Netezza appliance, which handles all database access processing. The
ODBC driver, driver manager, and application reside on the client system and use
a network connection to a Postgres process on the Netezza appliance host, which
coordinates SQL statement processing functions.
JDBC architecture
1-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
driver is a Type 4, pure Java driver that Netezza tested for conformance
with the Oracle JDBC specifications on Windows, Linux, and UNIX
platforms. The Netezza JDBC driver supports all NZSQL data types,
includes password encryption, and provides for connection options for
host, port, and database. Starting with Netezza appliance Release 4.6, the
JDBC driver requires Java Runtime Environment (JRE) release 1.5 or later.
If your Netezza host runs release 7.1.0.0 or later and is configured to use
SP 800-131a cryptography support, your JDBC clients require Java Runtime
Environment (JRE) release 1.7 or later. If your Netezza host runs release
7.2.0.0 or later and is configured to use Kerberos authentication, your JDBC
clients require Java Runtime Environment (JRE) release 1.6 or later.
Data source
A data source contains the sets of data the JDBC driver accesses, along
with all the environments associated with the data. These environments
might include file access or database access software, an operating system,
and a networking platform.
To use JDBC to access an IBM Netezza appliance, you need at least a two-tier
client-server configuration. In a two-tier client-server system, the data source is
stored on the Netezza appliance, which handles all database access processing. The
JDBC driver, virtual machine, and JDBC application reside on the client system and
use a network connection to a Postgres process on the Netezza appliance host,
which coordinates SQL statement processing functions.
1-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Chapter 2. Support and release compatibility
This section describes the supported platforms and compatibility.
Related concepts:
“Client software packages” on page 3-1
Supported platforms
IBM Netezza supplies clients that support the following platforms for ODBC and
JDBC:
Table 2-1. Netezza supported platforms
Operating system 32-bit 64-bit
Windows
Windows 2008, Vista, 7 Intel / AMD Intel / AMD
Windows Server 2012 N/A Intel / AMD
Linux
Red Hat Enterprise Linux 5.2, 5.3, 5.5, 5.9; and 6 Intel / AMD Intel / AMD
through 6.5
Red Hat Linux 6.2+ N/A PowerPC®
SUSE Linux Enterprise Server 11 Intel / AMD Intel / AMD
®
SUSE Linux Enterprise Server 10 and 11, and IBM System z IBM System z
Red Hat Enterprise Linux 5.x
UNIX
IBM AIX® 6.1 with 5.0.2.1 C++ runtime libraries, N/A PowerPC
7.1
HP-UX 11i versions 1.6, 2 (B.11.22 and B.11.23), Itanium Itanium
and 3
Oracle Solaris 10, 11 SPARC SPARC
Oracle Solaris 10 x86 x86
Note: Typically, the Netezza clients also support the update releases for each of the
OS versions listed in the table, unless the OS vendor introduced architecture
changes in the update.
The OLE DB provider is supported on the Windows clients that are shown in the
following table:
Table 2-2. OLE DB Windows support
Operating system 32-bit 64-bit
Windows 2008, Vista, 7 Intel / AMD Intel / AMD
Windows Server 2012 N/A Intel / AMD
The software and driver/provider versions shown are baseline versions. Always
check the Netezza site for the latest version to ensure up-to-date capability.
Table 2-3. Implementation, Netezza driver/provider, and software compatibility
Netezza
Implementation driver/provider Netezza appliance software
ODBC 7.0.x 5.0.x, 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.1.x 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.2.x 7.0.x, 7.1.x, 7.2.x
JDBC 7.0.x 5.0.x, 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.1.x 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.2.x 7.0.x, 7.1.x, 7.2.x
OLE DB 7.0.x 5.0.x, 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.1.x 6.0.x, 7.0.x, 7.1.x, 7.2.x
7.2.x 7.0.x, 7.1.x, 7.2.x
If you have a more recent driver and you must connect to a system that runs an
older Netezza release, a set query returns an error if the Netezza system does not
support the field that is being set.
When you install a Netezza ODBC driver in a client computer system, you must
choose one of the available drivers. You cannot install multiple Netezza ODBC
drivers in the same client system.
2-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Standards conformance and API versions
The IBM Netezza ODBC drivers conform to the Microsoft specification for the
Open Database Connectivity (ODBC) API and the following International
standards for the SQL Call Level Interface (SQL CLI):
v The X/Open CAE Specification “Data Management: SQL Call-Level Interface
(CLI)”
v ISO/IEC 9075-3:1995 (E) Call Level Interface (SQL CLI)
The X/Open and ISO/IEC standards for the SQL CLI are published in separate
documents, but the two standards are closely aligned.
For more information about JDBC conformance and API versions, see the Oracle
documentation.
For more information about OLE DB conformance and API versions, see the
Microsoft documentation at http://msdn.microsoft.com/en-us/library.
IBM Netezza release 7.1 added support for IBM DB2 24:00:00 time support as an
optional configuration for the database. However, JDBC has limited support for the
24:00:00 time format. If you use the 24:00:00 time support in your Netezza
database, note that JDBC uses the value 23:59:59:999999 to represent the 00:00:00
time value of the next day.
The first step in preparing a system for ODBC, JDBC, or OLE DB is to install the
Netezza appliance client tools software on your system. If these client tools are
installed, skip this section. After you install the client tools, you can install the
ODBC drivers, JDBC drivers, or the OLE DB provider.
Installation requirements
The installation package requires a computer system that runs a supported
Windows operating system such as Windows Vista (32-bit and 64-bit), Windows
If you use or view object names that use UTF-8 encoded characters, your Windows
client systems require the Microsoft universal font to display the characters within
the NzAdmin tool. The Arial Unicode MS font is installed by default on some
Windows systems, but you might need to run a manual installation for other
Windows platforms such as 2003 or others. For more information, see the Microsoft
support topics available on the Microsoft website.
The installation program displays a license agreement, which you must accept to
install the client tools. You can also specify the following information:
Destination folder
You can use the default installation folder or specify an alternative
location. The default folder is C:\Program Files\IBM Netezza Tools. If you
choose a different folder, the installation program creates the folder if one
does not exist.
Setup type
Select the type of installation: typical, minimal, or custom.
Typical
Install the NzAdmin program, the help file, the documentation,
and the console utilities.
Minimal
Install the NzAdmin program and help files.
Custom
Install any combination of the administration application, console
applications, or documentation.
After you complete the selections and review the installation options, the client
installer creates the Netezza Tools folder, which has several subfolders. You cannot
change the subfolder names or locations.
Bin Executable files and support files
Doc Copies of the Netezza user guides and an Acrobat Index to search the doc
set
3-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Help Application help files
jre Java runtime environment files for the installer and uninstaller programs of
the Netezza tools
sys Application string files
Uninstall Netezza Tools
Files to remove Netezza tools from the client system
The installation program adds the Netezza commands to the Start > Programs
menu. The program group is IBM Netezza and it has the suboptions IBM Netezza
Administrator and Documentation. The IBM Netezza Administrator option starts
the NzAdmin tool. The Documentation command lists the installed user guide
PDFs.
To use the commands in the bin directory, you must open a Windows
command-line prompt (a DOS prompt).
Environment variables
The following table lists the operating system environment variables that the
installation tool adds for the IBM Netezza console applications.
Table 3-1. Environment variables
Variable Operation Setting
NZ_DIR set Installation directory (for example C:\Program Files\IBM
Netezza Tools)
PATH append installation directory\bin
If you are installing the clients on 64-bit operating systems, there are some
additional steps to install a second, 64-bit client package. The IBM Netezza clients
are 32-bit operating system executables and they require 32-bit libraries that are not
provided with the clients. If the libraries are not already installed on your system,
you must obtain and install the libraries using your operating system update
process.
1. Obtain the nz-platformclient-version.archive) client package from the IBM
Fix Central site and download it to the client system. Use or create a new,
empty directory to reduce any confusion with other files or directories. There
are several client packages available for different common operating system
types, as described in “Supported platforms” on page 2-1. Make sure that you
obtain the correct client package. These instructions use the Linux client
package as an example of the procedure.
Note: On an HP-UX 11i client, /bin/sh might not be available. You can use the
command form sh ./unpack to unpack the client.
The unpack command checks the client system to ensure that it supports the
CLI package and prompts you for an installation location. The default is
/usr/local/nz for Linux, but you can install the CLI tools to any location on
the client. The program prompts you to create the directory if it does not
already exist. Sample command output follows:
------------------------------------------------------------------
IBM Netezza -- NPS Linux Client 7.1.0.0
(C) Copyright IBM Corp. 2002, 2014 All Rights Reserved.
------------------------------------------------------------------
Validating package checksum ... ok
Where should the NPS Linux Client be unpacked? [/usr/local/nz]
Directory ’/usr/local/nz’ does not exist; create it (y/n)? [y] Enter
0% 25% 50% 75% 100%
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Unpacking complete.
5. If your client has a 64-bt operating system, change to the linux64 directory and
run the unpack command to install the 64-bit CLI files:./unpack.
The unpack command prompts you for an installation location. The default is
/usr/local/nz for Linux, but you should use the same location that you used
for the 32-bit CLI files in the previous step. Sample command output follows:
------------------------------------------------------------------
IBM Netezza -- NPS Linux Client 7.1.0.0
(C) Copyright IBM Corp. 2002, 2014 All Rights Reserved.
------------------------------------------------------------------
Validating package checksum ... ok
Where should the NPS Linux Client be unpacked? [/usr/local/nz]
Installing in an existing directory. Changing permissions to
overwrite existing files...
0% 25% 50% 75% 100%
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Unpacking complete.
The client installation steps are complete, and the Netezza CLI commands are
installed to your specified destination directory. The NPS commands are located in
the bin directory where you unpacked the NPS clients. If you are using a 64-bit
operating system on your workstation, note that there is a 64-bit nzodbcsql
command in the bin64 directory for testing the SQL command connections.
3-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Test to make sure that you can run the client commands. Change to the bin
subdirectory of the client installation directory (for example, /usr/local/nz/bin).
Run a sample command such as the nzds command to verify that the command
succeeds or to identify any errors.
./nzds -host nzhost -u user -pw password
The command displays a list of the data slices on the target NPS system. If the
command runs without error, your client system has the required libraries and
packages to support the Netezza clients. If the command fails with a library or
other error, the client may require some additional libraries or shared objects.
For example, on a Red Hat Enterprise Linux 64-bit client system, you could see an
error similar to the following:
[root@myrhsystem bin]# ./nzds
-bash: ./nzds: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
For example, on a SUSE 10/11 64-bit client system, you could see an error similar
to the following:
mylinux:/usr/local/nz/bin # ./nzds
./nzds: error while loading shared libraries: libssl.so.4: cannot open shared
object file: No such file or directory
These errors indicate that the client is missing 32-bit library files that are required
to run the NPS clients. Identify the packages that provide the library and obtain
those packages. You may need assistance from your local workstation IT
administrators to obtain the operating system packages for your workstation.
To identify and obtain the required Red Hat packages, you could use a process
similar to the following.
v Use the yum provides command and specify the file name to see which package
provides the file that could not be found (ld-linux.so.2 in this example).
yum provides ld-linux.so.2
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
RHEL64 | 3.9 kB 00:00 ...
glibc-2.12-1.107.el6.i686 : The GNU libc libraries
Repo : RHEL64
Matched from:
Other : ld-linux.so.2
In this example, the missing package is glibc-2.12-1.107.el6.i686.
v In some cases, the NPS command could report an error for a missing libssl file.
You can use the yum provides command to obtain more information about the
packages that contain the library, and if any of the files already exist on your
workstation.
yum provides */libssl*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Based on the missing libraries and packages, use the following steps to obtain the
Red Hat packages.
v Mount the Red Hat distribution DVD or ISO file to the client system. Insert the
DVD into the DVD drive.
v Open a terminal window and log in as root.
v Run the following commands:
[root@myrhsystem]# mkdir /mnt/cdrom
[root@myrhsystem]# mount -o ro /dev/cdrom /mnt/cdrom
v Create the text file server.repo in the /etc/yum.repos.d directory.
To identify and obtain the required SUSE packages, you could use a process
similar to the following.
v Log in to the SUSE system as root or a superuser.
v If the test NPS command failed with the error that libssl.so.4 or
libcrypto.so.4 or both could not be found, you could be able to resolve the
issue by adding a symbolic link to the missing file from the NPS client
installation directory (for example, /usr/local/nz/lib). Use the ls /lib/libssl*
command to list the available libraries in the standard OS directories. You could
then create symbolic links to one of your existing libssl.so and libcrypto.so
files by using commands similar to the following:
mylinux:/usr/local/nz/lib # ln -s /usr/lib/libssl.so.0.9.8 /lib/libssl.so.4
mylinux:/usr/local/nz/lib # ln -s /usr/lib/libcrypto.so.0.9.8 /lib/libcrypto.so.4
v If you are missing other types of files or libraries, use the zypper wp command
and specify the file name to see which package provides it. An example follows.
3-6 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
zypper wp ld-linux.so.2
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+-------------+---------+----------+--------+---------------------------------
i | glibc-32bit | package | 2.9-13.2 | x86_64 | SUSE-Linux-Enterprise-Desktop-11
In this example, the missing package is glibc-32bit.
If the error indicates that you are missing other libraries or packages, use the
following steps to obtain the SUSE packages.
v Open a terminal window and log in as root.
v Run the yast command to open the YaST interface.
v One the YaST Control Center, select Software and go to the software repositories
to configure and enable a DVD, a server, or an ISO file as a repository source.
Select the appropriate source for your SUSE environment. Consult with your IT
department about the policies for package updates in your environment.
v On the Software tab, go to Software Management and search for the required
package or library such as glibc-32bit in this example.
v Click Accept to install the required package.
v Exit YaST by clicking Quit.
To run the CLI commands on Solaris, you must include /usr/local/lib in your
environment variable LD_LIBRARY_PATH. Additionally, to use the ODBC driver on
Linux, Solaris, or HP-UX, you must also include in the LD_LIBRARY_PATH the
pathname /usr/local/nz/lib, or the directory path to nz/lib where you installed
the Netezza CLI tools.
ODBC drivers
An ODBC driver uses a layer of code that translates the ODBC standard API calls
the application issues into vendor-specific functions. IBM Netezza supplies an
ODBC driver for many supported platforms (32-bit and 64-bit), and for many
different versions of the Netezza database.
ODBC drivers show the capabilities of the underlying data source, and each ODBC
driver is designed for a particular database management system. For example, an
ODBC driver designed to access a different vendor database cannot be used to
access a Netezza database.
Related concepts:
Appendix B, “Troubleshooting,” on page B-1
4-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
v Performing any required ODBC API function call conversions. For example, if an
ODBC application issues ODBC 2.5 function calls and is using an ODBC 3.0
driver, the driver manager converts ODBC 2.5 function calls to their ODBC 3.0
equivalents when necessary.
v Performing error checking and validation functions on ODBC API function calls
before passing them to the ODBC driver.
v Performing some character set conversions. For example, if the application uses
an 8-bit ASCII character set, and the ODBC driver and DBMS work with
character data in 16-bit Unicode format, the driver manager does the necessary
character conversions.
The driver manager component is used only with ODBC. There is no separate
driver manager component in the JDBC architecture. With JDBC, all driver
manager functions run in the Java application environment.
4-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Chapter 5. Installing and configuring ODBC
This section describes the procedures used for installing and configuring ODBC
drivers and data sources for Windows or UNIX/Linux systems.
Related concepts:
Chapter 4, “ODBC drivers and driver managers,” on page 4-1
Chapter 3, “Installing and uninstalling client software,” on page 3-1
If you have already installed a Netezza ODBC driver on your computer system, go
to “ODBC driver data source configuration for Windows” on page 5-2.
The nzodbcsetup.exe executable file is the ODBC driver installation program. The
installation program installs the Netezza ODBC libraries on your system, creates a
Netezza SQL system data source entry (NZSQL) with appropriate default values,
and adds the appropriate entries to the Windows registry.
You can install the ODBC driver from the command line, or by double-clicking the
ODBC installation program, which runs the interactive GUI. The command-line
option can run the installation from the GUI or in silent mode, which is useful if
you use a software management program to install the ODBC driver on your client
systems.
Note: You can have only one ODBC driver installed on a Windows client system
at a time. If you need a different driver, install the new driver over the existing
driver.
For a silent installation, run the setup with the silent option:
C:\>nzodbcsetup.exe -i silent
5-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Configuring the data source
The following steps outline the procedure to configure an IBM Netezza appliance
data source.
This procedure is for configuring a 32-bit DSN on a 32-bit system or a 64-bit DSN
on a 64-bit system. The 32-bit DSNs do not display in the 64-bit administrator. On
a 64-bit system, start the administrator by using the following file:
C:\windows\syswow64\odbcad32.exe
1. Open the ODBC Data Source Administrator window and select either the
System DSN tab or the User DSN tab for the appropriate configuration. Then
select either of the following options:
v To configure an existing DSN, select Configure.
v To configure a new DSN, select Add.
2. Configure the DSN and Driver Options from the Driver Setup window.
3. Test and verify the ODBC Connection.
4. Close any open configuration windows to finish the Data Source Configuration.
You can make configuration selections in the ODBC Data Source Administrator
window.
To open the window, select Start > Administrative Tools > Data Sources (ODBC).
In the ODBC Data Source Administrator window, select either the System DSN tab
or the User DSN tab and select either Configure or Add:
v Selecting Add displays the Create New Data Source window. Select NetezzaSQL
as the driver and click Finish. The ODBC Driver Setup window opens.
v Selecting the System DSN tab displays a list of System Data Sources. Selecting
Configure displays the ODBC Driver Setup window.
You can configure the DSN and Driver Options in the ODBC Driver Setup
window.
Select the DSN Options tab and enter appropriate values for the DSN Options. If
your application supplies a user name and password, these fields can be left blank,
since the user name and password of your application takes precedence over the
ones specified here. If the application does not supply a user name and password,
supply the values. For other options, you can accept the default values or change
the options.
Data source
A name that identifies the database connection properties.
Server The host name or IP address of the IBM Netezza system to which the
ODBC driver connects.
Database
The name of the database on the Netezza system.
Schema
The name of the schema within the specified database on the Netezza
system. This field is used for Netezza systems that support multiple
schemas within a database. If you do not specify a schema, you will
connect to the default schema of the database.
The Advanced DSN Options tab displays more options. You can change these
options or accept the default options.
Read Only
If selected, this option restricts queries to read-only access of the database
(only SQL Select statements are allowed). The option is not selected by
default to support full access to the databae. To allow queries that modify
data, do not select the option.
Show System Tables
When retrieving a list of tables, select this option to include system tables
in the list. The option is not selected by default to hide the system tables.
Legacy SQL Tables Behavior
Select this option to cause SQLTables to return a list of all of the users that
own a database. The option is not selected by default to omit the list of
users.
Treat Numeric as Char
If selected, this option causes the driver to treat SQL_C_NUMERIC buffers
as SQL_C_CHAR buffers. The option is not selected by default and
SQL_C_NUMERIC buffers are treated as Numeric Structures.
Return SQL_BIT as 1/0
This option controls the Boolean value return form when a return type is
char or wchar. Select the option to configure SQL_BIT to return numeric
Boolean values (1 and 0). The option is not selected by default to return
character values (true or false).
Strip CR/LF
If selected, this option removes the carriage return and line feed characters
from the SQL statements. The option is not selected by default to retain
these control characters in your data.
Load Round Fraction
Select this value to round the actual data for numeric columns whose
precision exceeds the precision defined in the target table. The option is
not selected by default, which means that the data is not rounded.
Ignore Floating Point Truncation
Select this option to configure ODBC clients on the AIX platform to return
a warning when a floating point value is truncated during bigint to double
conversions and to return the value. The option is not selected by default,
so the query returns an "out of range" error for the floating point
exception.
Enable Fast Select
Select this option if you want to ODBC driver to skip the data type
conversions that occur when ODBC applications run SELECT queries.
Skipping the data conversion can improve SELECT query performance, but
5-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
if the application requests a cast conversion of some kind, the query will
fail. The option is not selected by default and the driver performs the data
type conversion.
Date Format
Specifies the date format you want as one of the following values:
v 1 = YMD. This value is the default.
v 2 = MDY
v 3 = DMY
On Windows platforms, you specify the text value (such as YMD); on
non-Windows platforms, specify the numeric value (such as 1).
Client User ID
Specifies a sample client user ID for the connection. This field supports
application monitoring by various tools such as IBM InfoSphere® Optim™
Performance Manager. The maximum length of the field can vary from 128
characters on Windows clients to 1024 characters on Linux clients,
including a null byte length.
Client Workstation Name
Specifies a sample client workstation name for the connection. This
optional field supports application monitoring by various tools such as
IBM InfoSphere Optim Performance Manager. The maximum length of the
field can vary from 128 characters on Windows clients to 1024 characters
on Linux clients, including a null byte length.
Client Application Name
Specifies a sample client application name for the connection. This optional
field supports application monitoring by various tools such as IBM
InfoSphere Optim Performance Manager. The maximum length of the field
can vary from 128 characters on Windows clients to 1024 characters on
Linux clients, including a null byte length.
Client Acct String
Specifies a sample client account string for the connection. This optional
field supports application monitoring by various tools such as IBM
InfoSphere Optim Performance Manager. The maximum length of the field
can vary from 128 characters on Windows clients to 1024 characters on
Linux clients, including a null byte length.
Client Program Info
Specifies a sample client program information string for the connection.
This optional field supports application monitoring by various tools such
as IBM InfoSphere Optim Performance Manager. The maximum length of
the field can vary from 128 characters on Windows clients to 1024
characters on Linux clients, including a null byte length.
Login timeout
The number of seconds after which to end the login process. Valid values
are 0 (no timeout) or any positive number.
Query timeout
The number of seconds after which to end the query request. Valid values
are 0 (no timeout) or any positive number.
Load Max Errors
Stops the load after N bad input rows. Default is 1, and 0 means no limit,
with a maximum of 2,147,483,647 (the largest signed 32-bit integer).
5-6 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Socket Buffer Size
A numeric value that specifies the size of the communications buffer in
bytes. The range is 1 K to 32 K. The default is 8192.
Related concepts:
Appendix B, “Troubleshooting,” on page B-1
You can access the files you need for the Netezza ODBC drivers and the ODBC
driver installation from the Netezza FTP support site, or from the IBM Netezza
Client CD. The installation program installs the Netezza tools and ODBC libraries
on your system, and creates a NetezzaSQL system data source entry (NZSQL) with
appropriate default values.
After the ODBC driver is installed, the next step is to configure the environment
variables to enable the ODBC driver to locate the correct configuration files. Then,
you configure the data sources.
Related concepts:
Chapter 3, “Installing and uninstalling client software,” on page 3-1
The period precedes the file name only when the file is in the home directory of
the user as a hidden file.
The following example shows the contents of a 32-bit driver configuration file
named odbcinst.ini.sample. This file is in the nz/lib directory (ordinarily
/usr/local/nz/lib) after you installed the Netezza driver. Use the contents of the
sample file to configure your own .odbcinst.ini file.
[ODBC Drivers]
NetezzaSQL = Installed
[NetezzaSQL]
Driver = /usr/local/nz/lib/libnzsqlodbc3.so
Setup = /usr/local/nz/lib/libnzsqlodbc3.so
The Netezza ODBC driver properties are explained in Table 4-1 on page 4-1. Use
this table to select appropriate values for the configuration entries in your
.odbcinst.ini file. The Character Translation Option can be set to “all’ or “latin9.”
Related concepts:
Appendix A, “ODBC configuration files,” on page A-1
5-8 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
This step assumes that you are logged in as an ordinary user and are placing
the .odbcinst.ini file in your home directory. What you do in this step
depends on whether the .odbcinst.ini file exists in your home directory.
v The configuration file exists.
Use a text editor, such as vi, to examine the .odbcinst.ini configuration file
if it exists in your home directory, which can occur for different reasons,
including the following reasons:
– Your client system was previously configured for one or more ODBC
drivers other than the Netezza ODBC driver. If you still want to use those
ODBC drivers, do not modify existing entries in the .odbcinst.ini file. In
this case, add the entry in the odbcinst.ini.sample file to the end of the
existing contents of the .odbcinst.ini file.
– The Netezza client software and a Netezza ODBC driver were previously
installed on your client system, and the Netezza ODBC driver is
configured. In this case, you might not need to add any entries to the
.odbcinst.ini file. If your .odbcinst.ini file already contains an entry
similar to that found in the odbcinst.ini.sample file, no changes are
required. If it does not, then add the entry in the odbcinst.ini.sample file
to the end of the existing contents of the .odbcinst.ini file.
v The configuration file does not exist.
If the .odbcinst.ini configuration file does not yet exist in your home
directory, copy the entire odbcinst.ini.sample file into your home directory
and rename it .odbcinst.ini.
The entry from the odbcinst.ini.sample file can usually be used without
modifying your .odbcinst.ini file. Consult your Netezza system administrator to
see whether any configuration entries must be changed for your installation.
Related concepts:
Appendix A, “ODBC configuration files,” on page A-1
The period precedes the file name only when the file is in the home directory of
the user.
To configure the .odbc.ini file entries to access the system data source on your
own Netezza appliance, get the following configuration information from your
Netezza system administrator, and substitute it for the information in .odbc.ini:
Database
The name of the system database on the Netezza appliance.
SchemaName
The name of the schema within the specified database on the Netezza
system. This field is used for Netezza systems that support multiple
schemas within a database. If you do not specify a schema, you will
connect to the default schema of the database.
Chapter 5. Installing and configuring ODBC 5-9
User name
A valid user ID for accessing the system data source.
Server name
The server host name or IP address of your Netezza appliance.
Password
A valid password for accessing the system data source.
The following example shows the contents of a file named odbc.ini.sample, which
is in the nz/lib directory after you install your ODBC drivers. The sample file
describes a system data source found on every Netezza appliance, and includes
comments that explain each parameter. Use the contents of this sample file, along
with the administrator information you substituted, to configure your own
.odbc.ini file.
Because there can be differences between some source and target data types, add
the following code to your .odbc.ini file to prevent issues:
UnicodeTranslationOption=utf8
;
; odbc.ini
;
[ODBC Data Sources]
NZSQL = NetezzaSQL
[NZSQL]
;Path of a driver used for database connection
Driver = /usr/local/nz/lib/libnzodbc.so
5-10 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
table list.
ShowSystemTables = false
;When set to true, use old (2.5) functionality for returning schemas in
SQLTables.
LegacySQLTables = false
[ODBC]
IANAAppCodePage=4
InstallDir=/opt/odbc32v51
Trace=0
TraceDll=/opt/odbc32v51/lib/odbctrac.so
TraceFile=odbctrace.out
UseCursorLib=0
The data source properties are explained in “ODBC Driver Setup window” on
page 5-3. Use this information to select appropriate values for the entries in your
.odbc.ini file.
If you are using a driver manager other than the unixODBC driver manager,
consult your Netezza system administrator to see if there is an SQL query program
installed on your client system that you can use instead of isql to validate ODBC
connectivity and query Netezza appliance data sources.
The following example uses the DataDirect driver manager, where you run the
example program in the example directory, specifying the NZSQL DSN, login, and
password, displaying output as in the following:
./example
DataDirect Technologies, Inc. ODBC Example Application.
Enter the data source name : NZSQL
Enter the user name : admin
Enter the password : password
Enter SQL statements (Press ENTER to QUIT)
SQL>
When you are connected, you can run the same queries as used in the following
examples. The system returns the same results.
5-12 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
ODBC connectivity validation steps for UNIX/Linux
Follow these steps to validate ODBC connectivity to the IBM Netezza appliance
data sources configured in the previous section.
1. Change directories.
2. Connect to NZSQL system data source.
3. Query system database.
4. Display query results.
5. Connect to Test User data source.
6. Query user database.
7. Display query results.
The ODBC client application must obtain the Kerberos authorization ticket from
the Kerberos Authentication Server using the kinit facility before connecting to the
Netezza databases. The Netezza ODBC driver detects that the Netezza appliance
uses Kerberos authentication and can transparently pass the authenticated user
credentials to the database.
When configuring the ODBC connection to the Netezza data sources, you can
leave the password and authentication arguments null/empty. These passwords
are ignored if specified in the SQLConnect or SQLDriverConnect API calls.
For more information about configuring the Netezza appliance to use Kerberos
authentication, refer to the security section in the IBM Netezza System
Administrator’s Guide.
5-14 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Chapter 6. Installing and configuring JDBC
This section describes the procedures to install and configure JDBC. You can have
only one JDBC driver installed on your system at a time. If you need a different
driver, you must remove the installed driver before you install the correct one.
After installation, when you run an application that tries to use JDBC, you are
prompted for a value called Class Name. For the IBM Netezza Driver, enter
org.netezza.Driver.
Related concepts:
Chapter 3, “Installing and uninstalling client software,” on page 3-1
For help on options, run the following command: -java -jar nzjdbc3.jar -help
The previous export commands changes the environment for the current session
only. After you verify that your environment modification works correctly, you can
edit your login script to set the environment variable when users log in.
6-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Schema
The name of the schema within the specified database on the Netezza
system. This field is used for Netezza systems that support multiple
schemas within a database. If you do not specify a schema, you will
connect to the default schema of the database.
Test Connection
Tests the connection with the set parameters.
1
These fields are required.
4. Select the Advanced Options tab and enter the information in the appropriate
fields:
Batch Size
Number of rows to be fetched in a cycle. The default is 256.
Login timeout
Maximum wait time to make a connection. The default is infinite.
Read Only
Read Only property for the connection. The default is false.
Auto Commit
Auto Commit property for the connection. The default is true.
Ignore UpdateCount
Allows the JDBC driver to export more than two billion rows (the
maximum int value). The default is OFF.
Log Level
Log Level for the connection. The default is OFF.
Logger Type
The type to be used for logging. The default is TEXT.
Logger Directory
Log directory where the log files are dumped.
Database Metadata
When selected, you can get metadata information that is not restricted
to the current catalog/schema. Not selecting this option means that
your information is restricted to the current catalog/schema. The
default is not selected.
Defaults
Selects the defaults for these options.
5. Select the SSL Options tab and enter the security level information as
appropriate:
Preferred Unsecured
Connections that do not use SSL are preferred, but a connection is not
refused solely because it uses SSL encryption.
Only Unsecured
Only connections that do not use SSL to encrypt data are accepted. This
security level provides increased performance but carries the risks that
come with an unencrypted connection.
Preferred Secured
Connections that use SSL are preferred, but a connection is not refused
solely because it does not use SSL encryption.
Only Secured
Only connections that use SSL to encrypt data are accepted. This
You can enter additional values in the test, such as the following values. Include
the -schema value if you are testing a connection to a database that has multiple
schemas.
java -jar nzjdbc3.jar -t -host yourhostname -u username
-pw password -db database -schema schemaname
The JDBC driver is responsible for obtaining the Kerberos tickets to authenticate
user access to the Netezza database. This is different from ODBC and OLE DB
environments where the client application is responsible for obtaining the tickets.
In a JDBC environment, your JDBC client must meet the following minimum
requirements:
v Your client system must have Java 1.6 or later installed.
v The login module class name in the login.conf file must be changed based to
the Java provider that you use.
6-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
– For IBM Java: com.ibm.security.auth.module.Krb5LoginModule
– For Oracle Java: com.sun.security.auth.module.Krb5LoginModule
v Set the system property java.security.auth.login.config to the login.conf file
path through the application or edit the <JAVA_HOME>/jre/lib/security/
java.security file to add the following line:
login.config.url.1=file:<LOGIN_CONF_FILE_PATH>
v Specify the value for the krbLoginModule name in the datasource connection
parameter as the name of the loginModule from the login.conf file. You must
provide this value because the login method of loginContext reads this
loginModule information out of the login.conf file, and uses the class mentioned
in it to authenticate further.
A sample login.conf file follows. In this example, the krbLoginModule name
would be loginModuleName.
loginModuleName {
com.sun.security.auth.module.Krb5LoginModule required
debug = true storeKey = false;
};
For more information about configuring the Netezza appliance to use Kerberos
authentication, refer to the security section in the IBM Netezza System
Administrator’s Guide.
You use the JDBC krbSSODelegation connection parameter and set it to true to
configure the JDBC driver to accept the authentication ticket. The default value is
false, which configures the driver to use the standard username and password
authentication (non-SSO) support.
If the krbSSODelegation parameter is true, but the JDBC driver did not obtain the
user credentials from the Cognos application, the JDBC driver returns an error
because it cannot validate the username for the connection.
6-6 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Chapter 7. Installing and configuring the OLE DB provider
This section describes the procedure for installing the IBM Netezza OLE DB
provider on a Windows client system, configuring the provider and data sources,
and testing for connectivity to Netezza appliance data sources.
The OLE DB client application must obtain the Kerberos authorization ticket from
the Kerberos Authentication Server using the kinit facility before connecting to the
Netezza databases. The Netezza OLE DB provider detects that the Netezza
appliance uses Kerberos authentication and can transparently pass the
authenticated user credentials to the database.
When establishing the OLE DB connection to the Netezza data sources, you can
specify a password in the UDL file or in the Vbscript, but it will be ignored. If you
do not specify a password, the connections could return an error because of the
null password.
v For a UDL file, select the Blank Password option on the Connection tab of the
UDL file. If you do not select this option, the connection request fails with the
error Test connection failed because of an error in initializing provider.
Required properties not set (Server, user, password, ....etc.).
v For a Vbscript, set PASSWORD=NULL to avoid connection errors when the
password in the connection string is null. If you do not specify this setting, the
connection request fails with the error Required value is not set (Server,
user, password, ...etc.)
For more information about configuring the Netezza appliance to use Kerberos
authentication, refer to the security section in the IBM Netezza System
Administrator’s Guide.
7-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Appendix A. ODBC configuration files
This section introduces advanced considerations for configuring ODBC drivers and
data sources on Linux/UNIX client systems using the .odbcinst.ini and
.odbc.ini configuration files.
Related concepts:
“ODBC driver configuration for UNIX/Linux” on page 5-7
Related tasks:
“Configuring the ODBC driver for UNIX/Linux” on page 5-8
“Configuring the data source for UNIX/Linux” on page 5-12
Placing non-hidden configuration files in either the first or third location is useful
if you want all users of the client system to have access to the same set of Netezza
appliance data sources, without requiring a separate set of configuration files in
each home directory of a user. The /usr/local/etc directory or the
NZ_ODBC_INI_PATH directory contains a single set of non-hidden configuration files
that describes the Netezza appliance data sources that all users of the client system
can access.
You can decide where to place the ODBC configuration files based on how you are
using the client system.
The way a Netezza ODBC driver looks for ODBC configuration files is
straightforward and unambiguous. However, the driver manager installed on the
client system also uses the two ODBC configuration files. The way a Netezza
ODBC driver looks for ODBC configuration files can sometime conflict with the
way the driver manager looks for them. This can sometimes cause configuration
problems.
Compatibility
The methods the IBM Netezza ODBC driver and the unixODBC driver manager
use to locate the configuration files are compatible. It is relatively easy to ensure
that the Netezza ODBC driver and the unixODBC driver manager find the two
ODBC configuration files in the same place. Their uses of hidden and non-hidden
files are also compatible.
Place hidden configuration files in the home directory of each user if each user
needs to access different Netezza appliance data sources. Place non-hidden
configuration files in the /usr/local/etc directory if all users access the same
Netezza appliance data sources.
With the unixODBC driver manager, you do not need to use the NZ_ODBC_INI_PATH
environment variable.
A-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
DataDirect driver manager
This section describes how the DataDirect driver manager searches for the ODBC
configuration files and how the DataDirect driver manager interacts with the IBM
Netezza ODBC drivers.
Incompatibilities
The following are incompatibilities between the IBM Netezza ODBC drivers and
the DataDirect driver manager:
1. The DataDirect driver manager looks first in the home directory of the current
user for non-hidden configuration files instead of hidden ones.
2. The DataDirect driver manager looks next in the /etc directory instead of in
the /usr/local/etc directory.
3. The DataDirect driver manager also looks at the value of the environment
variable ODBCINI to determine the location of the odbc.ini file to use.
To work around the ODBC configuration file search incompatibilities of the
DataDirect driver manager, use one of the following methods:
v Separate configuration files in each home directory
Use this method if you would like each user of the Linux/UNIX client
system to use a separate set of ODBC configuration files. Netezza ODBC
drivers look for hidden configuration files, and the DataDirect driver
manager looks for non-hidden files. To overcome this incompatibility, create
two soft links in the home directory of each user so that the DataDirect
driver manager finds non-hidden files in the home directory and the Netezza
ODBC driver finds hidden files:
– A soft link so odbcinst.ini points to .odbcinst.ini
– A soft link so odbc.ini points to .odbc.ini
v Shared configuration files
Use this method if you would like all users of the Linux/UNIX client system
to use the same set of ODBC configuration files. Configure the
NZ_ODBC_INI_PATH environment variable so it specifies the /etc directory, and
place the two non-hidden configuration files odbcinst.ini and odbc.ini in
the /etc directory. The DataDirect driver manager and the Netezza ODBC
driver then both find the configuration files in the /etc directory.
v Two environment variables
Use this method if you would like both the Netezza ODBC driver and
DataDirect driver manager to find the configuration files no matter where
they are in the file system. Use both NZ_ODBC_INI_PATH and ODBCINI together
to point to the odbc.ini and odbcinst.ini files anywhere on the file system.
One technique is to use the env and grep commands to determine whether one or
more environment variables exist which point to ODBC configuration directories.
You might find the following command useful: env | grep -i ODBC.
The command shows you if there are any entries in the environment that contain
the characters ODBC. For example:
ODBC_HOME=/opt/odbc
or
ODBCINI=/opt/odbc/odbc.ini
These results can help you to determine how the client system is configured. You
can then look in the referenced directories for ODBC configuration files, and then
configure the Netezza ODBC driver to look in those same directories for the ODBC
configuration files.
A-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Appendix B. Troubleshooting
This section introduces methods for tracking system activity, which can help in
detecting problems and troubleshooting issues. A debug log provides you with a
record of system activity, so you can take steps to correct problems.
Related concepts:
“ODBC driver properties” on page 4-1
Related reference:
“ODBC Driver Setup window” on page 5-3
The nzodbcsql command is a troubleshooting tool for testing the ODBC UNIX
clients. The command is included in the bin directory of the IBM Netezza CLI
client kits for Linux, Solaris, HP, and AIX.
When you run the command, the command displays some basic help and a
summary of the driver and IBM Netezza versions. You must specify the name of
the IBM Netezza DSN, and you can include options to limit the number of result
rows for testing purposes. For example:
[nz@nzhost ~]$ /usr/local/nz/bin64/nzodbcsql NZSQL
At the nzodbc> prompt, users can enter any SQL query to test the database
connection. For example:
nzodbc > select R_Name from region;
R_NAME
---------------------------
AMERICA
AFRICA
EUROPE
ASIA
MIDDLE EAST
Rows Returned : 5
B-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
If your user data contains special characters or language forms, make sure that the
LANG environment variable is set correctly. If the LANG value is incorrect, the
nzodbcsql output shows a question mark character (?) for characters that it cannot
interpret. For example:
nzodbc > select * from city_test;
CITY
----------------------
Montr?al
Montr?al
Montr?al
Rows Returned : 3
If LANG is set correctly, the accented character prints correctly. For example:
[nz@nzhost ~]$ export LANG=en_US
[nz@nzhost ~]$ ./nzodbcsql NZSQL
CITY
----------------------
Montréal
Montréal
Montréal
Rows Returned : 3
The nzodbcsql command is intended for testing connectivity and settings for the
odbc.ini and network settings. Do not use the tool as a database interface to
retrieve or insert large amounts of data.
loglevel
You can set the following log levels, which are not case-sensitive:
Table B-1. Log levels
Level Number Result
off 0 No messages are logged (default).
debug 2 Logging is done at debug level. Every message is logged.
info 3 Only information messages, entry exit statements, and
unrecoverable messages are logged.
entry_exit 4 Only entry exit statements and unrecoverable messages are
logged.
fatal 5 Only unrecoverable messages are logged.
Enter the log level either by type or by number, as in the following examples:
loglevel=entry_exit
loglevel=4
You can set the following log format types, which are not case-sensitive:
v loggertype=text (Default)
v loggertype=html
logdirpath
You can set the directory path for the log files, as in the following example:
logdirpath=path on the local file system
UNIX logdirpath:
jdbc:netezza://tom/will;user=admin;password=password;loglevel=2;
logdirpath=/jdbc_log_file
Windows logdirpath:
jdbc:netezza://tom/will;user=admin;password=password;loglevel=2;
logdirpath=C:\
B-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Logging Level
Enter 1 to enable logging or 0 for no logging
Log Path
Enter the path for the log file. For example, c:\logs.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not grant you
any license to these patents. You can send license inquiries, in writing, to: This
information was developed for products and services offered in the U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
IBM Corporation
Software Interoperability Coordinator, Department 49XA
3605 Highway 52 N
Rochester, MN 55901
U.S.A.
The licensed program described in this document and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Program License Agreement or any equivalent agreement
between us.
All statements regarding IBM's future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
All IBM prices shown are IBM's suggested retail prices, are current and are subject
to change without notice. Dealer prices may vary.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
names of individuals, companies, brands, and products. All of these names are
fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
C-2 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Each copy or any portion of these sample programs or any derivative work, must
include a copyright notice as follows:
© your company name) (year). Portions of this code are derived from IBM Corp.
Sample Programs.
If you are viewing this information softcopy, the photographs and color
illustrations may not appear.
Trademarks
IBM, the IBM logo, ibm.com® and Netezza are trademarks or registered trademarks
of International Business Machines Corporation in the United States, other
countries, or both. If these and other IBM trademarked terms are marked on their
first occurrence in this information with a trademark symbol (® or ™), these
symbols indicate U.S. registered or common law trademarks owned by IBM at the
time this information was published. Such trademarks may also be registered or
common law trademarks in other countries. A current list of IBM trademarks is
available on the web at "Copyright and trademark information" at
http://www.ibm.com/legal/copytrade.shtml.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of
Microsoft Corporation in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other
names may be trademarks of their respective owners.
Red Hat is a trademark or registered trademark of Red Hat, Inc. in the United
States and/or other countries.
D-CC, D-C++, Diab+, FastJ, pSOS+, SingleStep, Tornado, VxWorks, Wind River,
and the Wind River logo are trademarks, registered trademarks, or service marks
of Wind River Systems, Inc. Tornado patent pending.
APC and the APC logo are trademarks or registered trademarks of American
Power Conversion Corporation.
Notices C-3
C-4 IBM Netezza ODBC, JDBC, and OLE DB Installation and Configuration Guide
Index
C JDBC (continued)
installation
ODBC (continued)
troubleshooting B-2
Character Translation Option Linux 6-1 validating connectivity
window 5-1 unsupported platforms 6-2 Linux 5-12
configuration files. See ODBC driver or Windows 6-1 validating connectivity procedure
data source configuration files. 5-1 Linux 5-13
configuration. See ODBC or JDBC driver validating connectivity steps
or data source configuration. 5-1
K Linux 5-13
ODBC configuration files A-1
Kerberos
OLE DB
D authentication tickets for JDBC 6-4
authentication tickets for ODBC 5-14
debug logging B-4
data source configuration. See ODBC or provider installation for
authentication tickets for OLE
JDBC data source configuration. 5-1 Windows 7-1
DB 7-2
data sources. See ODBC or JDBC data validating connectivity 7-2
krbSSODelegation parameter 6-6
sources. 5-1 Optimize for ASCII character set
DataDirect driver manager A-3 option 5-1
driver configuration. See ODBC or JDBC
driver configuration. 5-1 M
driver installation. See ODBC or JDBC MDAC 4-3
Microsoft Data Access Component
R
driver installation. 5-1 release compatibility 2-2
driver manager (MDAC) 4-3
absence in JDBC architecture 4-2
DataDirect
configuration file search N S
behavior A-3 schemas, specifying in connections 5-3
nzodbcsql command B-2
IBM Netezza ODBC driver SSO setup
incompatibilities A-3 Cognos 6-6
functions 4-2 supported platforms 2-1
in Linux/UNIX systems 4-3 O
in Windows systems 4-3 ODBC
introduction 4-2 data source configuration
Linux 5-9
U
Recommendation for Linux/UNIX unixODBC
systems 4-3 Windows 5-2
driver manager A-2
unixODBC data source configuration file,
installation procedure 4-3
compatibility with IBM Netezza Linux 5-9
ODBC drivers A-2 data source configuration procedure
configuration file search Linux 5-12
behavior A-2 Windows 5-3 V
installation procedure 4-3 data source configuration steps Visual Studio 8 (VC8) Libraries 5-1
Linux 5-11
debug logging B-1
I driver configuration
Linux 5-7
installation. See client tools, ODBC or driver configuration file, Linux 5-7
JDBC installation. 5-1 driver configuration procedure,
Linux 5-8
driver configuration steps, Linux 5-8
J driver functions 4-1
JDBC driver installation
configuration procedure for Windows 5-1
Linux 6-1 Windows 5-1, 5-7
UNIX/Linux 6-4 driver manager tracing B-2
Windows 6-2 driver manager. See driver
data source configuration manager 4-2
UNIX/Linux 6-4 driver properties 4-1
Windows 6-2 IBM Netezza driver version
debug logging B-3 support 2-2
driver configuration, IBM Netezza-supported
UNIX/Linux 6-4 platforms 2-1
driver configuration, Windows 6-2 installation
driver data source 2-3 Windows 5-1, 5-7
Printed in USA