Is there a way to access Oracle table level statistics in a Java application using JDBC? I'm specifically interested in values NUM_ROWS and AVG_ROW_LEN for the purpose of estimating optimal memory buffer size and fetch size for my queries.
If you're not concerned with database independence
SELECT num_rows, avg_row_len
FROM all_tables
WHERE owner = '<<owner of the table>>'
AND table_name = '<<name of the table>>'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With