Message Oracle PCC-02375 - SQL statement found outside the body of a function

ERRORSQL statement found outside the body of a function
CAUSEA SQL statement other than a declarative, datatype equivalence or WHENEVER statement was found outside the body of a function when PARSE=FULL.
ACTIONMove the SQL statement inside the body of a function.