A stored procedure is a subroutine available to applications that access a relational database system. A stored procedure is stored in the database data dictionary.