ELECTRONIC DEVICE FOR RECOVERING DATABASE AND METHOD OF OPERATING THE SAME

    公开(公告)号:US20230153291A1

    公开(公告)日:2023-05-18

    申请号:US17994229

    申请日:2022-11-25

    Abstract: An electronic device for recovering a database (DB) and a method of operating the electronic device are provided. The electronic device includes a non-volatile first memory configured to store a DB, a volatile second memory, and a processor operably connected to the first memory and the second memory. The processor may determine whether the DB is corrupted, may perform first integrity check of the DB after initializing a DB cache in which at least a portion of the DB is loaded to a user space of the second memory when it is determined that the DB is corrupted, may perform second integrity check of the DB after initializing an operating system (OS) cache in which at least a portion of the DB is loaded to a kernel space of the second memory when the first integrity check of the DB fails, and may perform a task on a DB file when the first integrity check or the second integrity check of the DB is successful.

    METHOD FOR RECOVERING DATABASE FILE IN ELECTRONIC DEVICE

    公开(公告)号:US20230259487A1

    公开(公告)日:2023-08-17

    申请号:US18107424

    申请日:2023-02-08

    Abstract: According to an embodiment, an electronic device includes a memory including a database file and at least one processor connected to the memory. The at least one processor may identify damage to the database file while a first application running on the electronic device accesses the database file. The at least one processor may control a second application running on the electronic device to wait without accessing the database file until recovery of the damaged database file is completed. The at least one processor may record recovery state information indicating that the database file is recovered if the recovery of the damaged database file is completed. The at least one processor may control the second application to access the recovered database file based on the recovery state information.

Patent Agency Ranking