dpdbadmin partitionaudittables
  • 08 Jan 2025
  • 2 Minutes à lire
  • Sombre
    Lumière
  • PDF

dpdbadmin partitionaudittables

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

The dpdbadmin partitionaudittables command is used to partition the existing audit tables (vdsAuditMsg, vdsAuditMsgField). Instead of having all audit data in one big table, it is split up into smaller subsets (partitions). Each partition contains the data for a specified time range (specified with ‑range). This can improve database performance for queries and delete operations.

If you run this command, all historical audit data is split into respective partitions. If you already have a lot of audit data, this can take some time to complete. It is recommended to run this command right after a fresh installation, after audit data has been cleared and optimized, or during a database maintenance window to ensure sufficient downtime.

When you have created the partitions for the existing data on a daily basis, you should run the dpdbadmin scheduleauditpartitioning command to ensure that partitions are created for future data (see dpdbadmin scheduleauditpartitioning).

This command is only supported for MariaDB.

Syntax

dpdbadmin partitionaudittables –d dsn [OPTION]...

where dsn is the ODBC data source name.

Command-line options

Table: dpdbadmin partitionaudittables command-line options
OptionParameterDescription
‑d, ‑dsndsnRequired. ODBC data source name (DSN), e.g. "IAS embedded database".
‑force Usually the command will not re-create the partitions if they already exist, because partitioning is a costly operation. This option forces the command to re-create the partitions, even if they already exist. This can be useful to fill any gaps and create missing partitions, e.g. because no partition procedure has been scheduled at some point.
‑h, ‑help Show help and usage information.
‑l, ‑loglogfileWrite output to logfile.
‑p, ‑passworddbpassword

Optional. Password of the database administrator.

This option can be omitted if the database administrator account has a blank password.

‑q Quiet mode. Do not output commentary text.
‑r, ‑rangerange

Optional. Specifies the time range to use for one partition.

Possible values:

  • daily. Create a partition per day.
  • monthly. Create a partition per month. At the maximum 12 partitions in total will be kept at any time. If there are 12 partitions and a new one is needed, the partition with the oldest data will be re-used.

Default value: daily

‑synctimeouttimeoutThe timeout in seconds to synchronize with other dpdbadmin instances.
‑u, ‑userdbusernameOptional. User name of a database administrator (if required).
‑unlockdb Unlock a database synchronization lock used to protect the database schema against concurrent schema modifications.
‑v, ‑verbose Print verbose output. Can be specified twice to be more verbose.

Exit codes

Table: dpdbadmin partitionaudittables exit codes
Exit codeDescription
0The command completed successfully.
1The command has been aborted by the user.
2The command failed due to an unspecified error.
3The specified parameters are invalid.
4The command failed due to an error.
5The database authentication failed.

Examples

To partition the existing audit tables in the database connected to using the data source name IAS embedded database and the user credentials digipass and digipassword type:

dpdbadmin partitionaudittables –u digipass –p digipassword –d "IAS embedded database"

Additional considerations

  • The OneSpan Authentication Server Installation Wizard prompts you whether you want to create partitions during initial configuration. If you do not consent, you can run dpdbadmin partitionaudittables any time later.
  • You can remove the partitions and merge the data back into one big table again using the dpdbadmin removeauditpartitioning command (see dpdbadmin removeauditpartitioning).
  • Partitioning can improve database performance for queries and delete operations. At the same time, a lot of partitions put more load on the database server, so you need to provide enough database resources. If you are the database administrator, you should plan to mitigate this issue as part of your routine database maintenance and clean up audit data regularly. For more information about archiving and deleting audit data, refer to the OneSpan Authentication Server Administrator Guide, Section "Auditing".

Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle