I have XE on my computer, using Oracle Database 18c. Earlier, I was able to execute function dbms_output.put_line();
even I logged in as sysadmin or with default role. Now, I only can run dbms_output.put_line()
when I am logged in as sysadmin/sysdba. As a default user, I get the following message:
PLS-00201: identifier ‘DBMS_OUPUT.PUT_LINE’ must be declared
I tried to add privilege to execute dbms_output
with command
grant execute on DBMS_OUTPUT to username;
, however, I got this message when I execute a command including dbms_output.put_line()
:
ORA-04067: not executed, package body "PERFSTAT.DBMS_OUTPUT" does not exist
ORA-06508: PL/SQL: could not find program unit being called: "PERFSTAT.DBMS_OUTPUT"
Using sqlplus, I get the following error as default user:
PLS-00201: identifier 'DBMS_OUTPUT.ENABLE' must be declared
How can I solve this problem?