Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Der Database Migration Service verwendet Cloud Logging. Sie können auf zwei Protokollkategorien zugreifen, um detaillierte Informationen zu Ereignissen zu erhalten, die im Zusammenhang mit Ihren Migrationsjobs auftreten: Database Migration Service-Protokolle und die Protokolle der Cloud SQL for PostgreSQL-Zieldatenbank.
Jeder Logeintrag enthält ein jsonPayload.textMessage-Feld mit einer Beschreibung, damit Sie das Ereignis besser nachvollziehen können. Es gibt verschiedene Arten von Nachrichten, z. B.:
Beispiel für Log-Nachrichten für die Ressource datamigration.googleapis.com/MigrationJob
Log-Textnachricht
Beschreibung
FULL DUMP read is completed for table: {SCHEMA_TABLE_NAME}
Diese Meldung bedeutet, dass Database Migration Service das Lesen bestimmter Tabellendaten in Ihrer Quelldatenbank für die Phase des vollständigen Dumps abgeschlossen hat.
Diese Meldung weist darauf hin, dass die Phase des vollständigen Exports für die Tabelle sich in einem fortgeschrittenen Stadium befindet und wahrscheinlich bald abgeschlossen wird.
Successfully loaded {NUMBER} FULL DUMP rows into table: {SCHEMA_TABLE_NAME}
Diese Meldung bedeutet, dass Database Migration Service während der Phase des vollständigen Dumps einen Batch von Zeilen in eine bestimmte Tabelle in Ihrer Zielinstanz geschrieben hat.
Successfully applied {NUMBER} CDC rows into table: {SCHEMA_TABLE_NAME}
Diese Meldung bedeutet, dass der Database Migration Service während der CDC-Phase einen Batch von Zeilen in eine bestimmte Tabelle in Ihrer Zielinstanz geschrieben hat.
Accessing data of table: {SCHEMA_TABLE_NAME} for data processing purpose
Wenn Sie
einen CMEK für Ihren Migrationsjob verwenden, weist diese Meldung darauf hin, dass der Database Migration Service auf den Verschlüsselungsschlüssel zugegriffen hat, um Daten für eine bestimmte Tabelle zu verarbeiten.
Cloud SQL for PostgreSQL-Instanzlogs
Cloud SQL for PostgreSQL stellt auch Logeinträge für Ihre Zielinstanz bereit.
Weitere Informationen finden Sie in der
Cloud SQL-Logreferenz in der Cloud Logging-Dokumentation.
Logs ansehen und abfragen
So rufen Sie Ihre Logs auf:
Rufen Sie in der Google Cloud Console die Seite Migrationsjobs auf.
Klicken Sie auf dem Tab Jobs auf den Anzeigenamen des Migrationsjobs, für den Sie Logs aufrufen möchten.
Die Seite mit den Details zum Migrationsjob wird geöffnet.
Klicken Sie auf der Seite mit den Migrationsjobdetails auf Logs ansehen und führen Sie einen der folgenden Schritte aus:
Wenn Sie Logs zu Migrationsjobs aufrufen möchten, wählen Sie Logs zu Migrationsjobs aus.
Wenn Sie Logs für Ihre Cloud SQL for PostgreSQL-Zielinstanz aufrufen möchten, wählen Sie Logs der Zielinstanz aus.
Die Seite Log-Explorer wird geöffnet.
Auf der Seite Log-Explorer können Sie die Drop-down-Menüs verwenden, um die Abfrage zu ändern und Logeinträge zu filtern. Wenn Sie beispielsweise Migrationsjob-Logs nach Ereignissen filtern möchten, bei denen der Database Migration Service auf eine bestimmte Tabelle in Ihrer Quelldatenbank zugegriffen hat, können Sie eine Abfrage ähnlich der folgenden verwenden:
resource.type="datamigration.googleapis.com/MigrationJob"
resource.labels.migration_job_id="MIGRATION_JOB_ID"
jsonPayload.textMessage:"Accessing data of table"
Eine detaillierte Referenz dazu, welche Felder in den Logeinträgen von Database Migration Service unterstützt werden, finden Sie unter
Referenz zu Database Migration Service-Logs.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-01 (UTC)."],[[["\u003cp\u003eDatabase Migration Service uses Cloud Logging to provide detailed information on migration job events, accessible through two log categories: Database Migration Service logs and destination Cloud SQL for PostgreSQL logs.\u003c/p\u003e\n"],["\u003cp\u003eDatabase Migration Service logs offer structured logs for MigrationJob, ConnectionProfile, and PrivateConnection resources, representing real-world events with descriptions in the \u003ccode\u003ejsonPayload.textMessage\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud SQL for PostgreSQL logs provide information related to the destination instance and are viewable via the Cloud SQL logs reference.\u003c/p\u003e\n"],["\u003cp\u003eLogs can be accessed and viewed by navigating to the Migration jobs page in the Google Cloud console, selecting a specific migration job, and then clicking "View logs" to choose either "Migration job logs" or "Destination instance logs".\u003c/p\u003e\n"],["\u003cp\u003eThe Logs Explorer allows users to filter logs by message content, enabling focused analysis, such as filtering for events where Database Migration Service accesses a specific table.\u003c/p\u003e\n"]]],[],null,["# Logging\n\nDatabase Migration Service uses Cloud Logging. You can access two log categories to\nacquire detailed information on events that occur with relation to your migration\njobs: Database Migration Service logs, and the destination Cloud SQL for PostgreSQL logs.\n\nDatabase Migration Service logs\n-------------------------------\n\nDatabase Migration Service for Oracle to Cloud SQL for PostgreSQL provides\n[structured logs](/logging/docs/structured-logging#structured_logging_special_fields) for the\n[`datamigration.googleapis.com/MigrationJob`](/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs#resource:-migrationjob),\n[`datamigration.googleapis.com/ConnectionProfile`](/database-migration/docs/reference/rest/v1/projects.locations.connectionProfiles),\nand\n[`datamigration.googleapis.com/PrivateConnection`](/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)\nresources.\nThese logs represent real-world events, such as when a migration job is created,\nwhen Database Migration Service reads information from your source database,\nor when a connection profile is edited.\n\nEach log entry contains a `jsonPayload.textMessage` field with a description to\nhelp you better understand the event. There are different types of messages,\nfor example:\n\nCloud SQL for PostgreSQL instance logs\n--------------------------------------\n\nCloud SQL for PostgreSQL also provides log entries for your destination instance.\nSee the\n[Cloud SQL logs reference](/logging/docs/api/platform-logs#cloud_sql) in the Cloud Logging documentation.\n\nView and query logs\n-------------------\n\nTo view your logs, perform the following:\n\n1. In the Google Cloud console, go to the **Migration jobs** page.\n\n [Go to Migration jobs](https://console.cloud.google.com/dbmigration/migrations)\n2. In the **Jobs** tab, click the display name of the migration job for which you want to view logs.\n\n The migration job details page opens.\n3. On the migration job details page, click **View logs** and perform one of the following:\n - To view migration job logs, select **Migration job logs**.\n - To view logs for your Cloud SQL for PostgreSQL destination instance, select **Destination instance logs**.\n\n The **Logs Explorer** page opens.\n4. On the **Logs Explorer** page, you can use the drop-down menus to modify the query and filter log entries. For example, to filter migration job logs for events where Database Migration Service accessed a specific table in your source database, you can use a query similar to the following: \n\n ```bash\n resource.type=\"datamigration.googleapis.com/MigrationJob\"\n resource.labels.migration_job_id=\"\u003cvar translate=\"no\"\u003eMIGRATION_JOB_ID\u003c/var\u003e\"\n jsonPayload.textMessage:\"Accessing data of table\"\n ```\n\nWhat's next\n-----------\n\n- For more information on using Logs Explorer, see\n [View logs by using Logs Explorer](/logging/docs/view/logs-explorer-interface).\n\n- For a detailed reference of what fields are supported in Database Migration Service\n log entries, see\n [Database Migration Service logs reference](/logging/docs/api/platform-logs#cloud_database_migration_service).\n\n- To get a complete, step-by-step migration walkthrough, see\n [Oracle to Cloud SQL for PostgreSQL migration guide](/database-migration/docs/oracle-to-postgresql/guide)."]]