Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe cómo usar las secuencias de comandos de recopilación de bases de datos para descubrir, recopilar y subir los datos de tu base de datos a Migration Center.
Migration Center usa secuencias de comandos de recopilación de código abierto disponibles en GitHub para recopilar datos. Para comprender el tipo de datos que recopila Migration Center, puedes revisar el código de las secuencias de comandos de recopilación.
Antes de comenzar
Las secuencias de comandos de recopilación de bases de datos admiten las siguientes bases de datos y versiones:
Microsoft SQL Server para Windows versiones 2008R2 (SP2) a SQL Server 2022
MySQL versión 8
Versiones 14 y 15 de PostgreSQL
Descarga y ejecuta las secuencias de comandos
Para descubrir y recopilar datos de tus bases de datos, sigue estos pasos:
Descarga la versión más reciente de las secuencias de comandos de recopilación para el tipo de base de datos que deseas descubrir:
Extrae los archivos y, luego, en la carpeta scripts/collector, abre la
carpeta de tu base de datos.
Sigue las instrucciones del archivo README para ejecutar la secuencia de comandos. Cuando termina de ejecutarse, la secuencia de comandos crea un archivo ZIP con los datos recopilados en la carpeta de salida que selecciones.
Sube los datos recopilados a Migration Center
Los archivos ZIP que crean las secuencias de comandos de recopilación contienen todas las especificaciones y los datos de rendimiento recopilados de tu base de datos.
Permisos necesarios para esta tarea
Para realizar esta tarea, debes tener los siguientes permisos:
rma.collectors.create en el proyecto
migrationcenter.sources.create en el proyecto
migrationcenter.importJobs.create en el proyecto
Para subir los archivos ZIP a Migration Center, sigue estos pasos:
Ve a la página Importación de datos.
Haz clic en Agregar datos > Subir archivos.
En la sección Configurar carga de archivos, ingresa el nombre de la carga de archivos.
En la lista Formato de archivo, selecciona Archivo de importación de base de datos.
Haz clic en Seleccionar archivos para subir y, luego, selecciona todos los archivos que desees subir.
Para subir los archivos, haz clic en Subir archivos.
Si los archivos se validan correctamente, para crear los recursos a partir de ellos, haz clic en Importar datos y, luego, en Confirmar.
Revisa la carga
Después de subir tus archivos, el Centro de migraciones los valida para verificar si son correctos de forma formal. Si la validación se realiza correctamente,
Migration Center procesa los datos para crear recursos nuevos o
actualizar los existentes. Puedes verificar el estado de tus trabajos de carga
desde la consola de Google Cloud .
Para revisar el estado de tu trabajo de carga, sigue estos pasos:
Ve a la página Importación de datos y, luego, haz clic en Subidas de archivos.
En la lista de importaciones de archivos, selecciona la carga que quieres revisar.
En la página de carga de archivos, en Progreso de la importación de datos, revisa el Estado de los archivos subidos.
Puedes ver tus archivos con uno de los siguientes estados.
Lista de estados
Completada. Se importó correctamente tu archivo.
Listo. Tu archivo pasó la validación y está listo para importarse.
Pendiente. Tu archivo está esperando a que se termine de procesar otro.
Correr. Se está procesando tu archivo.
Validación: Tu archivo está en la etapa de validación.
Validación fallida. Tu archivo contiene algunos errores. Corrige los errores y vuelve a subir el archivo.
Fallida. No se pudo importar tu archivo.
Revisa los detalles del error
Si encuentras errores después de importar tus archivos, puedes revisar
el mensaje de error directamente en la Google Cloud consola.
Para revisar los errores de tu trabajo de carga, sigue estos pasos:
Ve a la página Importación de datos y, luego, haz clic en Subidas de archivos.
Haz clic en el archivo de importación que muestra una advertencia o un error.
La página de detalles del archivo de importación muestra la lista completa de errores.
En la página de detalles del archivo de importación, puedes revisar los activos y los campos de datos que causan los errores, así como ver una descripción del error.
Los errores en el trabajo de importación de archivos pueden impedir que Migration Center cree recursos nuevos o actualice los existentes con los cambios nuevos.
Para corregir el error, edita los archivos y crea un nuevo trabajo de importación de archivos para subirlos nuevamente.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[],[],null,["# Discover and import databases\n\nThis page describes how to use the database collection scripts to discover,\ncollect, and upload your database data to Migration Center.\nMigration Center uses\n[open-source collection scripts available on GitHub](https://github.com/GoogleCloudPlatform/database-assessment)\nto collect data. To understand the type of data that Migration Center\ncollects, you can review the code of the collection scripts.\n\nBefore you begin\n----------------\n\n- The database collection scripts support the following databases and database versions:\n - Microsoft SQL Server for Windows Versions 2008R2 (SP2) to SQL Server 2022\n - MySQL version 8\n - PostgreSQL versions 14 and 15.\n\nDownload and run the scripts\n----------------------------\n\nTo discover and collect data from your databases, follow these steps:\n\n1. Download the latest version of the collection scripts for the database\n type that you want to discover:\n\n - [Download scripts for Microsoft SQL Server](https://github.com/GoogleCloudPlatform/database-assessment/releases/latest/download/db-migration-assessment-collection-scripts-sqlserver.zip).\n - [Download scripts for PostgreSQL](https://github.com/GoogleCloudPlatform/database-assessment/releases/latest/download/db-migration-assessment-collection-scripts-postgres.zip).\n - [Download scripts for MySQL](https://github.com/GoogleCloudPlatform/database-assessment/releases/latest/download/db-migration-assessment-collection-scripts-mysql.zip).\n2. Extract the files, then in the `scripts/collector` folder, open the\n folder for your database.\n\n3. Follow the instructions in the README file to run the script. When it\n finishes running, the script creates a ZIP file with the collected data\n in the output folder that you select.\n\nUpload the collected data to Migration Center\n---------------------------------------------\n\nThe ZIP files created by the collection scripts contain all the specifications\nand performance data collected from your database.\n\n#### Permissions required for this task\n\nTo perform this task, you must have the following\n[permissions](/iam/docs/overview#permissions):\n\n\n- `rma.collectors.create` on the project\n- `migrationcenter.sources.create` on the project\n- `migrationcenter.importJobs.create` on the project\n\n\u003cbr /\u003e\n\nTo upload the ZIP files to Migration Center, follow these steps:\n\n1. Go to the **Data import** page.\n2. Click **Add data \\\u003e Upload files**.\n3. In the **Set up file upload** section, enter the name of the file upload.\n4. From the **File format** list, select **Database import file**.\n5. Click **Select files to upload**, then select all the files that you want to upload.\n6. To upload the files, click **Upload files**.\n7. If the files are validated correctly, to create the assets from the files, click **Import data** , then click **Confirm**.\n\nReview the upload\n-----------------\n\nAfter you upload your files, Migration Center validates them\nto check if they are formally correct. If the validation is successful,\nMigration Center then processes the data to create new assets,\nor update existing ones. You can check the status of your upload jobs\nfrom the Google Cloud console.\n\nTo review the status of your upload job, follow these steps:\n\n1. Go to the **Data import** page, then click **File uploads**.\n2. From the list of file imports, select the upload you want to review.\n3. On the file upload page, under **Data import progress** , review the **Status** for your uploaded files.\n\nYou can see your files in one of the following statuses.\n\n### List of statuses\n\n- **Completed**. The import of your file was successful.\n- **Ready**. Your file passed validation, and is ready to be imported.\n- **Pending**. Your file is waiting for another file to finish processing.\n- **Running**. Your file is processing.\n- **Validating**. Your file is in the validation stage.\n- **Failed validation**. Your file contains some errors. Fix the errors then try to upload your file again.\n- **Failed**. Your file couldn't be imported.\n\n### Review error details\n\nIf you encounter errors after importing your files, you can review\nthe error message directly in the Google Cloud console.\n\nTo review the errors of your upload job, follow these steps:\n\n1. Go to the **Data import** page, then click **File uploads**.\n2. Click the import file that shows a warning or error. The import file details page shows the complete list of errors.\n\nOn the import file details page, you can review the assets and data fields\nthat cause the errors, and view a description of the error.\nErrors in the file import job might prevent Migration Center from\ncreating new assets or update existing ones with the new changes.\nTo fix the error, edit your files and create a new file import job to upload\nthem again.\n\nFor more information about the possible error messages, see\n[Troubleshoot file import errors](/migration-center/docs/troubleshooting/file-import-errors).\n\nWhat's next\n-----------\n\n- Learn more about [Migration Center collection methods](/migration-center/docs/start-asset-discovery#collection_methods).\n- Learn how to [manage your file uploads](/migration-center/docs/manage-file-uploads)."]]