When posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.
As for your issue, note that [man]oci_parse/man, [man]oci_execute/man, and [man]oci_commit/man will inform you when an error occurs, yet you never check for this when calling any of the three functions. Additionally, do you have the PHP directives error_reporting set to E_ALL and display_errors (or log_errors) set to On?