Normally, using show errors can solve this problem in SQL*PLUS.
However executing show errors in datagrip will show Nothing to run, and executing a procedure which has invalid SQL statement only shows error invalid SQL statement.
So I can't figure out what's wrong with my procedure.
BTW I'm using macOS so configuring Oracle environment in Windows is a little troublesome.
Thanks for helping.
show errorsis a SQL*Plus command, not a SQL statement. Even IDEs dedicated to Oracle (e.g. PLSQL Developer) don't recognise it in their SQL Worksheets, so it's not surprising that a generic database IDE hurls. Maybe DataGrip has the option to associate a command line executable for running scripts?show errorsis just a wrapper for a query on the data_dictionary. You can execute this for yourself in any SQL environment:The data dictionary view has other attributes you may want to use. Find out more.