When working with remote LOB columns, you may encounter an out of memory problem. For example, suppose you run a query that selects LONG data from an Oracle column, and inserts the data into a DB2 table as a CLOB. If you have not increased the database application heap size, you will receive a SQL error indicating "not enough memory". To resolve this error:
db2 udpate db cfg for dbname using APPLHEAPSZ 1024where dbname is the name of the federated database and 1024 is the recommended heap size.
To prevent this problem from occurring, increase your database application heap size. For this change to take effect, reinitialize the database. For example:
db2 udpate db cfg for dbname using APPLHEAPSZ 1024
where dbname is the name of the federated database and 1024 is the recommended heap size.