오라클DB 로그 비우기 질문 0 3 5,790

by 나만의생각 [Oracle 기초] 오라클 DB [2017.05.01 12:35:03]


오라클Developer사용중 

요청한 작업을 수행하는 중 오류 발생:

ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
ORA-02002: error while writing to audit trail
ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
00604. 00000 -  "error occurred at recursive SQL level %s"
*Cause:    An error occurred while processing a recursive SQL statement
           (a statement applying to internal dictionary tables).
*Action:   If the situation described in the next error on the stack
           can be corrected, do so; otherwise contact Oracle Support.
업체 코드 604

이런 오류가 뜨길래 찾아본 결과 로그가 다 차서 그런거 같긴한대 확실하게 비우는 방법을 모르겠습니다,,

어떻게 지워야 하나요?

by 나만의생각 [2017.05.01 18:27:40]

답 찾아서 글올립니다

테이블 스페이스 문제였던걸 나오내요

해결법은 cmd 접속해서

sqlplus /nolog

 

connect /as sysdba

 

truncate table SYS.AUD$; 

이렇게 하시면 됩니다


by 미생 [2017.05.01 22:48:54]

시스템 테이블스페이스 autoextend 옵션이 안되있나보군요. AUDIT 로그 다른 테이블 스페이스로 바꾸거나 저장형식을 DB 가 아닌 OS 에 떨구는게 좀더 적합해보입니다.


by 나만의생각 [2017.05.02 08:45:39]

아하.. 그런방법도 있군요 아직 생초짜라 배워갑니다 ^^

댓글등록
SQL문을 포맷에 맞게(깔끔하게) 등록하려면 code() 버튼을 클릭하여 작성 하시면 됩니다.
로그인 사용자만 댓글을 작성 할 수 있습니다. 로그인, 회원가입