이제 Database Migration Service가 소스 데이터베이스에 연결하여 스키마를 가져옵니다.
이 프로세스는 몇 분이 소요될 수 있습니다.
객체 선택 및 변환 페이지에서 체크박스를 사용하여 PostgreSQL 구문으로 변환할 객체를 선택합니다.
한 번에 모든 객체를 변환하지 않아도 됩니다. 대신 지금은 객체를 몇 개만 선택하고 나중에
변환에 객체를 더 추가할 수 있습니다.
변환하고 계속하기를 클릭합니다.
변환 작업공간이 열립니다.
새 워크스페이스를 처음 열 때 Gemini 기반 자동 변환 기능에 액세스하도록 업그레이드할 수 있습니다.
다음 단계를 따르세요.
Gemini 자동 변환 소개 대화상자에서 워크스페이스를 업그레이드하여 새로운 환경 살펴보기 체크박스를 선택하고 계속을 클릭합니다.
Gemini로 소스 객체를 변환하시겠어요? 대화상자에서 변환을 클릭합니다.
이제 Database Migration Service에서 변환 프로세스를 다시 실행하여 결정적 변환 결과에 Gemini 기반 변환 개선사항을 적용합니다.
Gemini 자동 변환 기능에 대한 자세한 내용은
Gemini 자동 변환을 참고하세요.
기존 변환 작업공간
기존 변환 작업공간은 이전의 더 제한적인 유형의 변환 작업공간입니다. 마이그레이션에는 기존 유형의 전환 워크스페이스를 사용하지 않는 것이 좋습니다. 기존 변환 작업공간을 사용해야 하는 경우 기존 변환 작업공간을 만들고 스키마 변환하기 섹션을 펼쳐 자세한 내용을 확인하세요.
기존 변환 작업공간을 만들고 스키마 변환
기존 변환 작업공간은 Ora2Pg 구성 파일을 사용합니다.
기존 변환 작업공간을 만들기 전에 먼저 Database Migration Service 외부에서 Ora2Pg 구성을 만들어야 합니다.
자세한 내용은
기존 변환 작업공간 사용을 참고하세요.
작업공간 구성 맞춤설정 섹션을 펼치고 기존 변환 작업공간 사용 설정 체크박스를 선택합니다.
작업공간 만들고 계속하기를 클릭합니다.
소스에 연결하고 객체 변환 페이지에서 다음을 수행합니다.
소스 연결 프로필 드롭다운 메뉴에서 소스 데이터베이스의 연결 프로필을 선택합니다.
구성 파일 상자에서 찾아보기를 클릭하고 시스템 파일 선택기를 사용하여 전환 매핑 파일을 선택합니다.
파일 추가를 클릭하여 여러 전환 매핑 파일을 업로드할 수 있습니다.
구성 변환 섹션에서 스키마 가져오기 및 변환을 클릭합니다.
이제 Database Migration Service가 소스 데이터베이스에 연결하여 스키마를 가져오고 변환 매핑 파일에 정의된 규칙에 따라 대상 SQL 스키마로 변환합니다.
이 프로세스는 몇 분이 소요될 수 있습니다.
저장 후 닫기를 클릭합니다.
변환 작업공간 세부정보 페이지가 열립니다.
이제 변환된 스키마를 대상 데이터베이스에 적용할 수 있습니다. 소스 데이터베이스에 기본 키가 없는 테이블이 포함된 경우 변환된 스키마를 적용한 후 대상 데이터베이스의 변환된 테이블에 기본 키 제약 조건을 수동으로 만들어야 합니다.
자세한 내용은
기존 변환 작업공간 사용을 참고하세요.
[[["이해하기 쉬움","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-09-01(UTC)"],[[["\u003cp\u003eConversion workspaces are used to convert source database schemas and objects into a format compatible with the destination database, allowing Database Migration Service to migrate data.\u003c/p\u003e\n"],["\u003cp\u003eThere are two types of conversion workspaces: one with a built-in editor for live editing, and a legacy option that utilizes Ora2Pg for schema conversion.\u003c/p\u003e\n"],["\u003cp\u003eSetting up a conversion workspace involves defining its settings, connecting to the source database, pulling schema objects, performing source conversion, and applying the converted schema to the destination database.\u003c/p\u003e\n"],["\u003cp\u003ePrerequisites for setting up a workspace include creating a connection profile for the source Oracle database and optionally configuring an Ora2Pg file for legacy workspace.\u003c/p\u003e\n"],["\u003cp\u003eDuring the process, users can test the connection to the source database and pull schema data, and in the built-in editor, can choose between saving the conversion workspace without immediate conversion or converting the schema and code during creation.\u003c/p\u003e\n"]]],[],null,["# Create a conversion workspace and convert schema\n\nThis page shows you how to create a conversion workspace and use\nit to immediately perform deterministic code and schema conversion from Oracle\nto PostgreSQL. Before you create the workspace, make sure that you\n[create a connection profile for your source database](/database-migration/docs/oracle-to-postgresql/create-source-connection-profile).\n\nWorkspaces with the built-in editor\n-----------------------------------\n\nWhen you create an interactive conversion workspace,\nyou can upgrade it to access\n[Gemini auto-conversion](/database-migration/docs/oracle-to-postgresql/code-conversion-with-gemini#auto-conversion).\nUpgrading the workspace is possible only once,\nimmediately after you open the newly created conversion workspace.\nThis operation is described as the last step in this procedure.\n\nTo create an interactive conversion workspace and perform the schema\nconversion, do the following:\n\n1. In the Google Cloud console, go to **Conversion workspaces** .\n\n [Go to Conversion workspaces](https://console.cloud.google.com/dbmigration/conversion-workspaces)\n2. Click **Set up workspace**.\n3. On the **Create a conversion workspace** page, do the following:\n 1. Enter the name, identifier, and region for your conversion workspace.\n 2. From the **Source database engine** drop-down menu, select **Oracle**.\n 3. From the **Destination database engine** select **Cloud SQL for PostgreSQL**.\n 4. Click **Create workspace and continue**.\n4. On the **Define source and pull schema snapshot** page, do the following:\n 1. From the **Source connection profile** drop-down menu, select the connection profile for your source database.\n 2. Click **Pull schema snapshot and continue**.\n\n Database Migration Service is now connecting to the source database and retrieving your schema.\n This process can take several minutes.\n5. On the **Select and convert objects** page, use the checkboxes to select which objects you want to convert to PostgreSQL syntax.\n\n You don't have to convert all your objects in one go. Instead, you can\n select just a few objects now and\n [add more objects to the conversion](/database-migration/docs/oracle-to-postgresql/work-with-conversion-workspaces#add-source-objects) later.\n6. Click **Convert and continue** .\n\n The conversion workspace opens.\n7. When you open a new workspace for the first time, you can upgrade it to access the Gemini-powered auto-conversion feature. Do the following:\n - In the **Introducing Gemini auto-conversion** dialog, select the **Upgrade workspace to explore the new experience** checkbox, and click **Continue**.\n - In the **Convert source objects with Gemini?** dialog, click **Convert** .\n\n Database Migration Service now performs the conversion process again to\n apply Gemini-powered conversion enhancements\n on top of the deterministic conversion results.\n For more information on Gemini auto-conversion\n feature, see\n [Gemini auto-conversion](/database-migration/docs/oracle-to-postgresql/code-conversion-with-gemini#auto-conversion).\n\nLegacy conversion workspaces\n----------------------------\n\nLegacy conversion workspaces are an older, more limited type of conversion\nworkspaces. We don't recommend using the legacy type of conversion\nworkspaces for your migrations. If you need to use a legacy conversion workspace,\nexpand the **Create a legacy conversion workspace and convert schema** section\nfor more information. \n\n#### Create a legacy conversion workspace and convert schema\n\nLegacy conversion workspaces use Ora2Pg configuration files.\nBefore you create a legacy conversion workspace, make sure you first\ncreate your Ora2Pg configuration outside Database Migration Service.\nFor more information, see\n[Work with legacy conversion workspaces](/database-migration/docs/oracle-to-postgresql/legacy-conversion-workspaces).\n\n1. In the Google Cloud console, go to **Conversion workspaces** .\n\n [Go to Conversion workspaces](https://console.cloud.google.com/dbmigration/conversion-workspaces)\n2. Click **Set up workspace**.\n3. On the **Create a conversion workspace** page, do the following:\n 1. Enter the name, identifier, and region for your conversion workspace.\n 2. From the **Source database engine** drop-down menu, select **Oracle**.\n 3. From the **Destination database engine** select **Cloud SQL for PostgreSQL**.\n 4. Expand the **Customize workspace configurations** section, and select the **Enable legacy conversion workspace** checkbox.\n 5. Click **Create workspace and continue**.\n4. On the **Connect to source and convert objects** page, do the following:\n 1. From the **Source connection profile** drop-down menu, select the connection profile for your source database.\n 2. In the **Configuration file** box, click **Browse** and use\n the system file picker to select your conversion mapping file.\n\n You can upload multiple conversion mapping files by clicking\n **Add file**.\n 3. In the **Convert the configuration** section, click\n **Pull schema and convert**.\n\n Database Migration Service is now connecting to the source database,\n retrieving your schema and converting it to the destination SQL schema\n according to the rules defined in your conversion mapping file.\n This process can take several minutes.\n5. Click **Save and close** .\n\n The conversion workspace details page opens.\n\nYou can now apply the converted schema to your destination\ndatabase. If your source database includes tables that don't have primary\nkeys, you also need to manually create primary key constraints in the\nconverted tables in the destination database after you apply the converted schema.\nFor more information, see\n[Work with legacy conversion workspaces](/database-migration/docs/oracle-to-postgresql/legacy-conversion-workspaces).\n\nWhat's next\n-----------\n\nYou can now work with your conversion workspace to fix conversion issues,\nmodify your objects with the interactive editor, and apply converted schema\nto your destination database. See\n[Convert Oracle code and schema to PostgreSQL syntax](/database-migration/docs/oracle-to-postgresql/convert-sql)."]]