'주디아줌마'에 해당되는 글 340건

  1. 2013.01.31
  2. 2013.01.30
  3. Free ebook
  4. Augmenting RDBMS with MongoDB for ecommerce
  5. MongoDB 성능 모니터링
  6. 쥑이는 SCRIPT
  7. 이건 Bug 일까?
  8. 인메모리DB, 틈새에서 대세로? memSQL 2
  9. Redis(Windows OS) 복제 구성하기 2
  10. Redis - Windows 설치하기 2

2013.01.31

'SQLTAG Daily Links' 카테고리의 다른 글

2013.02.04  (0) 2013.02.04
2013.02.01  (0) 2013.02.01
2013.01.30  (0) 2013.01.30
2013.01.29  (0) 2013.01.29
2013.01.28  (0) 2013.01.28

2013.01.30

SQL

   

   

'SQLTAG Daily Links' 카테고리의 다른 글

2013.02.01  (0) 2013.02.01
2013.01.31  (0) 2013.01.31
2013.01.29  (0) 2013.01.29
2013.01.28  (0) 2013.01.28
2013.01.25  (0) 2013.01.25

Free ebook

Free ebook 정보가 올라왔네요^^ 빨간색 책들을 제외하고는 모두 sample 용도로 한개에서 두개정도면 올라왔네요.. 나머지는 돈 주고 사야죠 머~~



http://blogs.msdn.com/b/mssmallbiz/archive/2012/07/27/large-collection-of-free-microsoft-ebooks-for-you-including-sharepoint-visual-studio-windows-phone-windows-8-office-365-office-2010-sql-server-2012-azure-and-more.aspx



image 
Moving to Microsoft Visual Studio 2010 
VS2005 PDF 
VS2005 XPS 
VS2008 PDF 
VS2008 XPS
image 
Programming Windows 8 Apps 
PDF

Managing SQL Servers and Policy-Based Management






image 
Introducing Windows Server 2012 
PDF 
EPUB 
MOBI
image 
Introducing Microsoft SQL Server 2012 
PDF 
EPUB 
MOBI
image 
Introducing Microsoft SQL Server 2008 R2 
PDF 
XPS











  
  
SQL Server 2012 Tutorials: Analysis Services - Tabular Modeling 
PDF 
EPUB 
MOBI
  
Microsoft SQL Server AlwaysOn Solutions Guide for High Availability and Disaster Recovery 
PDF 
EPUB 
MOBI
  
Transact-SQL Data Manipulation Language (DML) Reference 
PDF 
EPUB 
MOBI
  
QuickStart: Learn DAX Basics in 30 Minutes 
 PDF 
EPUB 
MOBI
  
SQL Server 2012 Tutorials: Analysis Services - Data Mining 
PDF 
EPUB 
MOBI
  
Microsoft SQL Server Analysis Services Multidimensional Performance and Operations Guide 
PDF 
EPUB 
MOBI 
  
Data Analysis Expressions (DAX) Reference 
PDF 
EPUB 
MOBI 
 
  
SQL Server 2012 Upgrade Technical Guide
PDF 
EPUB 
MOBI
  
Backup and Restore of SQL Server Databases 
 PDF 
EPUB 
MOBI
  
SQL Server 2012 Tutorials: Analysis Services - Multidimensional Modeling 
PDF 
EPUB 
MOBI 
  
Master Data Services Capacity Guidelines 
 PDF 
EPUB 
MOBI



몽고DB와 RDBMS와 결합^^.... 요즘에 이렇게들 많이 쓰네요. 

MongoDB 성능 모니터링

참고 링크

http://www.mongodb.org/display/DOCS/Monitoring+and+Diagnostics#MonitoringandDiagnostics-HostedMonitoring
http://gurjarmehul.wordpress.com/2011/12/27/monitoring-mongodb/

 

몽고DB 모니터링하기 위한 방법은 다양하다.

 

  1. 툴을 이용한 모니터링
  • munin
    • Server stats: this will retrieve server stats (requires python; uses http interface)
    • Collection stats, this will display collection sizes, index sizes, and each (configured) collection count for one DB (requires python; uses driver to connect)
  • mtop - A top like utility for Mongo
  • Mongo Live - A Chrome extension that provides a real-time server status view (uses the rest interface).

 

  1. Shell Command
  • db.stats() : 선택된(use) 데이타베이스 상태 정보
  • db.foo.find().explain() : 쿼리 실행 계획
  • db.users.stats() : collection 통계
  • 프로파일러
    • db.setProfilingLevel(2) ;  profile enable
    • db.system.profile.find() : slow query see
    • db.setProfilingLevel(0) ;  profile disable

 

  1. Utility

mongostat --host 127.0.0.1:27017 30 --noheaders > perflog.txt

30초마다 헤더정보 없이 mongostat 결과 정보를 peflog.txt 기록해라.

  • Mongotop
    • read/write 성능 정보(sec/per)
  • Query profiler(Slow query 분석)
  • Http console

