Appendixes : Anonymous PL/SQL Blocks

Anonymous PL/SQL Blocks
This readme is intended as a reference document for those trying to lookup and/or find out how to execute an anonymous PL/SQL block. These examples were done with ‘Oracle Database 10g Enterprise Edition Release 10.2.0.1.0’, ‘Oracle Database 11 (version 11.1.0.6.0)’, and Instantiations Smalltalk 9.0.0. The following is shown/discussed:
It should be noted that data is passed in and out of blocks using parameter markers (variable names beginning with a colon). One thing that makes blocks particularly useful is ST does not recognize PL/SQL user defined types. With PL/SQL blocks, the user can pass data in or out of a user defined data type.
The following assumptions are made:
GRANT create session, alter session, create table,
create view, create procedure, create trigger, create library,
create tablespace, alter tablespace, drop tablespace,
execute any procedure, unlimited tablespace, create public synonym,
drop public synonym, create sequence, create type
to <username>;