A MOCS(Mobile Ondol heating Control System) is designed for the context-aware inference and the control of the device using mobile phone. The MOCS prepares indoor thermal environments and corresponds to the situation like resident’s coming home. Ondol Heater can be controlled as if the resident came home already. The MOCS adopts direct or indirect awareness of context in housing environment. In this research, it deals with the system making up with agent control module for the direct control and DBMS including the inference for the indirect control. Agent control module is made up of MainServer module for receiving control command and HomeAgent module that operates transmission and receiver by USN(Ubiquitous Sensor Network) device. DBMS consists of the event log data and the control log data including various databases. The structure of database has systemic information using the hierarchy of physical and electronic context for the inference. Furthermore, we suggest and implement what to provide, control and manage the home service in the mobile environment. Finally, it is expected to embody the ubiquitous housing and apply an ondol heating system communicating between human and home at anytime and in anyplace.