반응형

1. SGA, PGA 설정 Parameter 확인

sqlplus / as sysdba

show parameter sga

show parameter pga

2. 아래의 명령어를 통해 시간대별 PGA, SGA 사용량 확인이 가능합니다.

select sn.INSTANCE_NUMBER, sga.allo sga, pga.allo pga,(sga.allo+pga.allo) tot,trunc(SN.END_INTERVAL_TIME,'mi') time
from
(select snap_id,INSTANCE_NUMBER,round(sum(bytes)/1024/1024/1024,3) allo
from DBA_HIST_SGASTAT
group by snap_id,INSTANCE_NUMBER) sga
,(select snap_id,INSTANCE_NUMBER,round(sum(value)/1024/1024/1024,3) allo
from DBA_HIST_PGASTAT where name = 'total PGA allocated'
group by snap_id,INSTANCE_NUMBER) pga
, dba_hist_snapshot sn
where sn.snap_id=sga.snap_id
and sn.INSTANCE_NUMBER=sga.INSTANCE_NUMBER
and sn.snap_id=pga.snap_id
and sn.INSTANCE_NUMBER=pga.INSTANCE_NUMBER
order by sn.snap_id desc, sn.INSTANCE_NUMBER;

show parameter sga

3. 시간변 SGA와 PGA 사용량 확인 후 사이즈를 키울지, 아니면 재분배할 지 고민하여 조정하면 됩니다.

반응형
반응형

1. Oracle Server
오라클 서버는 information management에 종합적인 접근이 가능하도록 해주는 database 관리 시스템이다.
오라클 서버는 Oracle instance와 Oracle database로 구성된다.

2. Oracle Instance
오라클 인스턴스는 오라클 데이타 베이스에 접근하는 한 수단이다.
항상 오직 한 데이터 베이스에만 열려 있고 사용이 가능하다.
오라클 인스턴스는 메모리와 background process structure들로 구성된다.

3. Oracle Database
오라클 데이타베이스는 unit으로 다루어 지는 데이타들의 집합이다.
오라클 데이타베이스는 3가지 파일 타입으로 구성된다. 
오라클 데이타베이스는 아래와 같이 3가지 타입을 가진다.
1) Data files
2) Control files
3) Redo Log files 

4. Physical Structure
Physical structure는 아래와 같이 3가지 파일 타입을 가진다.
1) Data files
데이타 파일은 database 내에서 실제적인 data를 가지고 있다.
2) Control files
컨트롤파일은 database integrity를 검증하고 유지하는데 필요로하는 정보를 가지고 있다.
예를 들면, Database name, Time stampe of database creation, names and locations of data files and
online redo log files 등 기타 등등 여러가지를 가지고 있다.
3) Online redo log files
오라인 리두 로그 파일은
failure의 경우에 data의 복구가 가능하도록 database에 change가 가능한 record를 가지고 있다.

5. Memory Structure
오라클의 memory structure는 아래와 같은 두 가지 memory area로 구성된다.
1) System Global Area(SGA)
It is allocated at instance start up. And it is a fundamental component of an Oracle instance.
2) Program Global Area(PGA)
It is allocated when the server process is started.(It is equal to 'when a session is created)

반응형