Skip to Main Content

FreeSQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Procedure does not have access to schemas

Pablo CayuelaOct 23 2025

In Oracle Live SQL or the new site freesql.com I get the error:

Procedure SQL_412O2MIBCO60OPO6N1TOIDIDDK.PROC1 compiled

LINE/COL ERROR
--------- -------------------------------------------------------------
5/2 PL/SQL: SQL Statement ignored
6/45 PL/SQL: ORA-00942: table or view "SCOTT"."EMP" does not exist
Errors: check compiler log
Elapsed: 00:00:00.018

After I ask for creation of procedure (with user as retrieved from My Schemas):

create or replace Procedure SQL_412O2MIBCO60OPO6N1TOIDIDDK.proc1 is

nom varchar2(30);

com number(5);

begin

select ename, comm into nom, com from scott.emp

where comm = (select max (comm) from scott.emp);

dbms\_output.put\_line('Empleado: '||nom||' Comisión: '||com);

end;

/

Why my procedure does not have access to the same schemas that I already have access in anonymous blocks?

Thank you for your time.

Pablo

This post has been answered by thatJeffSmith-Oracle on Oct 29 2025
Jump to Answer
Comments
Post Details
Added on Oct 23 2025
2 comments
48 views