Oracle查詢用戶占用空間及清理空間語句 |
發布時間: 2012/8/22 16:49:42 |
SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 2500 colsep | feedback off termout off pages 0
spool deltab.sql select 'truncate table ' || tname || ' drop storage' ||';' from tab where TNAME not like '%TB%' and TNAME like '%LZW%'; spool off; exit;
SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 2500 colsep | feedback off termout off pages 0 nohup sqlplus ZJLZ/xx@szj @deltab.sql>deltab.log & 本文出自:億恩科技【www.vbseamall.com】
spool deltab.sql select 'truncate table ' || tname || ' drop storage' ||';' from tab where TNAME not like '%TB%' and TNAME like '%LZW%'; spool off; exit;
SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 2500 colsep | feedback off termout off pages 0 nohup sqlplus ZJLZ/xx@szj @deltab.sql>deltab.log & 本文出自:億恩科技【www.enidc.com】 --> |