이 페이지에서는 데이터베이스 수집 스크립트를 사용하여 데이터베이스 데이터를 탐색, 수집하고 Migration Center에 업로드하는 방법을 설명합니다.
Migration Center는 GitHub에서 사용 가능한 오픈소스 수집 스크립트를 사용하여 데이터를 수집합니다. Migration Center가 수집하는 데이터 유형을 이해하려면 수집 스크립트의 코드를 검토하세요.
시작하기 전에
데이터베이스 수집 스크립트는 다음과 같은 데이터베이스 및 데이터베이스 버전을 지원합니다.
Windows용 Microsoft SQL Server 버전 2008R2(SP2)부터 SQL Server 2022까지
파일이 올바르게 검증된 경우 파일에서 애셋을 만들려면 데이터 가져오기를 클릭한 후 확인을 클릭합니다.
업로드 검토
파일을 업로드한 후 파일이 공식적으로 올바른지 Migration Center에서 검사합니다. 검증이 성공하면 Migration Center는 데이터를 처리하여 새 애셋을 만들거나 기존 애셋을 업데이트합니다. Google Cloud 콘솔에서 업로드 작업 상태를 확인할 수 있습니다.
업로드 작업 상태를 검토하려면 다음 단계를 수행합니다.
데이터 가져오기 페이지로 이동한 후 파일 업로드를 클릭합니다.
파일 가져오기 목록에서 검토하려는 업로드를 선택합니다.
파일 업로드 페이지의 데이터 가져오기 진행 상황에서 업로드된 파일의 상태를 검토합니다.
파일이 다음과 같은 상태 중 하나로 표시될 수 있습니다.
상태 목록
완료됨. 파일 가져오기에 성공했습니다.
준비됨. 파일 검증을 통과하여 파일을 가져올 준비가 되었습니다.
대기 중. 파일이 다른 파일의 처리가 완료될 때까지 기다리는 중입니다.
실행 중. 파일을 처리하는 중입니다.
유효성 검사 중. 파일이 검증 단계에 있습니다.
검증 실패. 파일에 오류가 있습니다. 오류를 해결한 후 파일을 다시 업로드하세요.
실패. 파일을 가져올 수 없습니다.
오류 세부정보 검토
파일을 가져온 후 오류가 발생하면 Google Cloud 콘솔에서 직접 오류 메시지를 검토할 수 있습니다.
업로드 작업 오류를 검토하려면 다음 단계를 수행합니다.
데이터 가져오기 페이지로 이동한 후 파일 업로드를 클릭합니다.
경고 또는 오류가 표시된 가져오기 파일을 클릭합니다.
가져오기 파일 세부정보 페이지에 전체 오류 목록이 표시됩니다.
가져오기 파일 세부정보 페이지에서 오류를 일으킨 애셋 및 데이터 필드를 검토하고 오류에 대한 설명을 볼 수 있습니다.
파일 가져오기 작업에 오류가 발생하면 Migration Center에서 새 애셋을 만들지 않거나 새 변경사항으로 기존 애셋을 업데이트하지 못할 수 있습니다.
오류를 해결하려면 파일을 수정하고 새 파일 가져오기 작업을 만들어 다시 업로드합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-22(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)."]]