db oracle 의 Data Concurrency and Consistency, transaction isolation
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm
MySQL - Table Type , Lock 관련 자료
http://lvsin.tistory.com/174
Posted by 김용환 '김용환'
MSSQL에서 시퀀스 트랜젝션 생성 하는 방법이 3가지
(@@IDENTITY ,IDENT_CURRENT,SCOPE_IDENTITY)
Posted by 김용환 '김용환'
Default Transaction Isolation Level을 정리함.
서비스 상황에 따라서, DBA가 read uncommitted로 지정하기도 함
오라클 DB - Read committed
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10743/consist.htm
큐브리드 DB - REPEATABLE READ CLASS with READ UNCOMMITTED INSTANCES
(테이블은 repeatable read, instance(row)는 read uncommitted라는 말)
http://www.cubrid.com/online_manual/cubrid_831/syntax/syntax_tran_isolation_setting.htm
MSSQL - Read commited
http://www.mssqlcity.com/Articles/General/TIL.htm
Mysql InnoDB - repeatable read
http://dev.mysql.com/doc/refman/5.0/en/innodb-transaction-model.html
Posted by 김용환 '김용환'
OR보다 IN 명령어가 더 좋다.
둘다 실행면에서는 비슷하지만 IN의 경우 index 부분이 하나의 컬럼만을 비교하기 때문에 유리하다.
Posted by 김용환 '김용환'
SQLNestedException(ORA-01013) 의 원인은 Oracle DB 의 Row level locking 으로 인한 waiting..
Posted by 김용환 '김용환'
Mysql이 어느 날 느려지기 시작했다. Mysql의 slow query 로그를 봐도 문제가 없는데. 계속 느려졌다..
mysql-dns 간에 약간 시간차가 나서 서비스가 정상적으로 작동이 되지 않을 수 있다.
이 때를 위해서 /etc/hosts에 도메인과 ip를 잘 지정하고 service restart를 한다.
만약 ip로 도메인 정보 조회를 막기 위해서 mysql에 skip-name-resolve 옵션을 넣어야 한다. (또는 my.cnf에 추가)
이유는 mysql에서 클라이언트 접속에 대한 ip resolving을 하는 것이었다.. DB에 옵션 넣고 restart하면 OK
Posted by 김용환 '김용환'
댓글을 달아 주세요