http://localhost:28017

'Etc' 카테고리의 다른 글

성능 정보 수집하기  (0) 2012.07.12
스트레스 테스트 batch request/sec 정보 공유  (0) 2012.07.11
인메모리DB, 틈새에서 대세로? memSQL  (2) 2012.06.26
Redis 사용  (0) 2012.06.07
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07

쥑이는 SCRIPT

DBA에게 필수!! 설치 이후 설정 및 기능 확인하는 경우가 많은데 이런 Script를 Amit Banerjee라는 분이 공유하셨네요. 이것을 응용해서 이런 저런거 만들어 놔야징.ㅋㅋ


■ SQL Feature Discovery Script

http://troubleshootingsql.com/2012/06/27/sql-feature-discovery-script/


■ Initial Data Collection Script

http://troubleshootingsql.com/2010/01/21/initial-data-collection-script/



'Transact-SQL' 카테고리의 다른 글

How to Recycle SQL Server error logs – 5 Types of logs  (1) 2012.09.03
ORIGINAL_LOGIN() 와 SUSER_SNAME() 차이  (0) 2012.07.30
sp_configure 마지막 변경일  (0) 2012.05.15
SQLServer365 A Script A Day  (0) 2012.05.12
최신 진단쿼리  (0) 2012.05.08

이건 Bug 일까?

안녕하세요주디아줌마입니다.

 

SQL2012 11.0.2325 버전 사용중입니다.  SQL 개체 스크립팅을 사용하려고 했는데 그중 특정 옵션만 활성화만 시키게 되면 저장프로시져 Script 주석문  Script 정보가 변경되어 있는 것을 확인하였습니다.


테스트 방법 

도구>옵션>SQL Server 개체 탐색기>스크립트>테이블   옵션

"사용자 정의 데이터 형식을 기본 형식" enable하게 되면 저장프로시져의 주석문이 나오는 문제가 있습니다이것이 버그일까요

 

1.  아래의 옵션을 활성화 하였습니다.


2. 테스트 하려는 프로시져를 생성하고 저장된 정보를 확인 한다.


3. 프로시져를 선택하여 수정하기를 했을 때 스크립트된 결과

    - 주석문이 제거 됨.

    - WITH EXECUTE AS CALLER 옵션 추가



memSQL 공부해야 하나?? 자꾸 변하는겨?

"멤SQL초당 8만쿼리를 처리해, 3천500쿼리를 다루는 마이SQL 성능을 23 가량 앞선다. 이게 가능한겨? MSSQL에서도 초당 Request수도 5000이상 보기 어려운디..



최근 페이스북 출신 엔지니어 2명이 퇴사후 차린 데이터베이스(DB) 업체와 그 기술이 화제가 됐다. 널리 쓰이는 오픈소스DB '마이SQL(MySQL)'과 호환되면서도 최대 30배나 빠르다는 회사측 주장이 업계 주목을 받았다. 

 

회사 이름과 같은 해당 기술 '멤SQL(memSQL)'은 SQL인터페이스와 마이SQL API를 쓰는 인메모리기반 관계형DB로 요약된다. 디스크 대신 메모리에 자료를 저장하고 읽어내기 때문에 속도가 빠르며, 이 기술을 도입시 일반 DB관리자들이 새로 배우거나 마이SQL 애플리케이션을 확 뜯어고칠 필요가 없다는 뜻이다. 멤SQL은 초당 8만쿼리를 처리해, 3천500쿼리를 다루는 마이SQL 성능을 23배 가량 앞선다


 

메모리 기반 RDBMS, MemSQL을 알아봅시다

http://dev.kthcorp.com/2012/07/04/memory-based-rdbms-memsql/


'Etc' 카테고리의 다른 글

스트레스 테스트 batch request/sec 정보 공유  (0) 2012.07.11
MongoDB 성능 모니터링  (0) 2012.07.11
Redis 사용  (0) 2012.06.07
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
Redis - Windows 설치하기  (2) 2012.06.07


참고 링크

http://misoin.wordpress.com/2012/06/05/redis-%EB%B3%B5%EC%A0%9C-masterslaves/


Redis를 Windows 설치 하기

http://judydba.tistory.com/201



1. 설정 파일 생성

C:\Redis\Config 디렉토리에 redis.conf 파일을 복사하여 redis_master.conf, redis_slave.conf 파일을 생성. 

## Redis_master.conf

Port : 7379

Bind : 아이피주소

logfile D:\DB\Redis\log\master_redis.log

dbfilename D:\DB\Redis\dump_master.rdb


-- Security Sectioin

Requirepass의 주석을 해제. 원하는 비밀번호 생성

##. Redis_slave.conf

Port : 8379

Bind : 아이피주소

logfile D:\DB\Redis\log\redis_slave.log

dbfilename D:\DB\Redis\dump_slave.rdb

-- replication section

