{{위키데이터 속성 추적}}
'''DBM'''은 컴퓨팅에서 데이터에 대한 고속의 단일 키 접근을 제공하는 [[라이브러리 (컴퓨팅)|라이브러리]]이자 파일 포맷이다.<ref name="2007-kew-apache">{{harvnb|Kew|2007|p=80}}: "DBMs have been with us since the early days of computing, when the need for fast keyed lookups was recognized. The original DBM is a UNIX-based library and file format for fast, highly-scalable keyed access to data. It was followed (in order) by NDBM ('new DBM'), GDBM ('GNU DBM'), and the Berkeley DB. This last is by far the most advanced, and the only DBM under active development today. Nevertheless, all of the DBMs from NDBM onward provide the same core functionality used by most programs, including Apache. A minimal-implementation SDBM is also bundled with [[Apache Portable Runtime|APR]], and is available to applications along with the other DBMs.<br/>Although NDBM is now old - like the city named New Town ('Neapolis') by the Greeks in about 600BC and still called Naples today - it remains the baseline DBM. NDBM was used by early Apache modules such as the Apache 1.x versions of <code>mod_auth_dbm</code> and <code>mod_rewrite</code>. Both GDBM and Berkeley DB provide NDBM emulations, and Linux distributions ship with one or other of these emulations in place of the 'real' NDBM, which is excluded for licensing reasons. Unfortunately, the various file formats are totally incompatible, and there are subtle differences in behaviour concerning database locking. These issues led a steady stream of Linux users to report problems with DBMs in Apache 1.x."</ref><ref name="2001-hazel-exim">{{harvnb|Hazel|2001|p=500}}: "The most common [single-key] format is called DBM. Most modern versions of Unix have a DBM library installed as standard, though this is not true of some older systems. The two most common DBM libraries are ''ndbm'' (standard on Solaris and IRIX) and Berkeley DB Version 2 or 3 (standard on several free operating systems). Exim supports both of these, as well as the older Berkeley DB Version 1, ''gdbm'', and ''tdb''."</ref><ref name="2001-ladd-odonell-xhtml">{{harvnb|Ladd|O'Donnell|2001|pp=823-824}}: "Most UNIX systems have some kind of DBM database. DBM is a set of library routines that manages data files consisting of key and value pairs. The DBM routines control how users enter and retrieve information from the database. Although it isn't the most powerful mechanism for storing information, using DBM is a faster method of retrieving information than using a flat file. Because most UNIX sites use one of the DBM libraries, the tools you need to store your information in a DBM database are readily available.<br/>Almost as many flavors of the DBM libraries exist as there are UNIX systems. Although most of these libraries are compatible with each other, they all basically work the same way...<br/>A list follows of some of the most popular DBM libraries available:{{bulleted list|'''DBM''' - DBM stores the database in two files. The first has the extension <code>.Pag</code> and contains the bitmap. The second, which has the extension <code>.Dir</code>, contains the data.|'''NDBM''' - NDBM is much like DBM but with a few additional features; it was written to provide better storage and retrieval methods. Also, NDBM enables you to open many databases, unlike DBM, in which you are allowed to have only one database open within your script. Like DBM, NDBM stores its information in two files using the extensions <code>.Pag</code> and <code>.Dir</code>.|'''SDBM''' - SDBM comes with the Perl archive, which has been ported to many platforms. Therefore, you can use DBM databases as long as a version of Perl exists for your computer. SDBM was written to match the functions provided with NDBM, so portability of code shouldn't be a problem. Perl is available on just about all popular platforms.|'''GDBM''' - GDBM is the GNU version of the DBM family of database routines. GDBM also enables you to cache data, reducing the time that it takes to write to the database. The database has no size limit; its size depends completely on your system's resources. GDBM database files have the extension <code>.Db</code>. Unlike DBM and NDBM, both of which use two files, GDBM only uses one file.|'''Berkeley db''' - The Berkeley db expands on the original DBM routines significantly. The Berkeley db uses hashed tables the same as the other DBM databases, but the library also can create databases based on a sorted balanced binary tree (<code>BTREE</code>) and store information with a record line number (<code>RECNO</code>). The method that you use depends completely on how you want to store and retrieve the information from a database. Berkeley db creates only one file, which has no extension."}}</ref>

== 역사 ==
오리지널 dbm 라이브러리와 파일 포맷은 단순한 [[데이터베이스 엔진]]이었으며 [[켐 톰프슨]]에 의해 개발되었고 1979년 [[AT&T]]에 의해 공개되었다. 이 3 문자는 DataBase Manager에서 비롯된 것이다.

== 구현체 ==
오리지널 AT&T dbm 라이브러리는 여러 구현체로 대체되었다. 그 예로 다음과 같다:<ref name="2001-ladd-odonell-xhtml"/>
* ''ndbm'' ("new dbm")
* ''gdbm'' ("GNU dbm")<ref>{{웹 인용|title=GDBM |url=https://www.gnu.org.ua/software/gdbm/ |website=www.gnu.org.ua}}</ref>
* ''sdbm'' ("small dbm")<ref>{{웹 인용|last1=yigit |first1=ozan |title=sdbm.bun |url=http://www.cse.yorku.ca/~oz/sdbm.bun |website=cse.yorku.ca |accessdate=8 May 2019}}</ref><ref>{{웹 인용|title=class SDBM |url=https://docs.ruby-lang.org/en/2.4.0/SDBM.html |website=Documentation for Ruby 2.4.0 |quote=Note that Ruby comes with the source code for SDBM, while the DBM and GDBM standard libraries rely on external libraries and headers.}}</ref>
* [[버클리 DB]]
* [[Tokyo Cabinet and Kyoto Cabinet]]<ref>{{웹 인용| url = http://fallabs.com/tokyocabinet/spex-ja.html | title = Tokyo Cabinet第1版基本仕様書 | access-date = 25 May 2019 | date = 5 August 2010 | website = Fall Labs | language = ja | trans-title = Fundamental Specifications of Tokyo Cabinet Version 1 | quote = Tokyo CabinetはGDBMやQDBMの後継として次の点を目標として開発されました。これらの目標は達成されており、Tokyo Cabinetは従来のDBMを置き換える製品だと言えます。 | format = html | archive-url = https://web.archive.org/web/20181028124047/http://fallabs.com/tokyocabinet/spex-ja.html | archive-date = 28 October 2018 | df = dmy-all }}</ref>

== 같이 보기 ==
* [[임베디드 데이터베이스]]
* [[색인 순차 접근 방식]]
* [[NoSQL]]
* [[세마포어]]
== 각주 ==
{{각주}}

[[분류:데이터베이스 엔진]]
[[분류:자유 데이터베이스 관리 시스템]]
[[분류:임베디드 데이터베이스]]