Have a look at the database handle methods of DBI. Things like table_info() should help.
In reply to Re: DBI and using Oracle desc by adrianh in thread DBI and using Oracle desc by Anonymous Monk