slaveof 아이피주소 7379

-- master auth

masterauth foobared

-- 주석 제거

repl-ping-slave-period 10

repl-timeout 60


2. 윈도우 서비스 등록

sc create "REDIS_Master" binpath= "c:\Redis\RedisService.exe C:\Redis\Config\redis_master.conf" start= "auto" DisplayName= "REDIS_Master"


sc create "REDIS_Slave" binpath= "c:\Redis\RedisService.exe C:\Redis\Config\redis_slave.conf" start= "auto" DisplayName= "REDIS_Slave"


3. 로그 확인

## master Server

[6624] 07 Jun 16:58:40 # Windows does not support daemonize. Start Redis as service

[6624] 07 Jun 16:58:40 * Server started, Redis version 2.4.5

[6624] 07 Jun 16:58:40 * DB loaded from disk: 0 seconds

[6624] 07 Jun 16:58:40 * The server is now ready to accept connections on port 7379

[6624] 07 Jun 16:58:45 * Slave ask for synchronization

[6624] 07 Jun 16:58:45 * Starting BGSAVE for SYNC

[6624] 07 Jun 16:58:45 * Foregroud saving started by pid 6624

[6624] 07 Jun 16:58:45 * DB saved on disk

[6624] 07 Jun 16:58:45 * Background saving terminated with success

[6624] 07 Jun 16:58:45 * Synchronization with slave succeeded


## Slave Server

[1044] 07 Jun 16:58:45 * The server is now ready to accept connections on port 8379

[1044] 07 Jun 16:58:45 * Connecting to MASTER...

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync started

[1044] 07 Jun 16:58:45 * Non blocking connect for SYNC fired the event.

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: receiving 10 bytes from master

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: Loading DB in memory

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: Finished with success


4. 연결 및 복제 테스트
## master 서버 연결
--a는 패스워드이다. 복제간 테스트 할때 conf 파일에 설정된 정보

## Slave 서버 연결

복제 테스트 완료!!.



'Etc' 카테고리의 다른 글

인메모리DB, 틈새에서 대세로? memSQL  (2) 2012.06.26
Redis 사용  (0) 2012.06.07
Redis - Windows 설치하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30

Redis - Windows 설치하기


메모리 DB 전용으로 사용될 Redis 테스트할 기회가 생겨 Redis Windows에 설치하게 되었다. 

Redis windows Version Download

https://github.com/dmajkic/redis/downloads

Redis 연구노트

http://kerocat.tistory.com/1


Redis Windows

https://github.com/kcherenkov/redis-windows-service

http://suretalent.blogspot.kr/2011/11/installing-redis-database-as-windows.html

https://github.com/kcherenkov/redis-windows-service/downloads

http://maxivak.com/getting-started-with-redis-and-asp-net-mvc-under-windows/

 

1. 디렉토리 생성

가."c:\redis\" 폴더에 압축 파일 해제

 

나. Data 폴더 생성

d:\db\Redis\

 

다. Config 폴더 생성

c:\Redis>Config


2. 설정 파일 이동

c:\Redis\Config로 redis.conf 파일을 복사하여 이동 


redis.conf: 수정 내용

#daemonize yes (windows 버전은 지원되지 않는다)

bind 127.0.0.1 (don't do this if you need to access redis from another computer)

loglevel notice

logfile d:\DB\redis\log\redis.log

dir D:\DB\redis\

 

3. 서비스 실행 파일 다운로드

https://github.com/kcherenkov/redis-windows-service/downloads

위의 경로를 통하여 실행 파일을 다운로드 받아 c:\redis\ 폴더에 저장

 

4. 윈도우 서비스 등록

sc create "REDIS001" binpath= "c:\Redis\RedisService_1.exe C:\Redis\Config\redis.conf" start= "auto" DisplayName= "Redis"

Where:

%name% -- name of service instance, ex. redis-instance;

%binpath% -- path to this project exe file, ex. C:\Program Files\redis\RedisService.exe;

%configpath% -- path to redis configuration file, ex. E:\Redis\redis.conf;

 

5. 윈도우 서비스 삭제       

sc delete "REDIS001"


6. 클라이언트 접속 확인

7. 로그파일 확인

[8888] 07 Jun 14:20:18 * Server started, Redis version 2.4.5

[8888] 07 Jun 14:20:18 # Open data file D:\DB\Redis\dump.rdb: No such file or directory

[8888] 07 Jun 14:20:18 * The server is now ready to accept connections on port 6379

[8888] 07 Jun 14:35:19 * 1 changes in 900 seconds. Saving...

[8888] 07 Jun 14:35:19 * Foregroud saving started by pid 8888

[8888] 07 Jun 14:35:19 * DB saved on disk

[8888] 07 Jun 14:35:19 * Background saving terminated with success



'Etc' 카테고리의 다른 글

Redis 사용  (0) 2012.06.07
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
log rotate 처리하기 - window os  (0) 2012.05.29