Fixed Oracle errors ORA-01489 and ORA-06502 which
were caused by concatenating strings larger than
3999 chars and having inappropriate data types