alter table test enable row movement; alter table test shrink space; execute dbms_stats.gather_table_stats(ownname=>'&owner',tabname=>'&table_name', estimate_percent=>null,method_opt=>'for all columns' ,degree=>2,cascade=>true);
检查死锁方式 用dba用户执行以下语句,可以查看到被死锁的语句. select sql_text from v$sql where hash_value in (select sql_hash_value from v$session where sid in (select session_id from v$locked_object)) 1)查找死锁的进程: sqlplus “/as sysdba” (sys/change_on_install) SELECT s.username,l.O
.oracle数据库分页 select * from (select a.*,rownum rc from 表名 where rownum<=endrow) a where a.rc>=startrow 2.DB2数据库分页 Select * from (select rownumber() over() as rc,a.* from (select * from 表名 order by 列名) as a) where rc between startrow and endrow 3.SQL