I have created a function in oracle that accepts a parameter and would return set of records (defined a custom data type in oracle that returns a table). The function is working