출처 : http://blog.paran.com/dblog/799400
A. Daily Procedures
1. Free.sql
--
-- free.sql
--
-- Minimum amount of free space
-- d0cument your thresholds:
-- <tablespace_name> = <amount> m
--
SELECT tablespace_name, sum ( blocks ) as free_blk , trunc ( sum ( bytes ) / (1024*1024) ) as free_m
, max ( bytes ) / (1024) as big_chunk_k, count (*) as num_chunks
FROM dba_free_space
GROUP BY tablespace_name
2. Space.sql
--
-- space.sql
--
-- To check free, pct_free, and allocated space within a tablespace
--
-- 11/24/98
SELECT tablespace_name, largest_free_chunk
, nr_free_chunks, sum_alloc_blocks, sum_free_blocks
, to_char(100*sum_free_blocks/sum_alloc_blocks, '09.99') || '%'
AS pct_free
FROM ( SELECT tablespace_name
, sum(blocks) AS sum_alloc_blocks
FROM dba_data_files
GROUP BY tablespace_name
)
, ( SELECT tablespace_name AS fs_ts_name
, max(blocks) AS largest_free_chunk
, count(blocks) AS nr_free_chunks
, sum(blocks) AS sum_free_blocks
FROM dba_free_space
GROUP BY tablespace_name )
WHERE tablespace_name = fs_ts_name
3. analyze5pct.sql
--
-- analyze5pct.sql
--
-- To analyze tables and indexes quickly, using a 5% sample size
-- (do not use this script if you are performing the overnight
-- collection of volumetric data)
--
-- 11/30/98
BEGIN
dbms_utility.analyze_schema ( '&OWNER', 'ESTIMATE', NULL, 5 ) ;
END ;
/
4. nr_extents.sql
5. spacebound.sql
B. Nightly Procedures
1. mk_volfact.sql
2. analyze_comp.sql
3. pop_vol.sql
C. Weekly Procedures
1. nextext.sql
2. existext.sql
3. No_pk.sql
4. disPK.sql
5. nonuPK.sql
6. mkrebuild_idx.sql
7. datatype.sql
8. obj_coord.sql
'ORACLE' 카테고리의 다른 글
[oracle] sql 튜닝 테스트(AUTO TRACE) (0) | 2010.04.12 |
---|---|
[oracle] dump 파일 imp시 에러 발생(ftp전송후) (0) | 2010.04.12 |
[ORACLE] 튜닝포인트 : I/O, archive 파일, 블럭구조 확인하기 (0) | 2010.04.12 |
(오라클) 데이터베이스 성능 진단 및 평가 (0) | 2010.04.12 |
유닉스에서 ORACLE의 자원 활용 상태 점검 방법 (0) | 2010.04.12 |