in reply to Oracle Hash
Just a few points:
- What if my block size isn't 8K?
- You do know that underscore is a single character wildcard in Oracle?
- Why limit your self to tables with a name starting with "PS"?
- Why not use DBI? Say I want to run this script on something other than Windows?
- Why select all of the tables when the script only prints out the value for a single table?
- Why build two hashes when a single one will do? (specifically $TabNam{$tabnam} = $tabname; is completely redundant)
- use warnings?
- use strict?
- Would this be better written as an SQL script or stored procedure? After all, it's just:
select round(bytes/1048576,2) from user_segments where segment_name = upper('&1');
- The script prints out the size of each table in block, but what if I have 200 tables? 300? Given the description of the script, was this intended behaviour?
- Your output is to any number of decimal place, surely a sprintf would be beneficial?
rdfield
|
---|
In Section
Cool Uses for Perl