Take a look at pl/sql collections.