Disclosed is a data base access method and system that can easily access a
data base (DB) in a management information base (MIB) of a simple network
management protocol (SNMP) or a common management information protocol
(CMIP). The method includes making contents of the MIB into an MBean
class where members of m_Attrs, m_AttrName, and m_AttrType including
information of the MIB and member functions for accessing these members,
and members of m_DBJob and m_ConditionClause for a data base (DB) work
and member functions for accessing these members exist, extracting an
MIB-based class by compiling the MBean class, inputting an MIB-related
instruction to use the extracted MIB-based class, performing a
corresponding operation such as a data readout from the MIB if the
instruction does not refer to a DB operation, loading the extracted
MIB-based class and a smart view DB class SvDB including common
information required for a DB access if the instruction refers to the DB
operation, and accessing the DB by obtaining a DB name and instruction
name and type from the MIB-based class. According to the method, the DB
can be easily accessed without changing a DB API even if the MIB is
changed.