Description:
------------
I am unable to connect to databases across two DB2 instances within a single application run (e.g. using PHP-CGI with apache module).
I can create two php programs one connecting to a db on one instance, and one connecting to a db in the other. However, I am unable to combine the run into one program, leading me to believe that db2 can associate one and only one instance to a process (I am currently using the putenv("DB2INSTANCE=$instance") technique).
Googling, I could find nothing about how to re-attach instances, indeed I found that once attached it is apparently impossible to re-attach: http://dbforums.com/t366790.html
Is there a way to do such context switching in ibm_db2 (as suggested in that link) using php, and if so, how? If not, is there another way to use multiple DB2 instances from one php program (I'm trying to think of fork/ipc as the last resort).
Patches
Add a Patch
Pull Requests
Add a Pull Request
History