postgres 프롬프트에서 \list를 입력하여 데이터베이스를 나열하고 소스 데이터베이스 인스턴스가 표시되는지 확인합니다.
postgres 프롬프트에서 \connect SOURCE_DB_NAME를 입력하고 메시지가 표시되면 비밀번호를 입력하여 데이터베이스 인스턴스에 연결하고 인스턴스와 연결된 테이블을 확인합니다. 프롬프트 이름이 postgres에서 SOURCE_DB_NAME으로 변경됩니다.
SOURCE_DB_NAME 프롬프트에서 \dt를 입력하여 이 인스턴스의 테이블을 확인합니다.
SOURCE_DB_NAME 프롬프트에서 이 사용자에게 인스턴스의 테이블에 있는 데이터에 액세스할 수 있는 권한을 부여하려면 GRANT alloydbexternalsync to USER;를 입력합니다. 또한 USER를 대상 데이터베이스 인스턴스에 연결하는 데 사용한 사용자 이름으로 바꿉니다.
SOURCE_DB_NAME 프롬프트에서 SELECT * from TABLE_NAME;을 입력하여 소스 데이터베이스 인스턴스의 테이블에서 복제된 정보를 확인합니다.
테이블에 올바른 정보가 표시되는지 확인합니다.
확인한 모든 항목이 예상대로 표시되면 Database Migration Service에서 데이터를 올바르게 마이그레이션한 것입니다.
[[["이해하기 쉬움","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-05-15(UTC)"],[[["This guide provides steps to verify that data has been correctly migrated from a source database instance to an AlloyDB database instance."],["The minimum verification involves checking for the existence of the database instance and its tables within the AlloyDB instance."],["Users can verify the migration by accessing the read replica of their migration job via the Google Cloud console and executing SQL commands in Cloud Shell."],["The verification process includes listing databases, connecting to the source database, viewing its tables, granting access, and selecting data from a replicated table."],["Successful verification, evidenced by expected results, confirms that the Database Migration Service has accurately transferred the data."]]],[]]