Ola*_*laf 4 java oracle statistics jdbc
有没有办法使用 JDBC 在 Java 应用程序中访问 Oracle 表级统计信息?我对 NUM_ROWS 和 AVG_ROW_LEN 值特别感兴趣,目的是估计查询的最佳内存缓冲区大小和获取大小。
如果您不关心数据库独立性
SELECT num_rows, avg_row_len
FROM all_tables
WHERE owner = '<<owner of the table>>'
AND table_name = '<<name of the table>>'
Run Code Online (Sandbox Code Playgroud)