꽤 트랜잭션이 컸던 사이트에서 나타난 현상인데 오라클 디비와 연관된 어플 서버가 다운되어 SMON이 롤백을 하는데 6시간이 걸려도 롤백이 되지 않는 현상이 있었다.

롤백이 아직 되지 않았기 때문에 특정 테이블들이 row lock 상태여서 update가 되지 않아 업무를 진행할 수 없다는게 제일 큰 여파였다.

 

그런데 답답하게도 v$lock이나 v$fast_start_recovery 뷰에 참고할만한 정보가 없다는 특징도 있다.

세션이 예기치 못하게 끊겼을 경우 SMON은 OS의 프로세스를 정리하면서 언두 엔트리를 참고해 롤백하게 되는데

v$session에서는 이미 세션이 끊겼기에 정보가 없으나 OS의 process는 보이는 상황이라고 추정된다.

 

RAC 2node 환경이었는데 결국엔 DB를 shutdown abort하고 재시작한 후 lock이 풀렸음을 확인했다.

 

어쨋든 Cleanup이라는 과정을 SMON이나 PMON이 진행하는데 기본값으로 60초에 한번씩 _rollback_cleanup_entreis 라는 파라미터의 값만큼 언두 엔트리를 클린업하게 된다.

기본값이 20이기때문에 만약 1000개의 언두 엔트리를 정리해야 한다면 50분이 걸릴것이다.

문제였던 사이트는 6시간이 지나도 롤백이 완료가 되지 않았으므로 7200개 이상의 언두 엔트리가 롤백되고 있었음을 추측할 수 있다.

 

해결을 위해 _rollback_cleanup_entries 값을 2000정도로 증가시킬 예정이다. 재시작이 필요한 작업. 참고로 다른 사이트중에서 이 값을 10000으로 설정해 사용중인 곳도 있다.

Posted by neo-orcl
,

보통 rm *.trc 나 find *.trc -ctime +30 -exec rm {} \; 등으로 파일 삭제를 하는 경우가 있는데

파일이 너무 많은 경우

 -bash: /usr/bin/find: Argument list too long

메시지가 나올 수 있다.

이때는 find를 약간 다른 방식으로 기술해서 실행해야 하는데 다음과 같다. 가끔 ctime으로는 안나오고 mtime으로만 나오는 os도 있으니 주의한다.

find /oracle/admin/test/adump/ -name '*.aud' -ctime +30 -exec rm {} \;

 

Posted by neo-orcl
,

What is Standard Edition Oracle RAC?
As of Oracle Database 10g, a customer who has purchased Standard Edition is allowed to use the Oracle RAC option within the limitations of Standard Edition(SE). For licensing restrictions you should read the Oracle Database License Doc. At a high level this means that you can have a max of 4 sockets in the cluster, you must use ASM for all database files. As of Oracle Database 11g Release 2, ASM includes ACFS (a cluster file system). ASM Cluster File System (ACFS) or a local OS file system must be used to store all non-database files including Oracle Home, Application and system files, and User files
NOTE: 3rd party clusterware and clustered file systems(other than ASM) are not supported. This includes OCFS and OCFS2.

Here is the text from the appropriate footnote in the Price List (as of Jan2010, please check price list for any changes):

Oracle Database Standard Edition can only be licensed on servers that have a maximum capacity of 4 sockets. If licensing by Named User Plus, the minimum is 5 Named User Plus licenses. Oracle Database Standard Edition, when used with Oracle Real Application Clusters, may only be licensed on a single cluster of servers supporting up to a total maximum capacity of 4 sockets.

NOTE: This means that the server capacity must meet the restriction even if the sockets are empty, since they count towards capacity.


--------------------------------------------------------------------------------
해석:

특정 옵션으로 standard edition에 rac를 설치할 수 있다.
4 소켓 최대. 만약 named user plus 라이센스라면 최소 5 named user plus 라이센스 이상이여야 한다.
추가로 소켓이 비어있더라도 카운트는 된다.

db 파일들을 위해 ASM을 사용해야 한다.
3rd 파티 클러스터웨어와 클러스터 파일 시스템은 지원하지 않는다. ocfs와 ocfs2역시 지원하지 않는다.

Posted by neo-orcl
,