32-bit and 64-bit support for embedded SQL applications
You can build embedded
SQL applications on both 32-bit and 64-bit operating systems. However,
there are separate building and running considerations. Build scripts
contain a check to determine the bit width. If the bit width detected
is 64-bit, an extra set of switches is set to accommodate the necessary
changes.
Db2® database
systems are supported on 32-bit and 64-bit versions of operating systems listed later in this
section. There are differences for building embedded SQL applications in 32-bit and 64-bit
environments in most cases on these operating systems.
- AIX®
- Linux®
- Windows
The only 32-bit instances that will be supported in Db2 Version 9 are:
- Linux on x86
- Windows on x86
- Windows on x64 (when using the Db2 for Windows on x86 install image)
The only 64-bit instances that will be supported in Db2 Version 9 are:
- AIX
- Sun
- HP IPF
- Linux on x64
- Linux on POWER®
- Linux on System z®
- Windows on x64 (when using the Windows for x64 install image)
- Windows on IPF
- Linux on IPF
Db2 database systems support running 32-bit applications and routines on all supported 64-bit operating system environments except Linux IA64 and Linux System z.
For each of the host languages, the host variables used can be better in either 32-bit or 64-bit platform or both. Check the various data types for each of the programming languages.