Print the ref cursor results in a grid when running oracle stored procedures
Answered
When I run oracle store procedure, the out ref cursor results are not showing.
But the same thing is showing in sql developer and pl/sql developer.
Is there any option in datagrip?
I don't think datagrip features are not upto the market standard :(
Please sign in to leave a comment.
Sorry, could you please share a screenshot of what you mean by ref cursor from PL/SQL developer?
Most of my efforts in the db are spent creating procedures whose sole purpose is to provide data to a report which means the procedure returns an SYS_REFCURSOR.
In DG when you select to run a procedure it runs but for those that return an SYS_REFCURSOR you don't see the output. The expectation is that the REF_CURSOR is captured and the contents are displayed in a grid or at least you offer that ability to the end users when they choose to run the procedure.
When executed in Oracle SQL Developer for 2023 you get the results below:
When you select to run in that tool and others the following anon block is executed:
You can vote on this issue:
DBE-6807 Database console should show results from PL/SQL functions (Oracle) that return cursors