-
데이터 파일(.mdf/.ndf)과 로그파일(.ldf)MSSQL/운영 2018. 4. 16. 18:36
MSSQL에서 관리되는 파일은 다음과 같이 3가지 타입임
1. Primary Data File(.mdf)
- 주 데이터 파일은 데이터베이스의 시작 지점이며 데이터베이스의 나머지 파일을 가리킴
- 모든 데이터베이스에는 하나의 주 데이터 파일이 있음
2. Secondary Data File(.ndf)
- 보조 데이터 파일은 주 데이터 파일이 아닌 모든 데이터 파일을 구성함
- 데이터베이스에 따라 보조 데이터 파일이 없을 수도, 여러 개 있을수도 있음
3. Log File(.ldf)
- 데이터베이스를 복구하는 데 사용되는 모든 로그 정보가 들어가있음
- 완전한 데이터, 즉 데이터베이스의 무결성 때문에 로그파일을 씀
- 모든 행위에 대하여 기록을 남기는 것이 아니라, INSERT등 데이터의 변화가 생길 시 기록 남김
- 로그 파일이 두 개 이상 있을 수 있으며 적어도 하나의 로그 파일이 있어야함
'MSSQL > 운영' 카테고리의 다른 글
SampleData(WideWorldImporters) 가져오기 (0) 2018.04.20 OLTP 와 OLAP (0) 2018.04.20 windows 10 에서 mssql 2016 설치 (0) 2018.04.20 mssql 2016 service pack(sp1) 설치 (0) 2018.04.19 windows 2008 에서 mssql 2005 설치 (0) 2018.04.18