[Oracle] 과거 발생했던 DB 이슈 확인 (dba_alert_history)

·2025년 9월 9일

오라클 관리

목록 보기
118/163

💡 과거에 발생했던 DATABASE의 큰 이슈를 확인하는 데이터 딕셔너리

dba_alert_history


[실습1] dba_alert_history 를 확인해서 과거의 db 이슈를 확인하시오


[실습2] resumable session 실습을 진행합니다.

* resumable session 기능을 이용하지 않은 상태

scott>  create  tablespace  ts05
          datafile  '/home/oracle/ts05.dbf'  size  20m;

scott>  create  table  emp05
        tablespace  ts05
       as
           select  * from  emp;

scott>  insert  into  emp05
        select  *
          from  emp05;

scott> /  <---------- 에러 날때까지 반복하시오! 

위의 insert 작업을 1시간동안해왔는데 ts05 테이블스페이스의 
공간이 부족해서 insert 가 에러났다면 다시 data 를 지우고 다시 작업해야한다. 

그래서 resumable  session 기능을 이용하면 insert 할때 공간이
부족하면 잠깐 insert 를 멈출수 있다.
 
insert가 멈춰있는동안 ts05 테이블 스페이스에 공간을 추가하면 계속 insert 가 진행이된다.

truncate  table  emp05;

alter session  enable  resumable  timeout  300;

insert  into  emp05
     select  *
        from  emp;

insert  into  emp05
  select *
    from emp05;

sys 유져에서 다음의 쿼리로 확인합니다.


위 ts05의 공간이 부족해서 resumble session이 있다고 조회되므로 ts05 테이블 스페이스에 공간을 추가합니다.

alter tablespace ts05
 add datafile '/home/oracle/ts05b.dbf' size 20m;

alert log file에는 위의 상황이 실시간 모니터링되므로 항상 alert log file을 모니터링 해야합니다.

0개의 댓글