When the table to be used inside a cursor is not known to
the user while creating the procedure, a ref cursor can be used to pass the
name of the table dynamically as the input parameter to the procedure. The procedure
also serves the purpose of being used again and again for many different tables
of similar type as per the business requirement.
Requirements
Oracle database 9i