procedure ts_map(p_name varchar2) is begin page_open; -- open the page htp.p('Tablespace: '||p_name); htp.p(''); for file in ( select file_id from dba_data_files where tablespace_name = p_name order by file_id ) loop filemap(file.file_id); -- generate a block map for the file htp.p(''); end loop; info_form; -- generate a form for segment info legend; -- generate a legend for color mappings page_close; -- close the page end ts_map;