A method of efficiently recovering a
database that can be applied to a mobile communication terminal employing a
flash memory as a storage medium is provided. In the
flash memory, a
database (DB)
storage area and a DB
recovery area are separately allocated. Images of pages in the DB
storage area that are objects to be changed are sequentially read and stored in a memory buffer, and the original images of the pages before change are assigned sequential serial numbers and backed up in the DB
recovery area. Then, the images of the pages in the memory buffer are changed according to a transaction. This series of jobs is performed with respect to all pages that are the objects of change. Then, each page in the DB
storage area that is the object of the change is updated with a corresponding changed page in the memory buffer. If the mobile communication terminal is abnormally terminated without successfully performing this update, when the terminal is booted again, it is confirmed whether or not the serial number of the last page in the DB
recovery area matches the total number of pages stored in the DB recovery area. If the serial number matches the total number, with the original image of the page before modification stored in the DB recovery area, the corresponding page in the DB storage area is recovered.