본문 바로가기

Oracle_Script

일일 DB점검 스크립트 더보기
비용 기반의 오라클 원리 스크립트 더보기
expert_oracle_exadata_scripts 더보기
실전 DB모델링과 SQL for oracle 더보기
DBA_HIST_ACTIVE_SESS_HISTORY - Oracle Monitor DBA_HIST_ACTIVE_SESS_HISTORY - Oracle Monitor Def v_secs=3600 -- bucket size Def v_days=1 -- total time analyze Def v_bars=5 -- size of one AAS in characters Def v_graph=80 col aveact format 999.99 col graph format a30 col fpct format 9.99 col spct format 9.99 col tpct format 9.99 col aas1 format 9.99 col aas2 format 9.99 select to_char(start_time,'DD HH24:MI:SS'), samples, --total, --waits, --c.. 더보기
CRS_STAT 상태 스크립트 참고로 위의 crs_stat 명령어를 실행하면 리소스 이름들이 잘려보이므로 아래의 스크립트를 이용하면 전체 이름이 잘 나옵니다. (참고로 os에 따라 명령어의 위치가 달라질 수 있으므로 주의. 아래의 예는 Oracle Enterprise Linux에서는 문제 없이 잘 실행됨.) #!/usr/bin/ksh # # Sample 10g CRS resource status query script # # Description: # - Returns formatted version of crs_stat -t, in tabular # format, with the complete rsc names and filtering keywords # - The argument, $RSC_KEY, is optional and .. 더보기
estd_interconnect_traffic check procedure set echo off set feed off ACCEPT startt PROMPT'Please enter start time (MM/DD/YYYY):' ACCEPT endt PROMPT'Please enter end time (MM/DD/YYYY):' ACCEPT instid PROMPT'Please enter instance number:' drop table interconnect_traffic; create table interconnect_traffic (stime varchar2(100), svalue varchar2(100)) tablespace users; create or replace procedure interconnect_traffic_pr1 (stime varchar2,etime .. 더보기
통계정보 수집할 대상 테이블 조회 /*========================================================== 통계정보 수집할 대상 테이블 조회 더보기
Client IP 접속자IP 확인 CREATE OR REPLACE TRIGGER ip_look AFTER LOGON ON DATABASE DECLARE ipinfo VARCHAR2(30); BEGIN SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') INTO ipinfo FROM DUAL; DBMS_APPLICATION_INFO.SET_CLIENT_INFO(ipinfo); END; / 더보기
Archive Redo Log File Size & Rman Backup File Size -- Archive Redo Log File Size select to_char(completion_time,'YYYYMMDD') "일별 사용량", round(sum(blocks * block_size/1024/1024/1024),1)GB from V$archived_log where completion_time>=to_date('20120701','YYYYMMDD') group by to_char(completion_time,'YYYYMMDD') order by 1 -- Rman Backup File Size select to_char(completion_time,'YYYYMMDD') "백업 일자", round(sum(bytes/1024/1024/1024),1)GB from v$backup_piece .. 더보기
Lock_Session_Monitoring 더보기
DB backup script 보호되어 있는 글입니다. 더보기
script 정리중 보호되어 있는 글입니다. 더보기
기본점검을 위한 스크립트 보호되어 있는 글입니다. 더보기
기본 정보 스크립트 보호되어 있는 글입니다. 더보기
일일 점검 스크립트(PDF) 보호되어 있는 글입니다. 더보기
스크립트 설명 Library Cache Hit Ratio Library Cache Miss Ratio 는 1~2% 가 좋음 ----------------------------------------------------------------------------------------- Redo log Description - Redo Buffer Space Wait(%)은 redo entry 가운데 log buffer space 를 할당받기 위해 Wait 한 비율을 의미하며, redo space requests는 해당 Wait event의 발생횟수이다. Redo Log Buffer는 일반적으로 큰 문제를 유발하는 영역은 아니나, 경합이 존재할 경우 데이터베이스 성능 전체의 병목구간으로 작용할 수 있다. Space Req.. 더보기
goodus.sql 보호되어 있는 글입니다. 더보기
Oracle_Session_Management Script 더보기
Lock_Session_Monitoring Script 더보기