摘要:
1.查找出已被锁定的数据库表及相关的sid、serial#及spidselect object_name as 对象名称,s.sid,s.serial#,p.spid as 系统进程号from v$locked_object l , dba_objects o , v$session s , v$process pwhere l.object_id=o.object_id and l.session_id=s.sid and s.paddr=p.addr;2.在数据库中灭掉相关sessionalter system kill session 'sid,serial#';--si 阅读全文
摘要:
http://luobeng.blogbus.com/logs/36329526.html1、查看表所占空间SELECT TABLESPACE_NAME,TO_CHAR(SUM(BYTES)/(1024*1024),'999G999D999') CNT_MB FROM DBA_EXTENTS WHERE OWNER='&OWNER' AND SEGMENT_NAME='&TABLE_NAME' AND SEGMENT_TYPE LIKE 'TABLE%' GROUP BY TABLESPACE_NAME; 2、/* 阅读全文