Version 2021
Platform Analytics Warehouse bereinigen
Es kann erforderlich sein, einige der im Platform Analytics Warehouse erfassten und gespeicherten Daten zu löschen. Wenn eine große Menge gespeicherter Daten die Leistung von Platform Analytics Consumer beeinträchtigt oder wenn Metadaten oder Projekte aus einer Umgebung gelöscht wurden, können Administratoren mit den in diesem Abschnitt aufgeführten Befehlen die zugehörigen Daten aus dem Platform Analytics Warehouse entfernen .
Die zum Löschen von Platform Analytics-Warehouse-Daten verwendeten Befehle basieren auf verschiedenen Kriterien, darunter:
- Metadaten: Sie können Daten aus bestimmten Metadaten löschen.
- Projekte: Sie können Daten aus bestimmten Projekten löschen, aber alle diese Projekte müssen in einer Metadaten enthalten sein.
- Gelöschte Objekte: Sie können die gelöschten Objekte und zugehörigen Daten bereinigen.
- Gelöschte Projekte: Sie können die gelöschten Projekte und zugehörigen Daten löschen.
- DaysToKeep: Sie können Daten löschen und nur die neuesten Daten mit der angegebenen Anzahl von Tagen behalten.
MicroStrategy stellt die folgenden gültigen Befehle zum Bereinigen von Platform Analytics Warehouse bereit:
DELETE_ALL_OBJECTS_IN_METADATA
DELETE_ALL_OBJECTS_IN_PROJECTS
DELETE_ALL_DELETED_OBJECTS
DELETE_ALL_DELETED_PROJECTS
DELETE_ALL_DELETED_OBJECTS_IN_METADATA
DELETE_ALL_DELETED_PROJECTS_IN_METADATA
DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
DELETE_ALL_FACTS
DELETE_ALL_FACTS_FROM_METADATA
DELETE_ALL_FACTS_FROM_PROJECTS
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
DELETE_ALL_OBJECTS_IN_METADATA
Dieser Befehl löscht die gesamten von Ihnen angegebenen Metadaten sowie die zugehörigen Daten, einschließlich der Metadaten in lu_metadata. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_metadata | lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_recipient lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_user_group |
etl_lu_metadata_audit_time etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_privilege_source_privilege_group rel_scope_project rel_sessionid_cordinate rel_source_privilege_source_scope rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transaction access_transaction_reprocess fact_action_security_filter fact_action_cube_cache fact_client_executions fact_machine_configuration fact_metadata_users fact_named_user fact_named_user_license fact_object_change_journal fact_object_component fact_performance_monitor fact_product_named_users_license fact_prompt_ansers fact_report_columns fact_server_cpu_license fact_sql_stats fact_step_sequence fact_usher_entity_resolved_privilege fact_usher_inbox_message fact_usher_inbox_response lu_client_session lu_session |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence historic_lu_session |
DELETE_ALL_OBJECTS_IN_PROJECTS
Dieser Befehl löscht alle Projekte, die Sie angegeben haben, und die zugehörigen Daten. Schließen Sie diese Projekte in lu_project ein. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_DELETED_OBJECTS
Dieser Befehl löscht alle gelöschten Objekte und zugehörigen Daten im gesamten pa Warehouse. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Faktentabelle |
---|---|---|---|---|---|---|
lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_error lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_user_group |
etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_scope_project rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence fact_user_entity_resolved_privilege fact_latest_cube_cache |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_DELETED_PROJECTS
Mit diesem Befehl werden alle gelöschten Projekte und zugehörigen Daten im gesamten pa Warehouse gelöscht. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
lu_object lu_security_filter lu_prompt lu_history_list_message etl_lu_folder lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats
|
DELETE_ALL_DELETED_OBJECTS_IN_METADATA
Dieser Befehl löscht alle gelöschten Objekte unter den von Ihnen angegebenen Metadaten und zugehörigen Daten. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_subscription_device lu_user_group |
etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_scope_project rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_latest_cube_cache fact_object_change_journal fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence fact_user_entity_resolved_privilege |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_DELETED_PROJECTS_IN_METADATA
Mit diesem Befehl werden alle gelöschten Projekte unter den von Ihnen angegebenen Metadaten und zugehörigen Daten gelöscht. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
Mit diesem Befehl werden alle gelöschten Objekte unter Ihren angegebenen Projekten und zugehörigen Daten gelöscht. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_FACTS
Dieser Befehl löscht alle Fakttabellen im gesamten pa Warehouse. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error rel_sessionid_coordinate |
lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence lu_session |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence historic_lu_session |
DELETE_ALL_FACTS_FROM_METADATA
Dieser Befehl löscht alle Fakttabellen in den angegebenen Metadatenlisten. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error rel_sessionid_coordinate |
lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence lu_client_session lu_session |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence historic_lu_session |
DELETE_ALL_FACTS_FROM_PROJECTS
Dieser Befehl löscht alle Fakttabellen in den angegebenen Projektlisten. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
Dieser Befehl löscht alle Fakttabellen, die von gelöschten Objekten im gesamten pa Warehouse generiert wurden. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
Dieser Befehl löscht alle Fakttabellen, die von gelöschten Projekten im gesamten pa Warehouse generiert wurden. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
Dieser Befehl löscht alle Fakttabellen, die von gelöschten Objekten in den angegebenen Metadaten generiert wurden. Die folgenden Tabellen werden gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
Dieser Befehl löscht alle Fakttabellen, die von gelöschten Projekten in den angegebenen Metadaten generiert wurden. Folgendes wird gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
Dieser Befehl löscht alle Fakttabellen, die von gelöschten Objekten in gegebenen Projektlisten generiert wurden. Folgendes wird gelöscht:
Metadata | Projekte | Konfigurationsobjekte | Andere Objekte | Projektobjekte | Fakttabellen | Nur-Postgres-Fakttabellen |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historic_access_transactions historic_fact_action_cube_cache historic_fact_action_security_filter historic_fact_object_change_journal historic_fact_prompt_answers historic_fact_report_columns historic_fact_sql_stats historic_fact_step_sequence |
Konfigurationsdatei bereinigen
Die purgeConfig.yaml Datei befindet sich in Platform Analytics conf Verzeichnis. Entkommentieren Sie einfach jeden Befehl, den Sie ausführen möchten, indem Sie das # vor jeder Zeile. Es gibt sechs Parameter, die die verschiedenen Purge-Befehle steuern:
-
doTestBeforePurge
: Der Standardwert ist true. Auf false setzen, um Tests vor der Ausführung des Befehls zu überspringen. -
commandName
: Der Name des auszuführenden Befehls. -
onlyDeletedProjects
: Auf "true" setzen, um nur gelöschte Projekte zu löschen. -
onlyDeletedObjects
: Auf "true" setzen, um nur gelöschte Objekte zu bereinigen. -
metadataList
: Standardmäßig werden Daten nur aus dem Platform Analytics-Warehousing gelöscht. Geben Sie eine Liste mit Metadaten-IDs an, um die Löschaktionen nur auf bestimmte Metadaten anzuwenden. -
projectList
: Standardmäßig werden Daten nur aus dem Platform Analytics-Warehousing gelöscht. Geben Sie eine Liste von Projekt-Guid-Werten an, um die Bereinigungsaktionen nur auf bestimmte Projekte anzuwenden. -
daysToKeep
: Wenn dieser Wert 0 ist, wird die gesamte Fakttabelle gelöscht. Angenommen, dieser Wert ist a, dann werden die Daten fabs(a) days beibehalten.
Das Folgende ist eine Beispieldatei:
#doTestBeforePurge: true
#commandsToExecute:
# - commandName: DELETE_ALL_DELETED_OBJECTS
# - commandName: DELETE_ALL_DELETED_PROJECTS
# - commandName: DELETE_ALL_OBJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# - commandName: DELETE_ALL_DELETED_OBJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# - commandName: DELETE_ALL_DELETED_PROJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# - commandName: DELETE_ALL_OBJECTS_IN_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# - commandName: DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# daysToKeep: 60
# - commandName: DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
# metadataList:
# - metadatatId
# projectList:
# - projectGuid_1
# - projectGuid_2
# daysToKeep: 60
Datenbereinigung durchführen
- Öffnen Sie ein Terminalfenster und navigieren Sie zum Ordner Platform Analytics.
-
Führen Sie das Bereinigungsskript aus:
Windows: platform-analytics-purge-warehouse.ps1
Linux: ./platform-analytics-purge-warehouse.sh
-
Wenn Sie aktiviert haben doTestBeforePurge die Bereinigungsinformationen werden angezeigt. Geben Sie Y oder N ein, um das Löschen der aufgelisteten Daten zu bestätigen oder abzubrechen.
Bereinigungsstatistiken anzeigen
Das Platform Analytics-Warehouse enthält die Tabelle purge_statistic, um die ausgeführten Bereinigungsvorgänge nachzuverfolgen. Jeder Datensatz enthält die folgenden wichtigen Informationen:
id
: Diese Spalte ist nur die ID zur Identifizierung eines Datensatzes.execute_time
: Diese Spalte gibt die Zeit in Millisekunden an, um eine SQL-Abfrage zum Auffüllen oder Löschen auszuführen.insert_ts
: Der Zeitstempel, wann die Ausführung der Abfrage abgeschlossen ist.purge_command_id
: Für jeden Purge-Befehl wird a purge_command_id , um einen Löschbefehl zu identifizieren.purge_command_name
: Der Name des aktuellen Löschbefehls.rows
: Wie viele Zeilen diese Abfrage betrifft.table_name
: Auf welche Tabelle diese Abfrage ausgewirkt hat.