DB2表空间扩容 1 - Detect what tablespace has size issues db2 list tablespaces show detail 2 - Check the percentage of use from the tablespace db2 list tablespace containers for <tablespace_id> show detail 3 - Calculating the size of free space needed Now
--查看被锁住的表 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; ----查看被锁住的会话 select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id =
第1步:创建临时表空间 create temporary tablespace pgenius_temptempfile '/data/oracle/oradata/orcl/pgenius_temp.dbf'size 50m autoextend on next 50m maxsize 20480mextent management local; 删除临时表空间: drop tablespace pgenius_temp including contents and datafiles