Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Installation

You can use the SQLDBC SDK for developing applications and interfaces written in C or C++.

This chapter describes how to install the SQLDBC SDK software.

Installing the software using SDBINST
Download one of the MaxDB standard installation packages from here.

The following operating systems are supported:

Microsoft Windows (x86) maxdb-all-win-32bit-i386-7_7_04_08.zip
Microsoft Windows (IA64) maxdb-all-win-64bit-ia64-7_7_04_08.zip
Linux (x86) maxdb-all-linux-32bit-i386-7_7_04_08.tgz
Linux (IA64) maxdb-all-linux-64bit-ia64-7_7_04_08.tgz
Sun Solaris (Sparc, 64-bit) maxdb-all-sun-64bit-sparc-7_7_04_08.tgz
HP-UX (HPPA, 64-bit) maxdb-all-hpux-64bit-hppa-7_7_04_08.tgz
HP-UX (IA64, 64-bit) maxdb-all-hpux-64bit-ia64-7_7_04_08.tgz
IBM AIX (PowerPC, 64-bit) maxdb-all-aix5-64bit-ppc-7_7_04_08.tgz
Tru64 (Alpha, 64-bit) maxdb-all-true64-64bit-alpha-7_7_04_08.tgz

Unpack the downloaded file.

Change to the directory to which you have unpacked the installation package.

Install the components 'Base' and 'Database Connectivity' using the following commands:

./SDBINST -package Base

./SDBINST -package "Database Connectivity"

The Base component is required for SQLDBC SDK. If you have already installed any MaxDB component, you can skip the first command.

Installing the software from a tarball
Download the latest version of the SQLDBC SDK from here.

Select the SQLDBC package that matches your operating system architecture.

Microsoft Windows (x86) maxdb-sqldbc-win-32bit-i386-7_7_04_08.zip
Microsoft Windows (IA64) maxdb-sqldbc-win-64bit-ia64-7_7_04_08.zip
Linux (x86) maxdb-sqldbc-linux-32bit-i386-7_7_04_08.tgz
Linux (IA64) maxdb-sqldbc-linux-64bit-ia64-7_7_04_08.tgz
Sun Solaris (Sparc, 64-bit) maxdb-sqldbc-sun-64bit-sparc-7_7_04_08.tgz
HP-UX (HPPA, 64-bit) maxdb-sqldbc-hpux-64bit-hppa-7_7_04_08.tgz
HP-UX (IA64, 64-bit) maxdb-sqldbc-hpux-64bit-ia64-7_7_04_08.tgz
IBM AIX (PowerPC, 64-bit) maxdb-sqldbc-aix5-64bit-ppc-7_7_04_08.tgz
Tru64 (Alpha, 64-bit) maxdb-sqldbc-true64-64bit-alpha-7_7_04_08.tgz

Unpack the tarball to a local directory of your choice using the following command:

tar -xvzf <archive_name>

Creating a MaxDB database instance
You will need a MaxDB database instance. Please refer to the MaxDB documentation for details on how to install the MaxDB software and how to create a MaxDB database instance.

The MaxDB software and documentation can be found at the MaxDB homepage.

Files Installed
The SQLDBC SDK consists of the following files

On Microsoft Windows
<indep_prog>/pgm/libSQLDBC.dll The SQLDBC shared C++ runtime library
pgm/libSQLDBC_C.dll The SQLDBC shared C support runtime library
bin/sqldbc_cons.exe SQLDBC console for tracing and debugging
sdk/sqldbc/lib/libSQLDBC.lib The SQLDBC C++ import library
sdk/sqldbc/lib/libSQLDBC_C.lib The SQLDBC C support import library
sdk/sqldbc/incl/SQLDBC.h The SQLDBC SDK C++ header file
sdk/sqldbc/incl/SQLDBC_C.h The SQLDBC SDK native C support header file
sdk/sqldbc/incl/SQLDBC_Types.h The SQLDBC SDK type definition header file

On UNIX/LINUX
<indep_prog>/pgm/libSQLDBC.so The SQLDBC shared C++ runtime library
pgm/libSQLDBC_C.so The SQLDBC shared C support runtime library
bin/sqldbc_cons SQLDBC console for tracing and debugging
sdk/sqldbc/incl/SQLDBC.h The SQLDBC SDK C++ header file
sdk/sqldbc/incl/SQLDBC_C.h The SQLDBC SDK native C support header file
sdk/sqldbc/incl/SQLDBC_Types.h The SQLDBC SDK type definition header file

Testing your installation
If your MaxDB instance has been created and is running, you can test the SQLDBC SDK by making your first SQLDBC application.

Make sure that a C/C++ compiler, for example gcc, is installed on your system.

The Example section describes how to build the Hello World example application.