Skip to content

Oracle PL/SQL Packages Reference - DBMS & UTL Package Guides

Oracle ships hundreds of built-in PL/SQL packages, but a handful do most of the heavy lifting in day-to-day DBA work. Each guide below covers the procedures you actually use, with working examples and the gotchas the documentation glosses over.

Find what packages are available and who can run them:

-- List all DBMS_ and UTL_ packages in the database
SELECT object_name, status
FROM dba_objects
WHERE owner = 'SYS'
AND object_type = 'PACKAGE'
AND (object_name LIKE 'DBMS%' OR object_name LIKE 'UTL%')
ORDER BY object_name;
-- Check EXECUTE privileges on a package
SELECT grantee, privilege
FROM dba_tab_privs
WHERE table_name = 'UTL_FILE'
AND owner = 'SYS';