Problem with 64bit ODBC driver between RHEL 6 and AS400 iseries database

Solution Verified - Updated -

Issue

  • I am currently facing problems when configuring an apache server for the migration to RHEL 6.2, with an odbc link to an IBM As400 server.
I am using the pilot odbc iseries access7.1 64 bits provided by IBM, unixODBC 2.3.1 and php 5.4 with unixODBC support.
The link seems functional, I manage to connect to the base via the command isql and to execute SQL requests.
Nonetheless, it is impossible to read the results of a request via a php script. I get this error: 
  • I receive the following error on RHEL 6.2 with odbc to IBM As400 server:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 493921239296 bytes) in /home/www/imypdo/imypdo.php on line 122

Environment

  • Red Hat Enterprise Linux 6
  • php53-odbc-5.3.3-13.el5_8.ppc
  • unixODBC 2.3.1
  • AS400 iseries

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.