Show TOC

Restoring Secure Storage Files in the File System (AS ABAP)Locate this document in the navigation structure

Context

With the operations compress, changekey, and migrate, the command line tool rsecssfx completely rewrites the data file. The operation changekey can overwrite the key file. Before performing these operations, the secure storage creates a backup of the data or key files, if the data or key files exist. After the secure storage has created backup files, it converts the files. To do this, it deletes the original file and then creates a completely new file with the data from the backup file. The secure storage then deletes the backup file.

To avoid data loss during the conversion process, for example, a power outage, hard disk error, or program crash occurs, the secure storage locks further changes, if it finds a data backup file or key backup file during the next update or during the next conversion request. The command line tool informs the user that a previous conversion process terminated before it was complete and that the current data file could be corrupt.

Use this procedure to recover the data and key files and enable secure storage to perform further changes on the files.

Procedure


  1. Create a backup of the relevant data and key files ( *.DAT and *.KEY) and their backups ( *.DA_ and *.KE_).

    For example, copy the files to another directory or rename copies of the files.

  2. Use the list command to check the status of the secure storage.

    • If there are missing entries, the data file may be corrupt. Overwrite the data file, *.DAT, with its backup, *.DA_, and try again.

    • If entries are not readable, the key file may be corrupt. Overwrite the key file, *.KEY, with its backup, *.KE_, and try again.

    Note

    If other programs are using the secure storage, this error situation can appear differently. As the text above indicates, you must decide which files contain the correct status. Use the following indicators:

    • The time stamp of the file

    • The list of data records the file contains

    • The time stamps of the data records the file contains

    • The status of the data records

      For example, data records with error statuses can indicate a corrupt file

  3. Once you have restored the correct files, manually delete the backup files.