銆銆select * from user_views;
銆銆select * from user_sequences;
銆銆select * from user_triggers;
銆銆鎯蟲煡鎵捐〃鐨勬暟鎹潯鏁?/p>
銆銆璇曡瘯榪欎釜
銆銆select t.table_name,t.num_rows from user_tables t
銆銆濡傛灉娌℃湁鍊鹼紝閭e氨鍒涘緩涓嚱鏁?/p>
銆銆浠g爜
銆銆create or replace function count_rows(table_name in varchar2,
銆銆owner in varchar2 default null)
銆銆return number
銆銆authid current_user
銆銆IS
銆銆num_rows number;
銆銆stmt varchar2(2000);
銆銆begin
銆銆if owner is null then
銆銆stmt := 'select count(*) from "'||table_name||'"';
銆銆else
銆銆stmt := 'select count(*) from "'||owner||'"."'||table_name||'"';
銆銆end if;
銆銆execute immediate stmt into num_rows;
銆銆return num_rows;
銆銆end
銆銆鍐嶆墽琛屾煡璇?/p>
銆銆select table_name, count_rows(table_name) nrows from user_tables