Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Oracle Hash

by rdfield (Priest)
on Feb 25, 2004 at 10:17 UTC ( #331628=note: print w/replies, xml ) Need Help??

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?


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331628]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2021-04-12 19:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found