What is the difference between "cmdb" and "cmdb_ci" tables?

iamvps21
Tera Contributor

What is the difference between "cmdb" and "cmdb_ci" tables?

8 REPLIES 8

@iamvps21 They don't hold the same data. cmdb is a parent table, and in ServiceNow table inheritance a query on a parent also returns rows from its child tables. So a query on cmdb shows every cmdb_ci record (and its descendants), plus any non-IT CIs. That overlap is inheritance, not duplicated data. A record such as a Linux server is stored once.

Tanushree Maiti
Tera Patron

Hi @iamvps21 

 

Refer:

https://www.servicenow.com/docs/r/servicenow-platform/configuration-management-database-cmdb/c_Basel...

 https://www.servicenow.com/docs/r/servicenow-platform/configuration-management-database-cmdb/cmdb-ta...

Featurecmdb (Base Configuration Item)cmdb_ci (Configuration Item)
Hierarchy RoleRoot or top-level parent table in the CMDB hierarchy.Direct child of cmdb and parent to most IT-related CI classes.
Primary PurposeDefines the basic structure and common attributes for all Configuration Items (CIs), including generic or non-IT CIs.Provides the core foundation for managing technical and IT-related CIs, such as servers, applications, and network devices.
Record CreationRarely used to create records directly; primarily serves as the foundation for other CMDB tables.Acts as the base class for IT CIs. Actual records are generally created in more specific child tables.
Fields / SchemaContains fundamental fields and attributes shared across the CMDB hierarchy.Inherits fields from cmdb and introduces additional CI-specific attributes, such as name, class, manufacturer, and install status.

yashkamde
Tera Sage

Hello @iamvps21 ,

 
CMDB

CMDB_CI

Stands for Configuration Management Database.

Stands for Configuration Item.

Represents the overall Configuration Management Database.

Represents the base table for Configuration Items.

It is not a standard base table for storing CI records.

It is a standard ServiceNow table.

Does not directly store individual CI records.

Stores common CI records and attributes.

Represents the overall CMDB structure and concept.

Acts as the parent table for specialized CI tables.

Examples include the overall collection of configuration data.

Examples: cmdb_ci_server, cmdb_ci_computer, cmdb_ci_database.

Used to refer to the complete configuration management system.

Used to manage, query, and maintain individual CI records.


Refer this :
CMDB Vs CMDB_CI 

If my response helped mark as helpful and accept the solution.

Aditya_hublikar
Giga Sage

Hello @iamvps21 ,

 

CMDB (Configuration Management Database) refers to the overall database in ServiceNow that stores and manages Configuration Items (CIs), their attributes, and relationships. Whereas, cmdb_ci is a specific base table within the CMDB hierarchy that stores common attributes of IT Configuration Items, such as servers, computers, and databases. Other CI tables, such as cmdb_ci_computer and cmdb_ci_server, extend the cmdb_ci table to store additional class-specific attributes. In simple words, CMDB is the overall database, whereas cmdb_ci is the base table used to manage IT Configuration Items.

 

Refer this :

https://www.servicenow.com/community/virtual-agent-forum/cmdb-amp-cmdb-ci-difference/m-p/3301200/hig...

 

If this helps you then mark it as helpful and accept as solution .