Patent ID: 8745009

Claim:
A method, performed by a computer, for archiving data stored in a database, comprising: receiving an archive preparation command which conditions an immediate deletion target that is to be retrieved for archiving and then deleted from the database; registering information defining the immediate deletion target according to the archive preparation command into a management data unit provided by computer storage, the information to prevent access to the immediate deletion target by another data manipulation command, the information defining the immediate deletion target includes an expression defining a target area; reading from the management data unit the intended immediate deletion target registered therein and starting the process of deleting the intended immediate deletion target from the database in a state where the immediate deletion target is not locked; and receiving an update or insert command having a manipulation target that coincides with a table of the immediate deletion target that has been registered in the management data; processing the update or insert command in a state where a condition to exclude the immediate deletion target from the manipulation target is added to the update or insert command, the condition including an expression opposite to the expression defining the target area; returning an error to the source of the update or insert command indicating that it is not possible to execute the update or insert command; and in response to the completion of the deletion process, deregistering from the management data unit the immediate deletion target the deletion of which has been completed.