Mit der Anweisung
select object_name, timestamp,status from user_objects where object_type='PROCEDURE'in SQL*Plus, kann ausgegeben werden, welche Prozeduren bereits angelegt worden sind.
Hier nun ein Beispiel für eine Prozedur in PL/SQL:
create or replace procedure ProjektAusgabeName is
Cursor c is select * from projekt order by bezeichnung;
Begin
htp.p('<BODY BGCOLOR=#ffffff>');
htp.p('<table border=5>');
htp.tableRowOpen;
htp.tableData('<b>Nummer');
htp.tableData('<b>Bezeichnung');
htp.tableRowClose;
for i in c loop
htp.tableRowOpen;
htp.tableData(i.nr);
htp.tableData(i.bezeichnung);
htp.tableRowClose;
end loop;
htp.tableClose;
End;
/
show errors
grant execute on ProjektAusgabeName to hr;
grant select on projekt to hr;