My best guess is that it is related to environment variables. Make sure that ORACLE_HOME and LD_LIBRARY_PATH are set in the TPL code and that might solve it for you.
We also thought of this and I captured the ENV variables. The ones that mattered were the same. Also, we have code for setting the ORACLE_HOME and LD_LIBRARY_PATH variables built in. Also, the DBI has no problems connecting to the DB. It only has problems with bind params. Any other data interaction with the database works great. Seems unlikely to me that those ENV Variables would have an impact on whether bind params work when everything else about the database interaction does.- Jason
How are you setting $newID? Is that just a sequence.nextval?
I'm convinced that it's something to do with the inner working of iwpt_compile.ipl and how those differ when run with the -ocode option.
iwpt_compile.ipl .... -ocode x.ipl; iwperl x.ipl
iwpt_compile.ipl .... (withouth -ocode)