Category Archives: Development

오라클 쿼리 로그 뷰

  오라클 쿼리 로그 뷰 select * from v$sql select * from v$sqltext select * from v$sqlarea select * from v$sql where parsing_schema_name = ‘USER’ and last_active_time > TO_DATE(‘2007/07/31 08:50′,’RRRR/MM/DD HH:MI’ ) and last_active_time < TO_DATE(‘2007/07/31 08:11′,’RRRR/MM/DD HH:MI’ ) order … Continue reading

Posted in Database | Tagged , , , , , | Leave a comment

rsync으로 백업하기

  보통 rsync는 원격지의 파일을 현재 로컬 내 PC로 땡겨오는대 주로 많이 쓰입니다. rsync의 작동원리는 rsync란?를 참고. 저는 rsync를 원격지에서 서버의 데이터를 백업받을 때 사용하고 있습니다. 실제 서비스되고 있는 abc.com 서버와 가상의 경우를 예로 들어봅시다. abc.com 서버는 IDC 구석에 꼴아박혀 … Continue reading

Posted in System, Util/Tools | Tagged , | 1 Comment

rsync 란?

  1. Rsync란? Network을 통해서 데이터 백업을 하는 툴이다. 기존 RCP를 보완하고, 현재 SCP(SSH)를 통해서 보안을 유지할 수 있다. 이 command는 웹 서버의 부하를 분산하기 위해서 remote sync(copy)를 하기 위한 용도로 개발되었다. – RSYNC Memory 사용 비율 File당 100byte의 메모리가 … Continue reading

Posted in System, Util/Tools | Tagged , | 1 Comment

INDEX 사용현황 확인 하는 방법

  오라클에서 필요에 의해서 인덱스를 만들어 놓고 이후에 이 인덱스를 사용하는지 안하는지 알 수가 없어서 필요없는 인덱스에 의해서 사용되어지는 디스크 공간을 회수 하지 못하고 있는 경우가 많이 있다. 이 경우 인덱스 사용여부를 확인해서 사용하지 않는 인덱스의 경우 drop 하여 불필요한 … Continue reading

Posted in Database | Tagged , , , | Leave a comment

Oracle 10g에서 사용하는 기타 monitoring SQL들

– 10g의 statistics_level=typical이상이면 gathering됨.(but this view does not include undo block or undo header transfers) SELECT object_name, statistic_name, SUM(value) waits FROM v$segment_statistics WHERE statistic_name = ‘buffer busy waits’ GROUP BY object_name, statistic_name ORDER BY waits DESC; – 10g, transaction에 대한 … Continue reading

Posted in Database | Tagged , | Leave a comment

PostgreSQL 8.3.3 리눅스 설치..

  PostgreSQL 8.3.3 리눅스 설치.. 홈페이지 : http://www.postgresql.org/ ]$ ./configure ]$ gmake ]$ su ]# gmake install ]# adduser postgres ]# mkdir /usr/local/pgsql/data ]# chown postgres /usr/local/pgsql/data ]# su – postgres ]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data ]$ /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile … Continue reading

Posted in Database | Tagged , | Leave a comment

properties 파일에서 한글사용..

  이번에 개발된 사이트에 다국어를 지원하도록 해야 하는 일이 생겼다.. 엄청난 양의 jsp 페이지에서 fix된 한글을 추출해서 properties 작업을 해야 한다. 그런데 가능성 테스트 중 properties 파일에서 한글을 입력시 한글이 깨지는 문제가 발생하는 것이다.. 이거저거 찾아봤는데 몇가지 방법이 있는듯 하다.. … Continue reading

Posted in Java/JSP | Tagged , , , , | Leave a comment

Ruby on Rails 설치…

  예전에 Ruby 설치 후에.. gem을 이용해서 rails 설치 ]# gem install rails –include-dependencies Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-2.1.0 Successfully installed rake-0.8.1 Successfully installed activesupport-2.1.0 Successfully installed activerecord-2.1.0 Successfully installed actionpack-2.1.0 Successfully installed actionmailer-2.1.0 Successfully … Continue reading

Posted in Python/Ruby/Perl, WEB/WAS | Tagged , , , | Leave a comment

한글패턴 검색(정규표현식)

  java -> 한글 완성형 [\uAC00-\uD7A3] php -> 한글과 영문,숫자만 입력 // $str 이 한글을 포함하는지 검사하는 함수입니다. function chkHan($str) { $strCnt=0; while( strlen($str) >= $strCnt) { $char = ord($str[$strCnt]); if($char >= 0xa1 && $char <= 0xfe) return true; $strCnt++; … Continue reading

Posted in Java/JSP, Javascript/Html, PHP/ASP | Tagged , , , | Leave a comment