Oracle Noob need help with function

Original text of this message