The problem is within your query. I'm not sure on the ORACLE syntax, but you're getting the undefined fetchrow() because your query didn't execute. To get more feedback from Oracle, add this code right after you execute your SQL:
if (DB::isError($result)) { // Check the result object in case there
die($result->getMessage()); // was an error, and handle it here.
}
(make sure to change your variable - the $result var should be whatever your result set generated by ->query($sql);
another idea would be to grab the date unformatted and reformat it within PHP rather than via your query...
hope this helps.