Simplifying this should lead to better, more robust code
EZP-13820 oracle extension: remove duplicate code
EZP-14549 add procedure to migrate data from MySQL to Oracle using the mysqli extension