Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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 reply to Re: Oracle Hash by rdfield
in thread Oracle Hash by ccallahanwise

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found