It looks like you're expecting an Oracle stored procedure to work the same way as a SQL Server SP - they are different - in Oracle you need to select INTO variables or a cursor then do something with the values. If you're just trying to select the values as in SQL server, it doesn't work like that.