查询统计运行和采控库里所有用户下的记录数大于5000万条的表
1、连接两个数据库developer
2、查所有用户列表 dba_users
SQL>select username,account_status,default_tablespace,created from dba_users d order by d.created desc;
3、以用户和记录数大于5000万为条件查询 dba_tables
SQL>select OWNER,TABLE_NAME,NUM_ROWS from dba_tables d where d.OWNER = 'CJ_DATA' AND d.num_rows>49999999 order by d.num_rows desc; -----d.OWNER = '必须是大写的用户名'
4、导出CSV文件进行整理