이 페이지에서는 Gemini 지원이 Database Migration Service 변환 작업공간에서 코드 객체 변환을 가속화하는 샘플 시나리오를 설명합니다.
비용
Database Migration Service 변환 작업공간에서 Gemini 지원을 사용하려면 Gemini for Google Cloud API를 사용 설정해야 합니다.
Gemini 가격이 적용됩니다. 자세한 내용은
Google Cloud 를 위한 Gemini 가격 책정을 참고하세요.
시작하기 전에
Database Migration Service 변환 작업공간에서 Gemini 지원을 사용하려면 프로젝트에서 Google Cloud 를 사용 설정해야 합니다.
프로젝트에서 Google Cloud 에 대해 Gemini를 사용 설정하면 모든 전환 워크스페이스에 Gemini 기능이 사용 설정됩니다. 나중에 특정 워크스페이스에서
추천을 사용 중지할 수 있습니다.
워크플로 예시
이 예시 시나리오에서는 여러 코드 객체가 변환 문제를 일으키는 동일한 Oracle 함수를 사용하는 Oracle 코드와 스키마를 변환합니다.
규칙 기반 변환 엔진에서 해당 함수의 PostgreSQL 동등 항목을 찾을 수 없으므로 변환 문제를 직접 수정해야 합니다.
변환 프로세스를 가속화하기 위해 Gemini 변환 지원을 사용하여 Oracle 코드를 변경하는 방법을 알아봅니다.
SQL 코드와 스키마는 변환 작업공간을 만든 리전에 저장됩니다. Gemini 모델과 함께 지원 코드 및 스키마 변환을 사용하는 경우 코드와 스키마가 다른 지역에서 처리될 수 있습니다.
[[["이해하기 쉬움","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-08-18(UTC)"],[[["\u003cp\u003eGemini assistance in Database Migration Service conversion workspaces helps expedite the conversion of code objects by providing suggestions to resolve conversion issues.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing Gemini requires enabling the Gemini API, which applies Gemini pricing, and can later be disabled in specific workspaces.\u003c/p\u003e\n"],["\u003cp\u003eGemini learns from the applied code proposals and offers to fix similar issues in multiple objects, significantly speeding up the conversion process.\u003c/p\u003e\n"],["\u003cp\u003eThe code and schemas you use might be processed in different regions than the workspace region, and it's recommended to validate all output from Gemini for Google Cloud products before using.\u003c/p\u003e\n"],["\u003cp\u003eGemini assistance is a pre-GA feature, meaning it's subject to the "Pre-GA Offerings Terms," available "as is," and may have limited support.\u003c/p\u003e\n"]]],[],null,["# Example workflow: Fix conversion issues in all code objects with Gemini assistance\n\n| **Preview\n| --- [Gemini](/gemini/docs/overview) in Database Migration Service**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis page describes a sample scenario where Gemini assistance\nexpedites converting code objects in Database Migration Service conversion workspaces.\n\nCosts\n-----\n\nTo use Gemini assistance in Database Migration Service conversion\nworkspaces you need to enable Gemini for Google Cloud API.\nPricing for Gemini applies. For more information, see\n[Gemini for Google Cloud pricing](/products/gemini/pricing).\n\nBefore you begin\n----------------\n\nTo use Gemini assistance in Database Migration Service conversion workspaces,\nyou need to enable Gemini for Google Cloud in your project.\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=cloudaicompanion.googleapis.com)\n\n\u003cbr /\u003e\n\nAfter you enable Gemini for Google Cloud in your project,\nGemini features are enabled for all your conversion\nworkspaces. You can later\n[disable the suggestions](#disable-suggestions) in a specific workspace.\n\nExample workflow\n----------------\n\nIn this example scenario, you convert Oracle code and schema where multiple\ncode objects use the same Oracle function that causes conversion issues.\nThe rule-based conversion engine can't find a PostgreSQL equivalent\nfor that function, so you need to fix the conversion issues yourself.\nTo speed up the conversion process, you use Gemini conversion\nassistance to find out how to change the Oracle code.\n\nYour SQL code and schema are stored in the region where you create the\nconversion workspace. If you use assisted code and schema conversion with\nGemini models, your code and schemas might be processed in\nother regions.\n\nLearn [how and when Gemini\nfor Google Cloud uses your data](/gemini/docs/discover/data-governance).\n\n\u003cbr /\u003e\n\n| As an early-stage technology, Gemini for Google Cloud\n| products can generate output that seems plausible but is factually incorrect. We recommend that you\n| validate all output from Gemini for Google Cloud products before you use it.\n| For more information, see\n| [Gemini for Google Cloud and responsible AI](/gemini/docs/discover/responsible-ai).\n\nIn your Gemini-powered workflow, you follow these steps:\n\n1. You open the details pane for one of the affected objects, and select **Conversion assistant** \\\u003e **Help me fix object conversion issues**.\n\n[](#lightbox-trigger) **Figure 1.** Gemini conversion assistant prompts. (click to enlarge)\n\nThe Gemini pane opens.\n\n1. In the Gemini pane, you click **Insert suggestion**\n and then save SQL changes.\n\n2. You repeat the steps for every faulty code object.\n\n As you apply the code proposals, Gemini models learn the pattern\n and offer to add the fix to all objects with the same issue.\n The **Review suggestions from Gemini** dialog appears.\n [](#lightbox-trigger) **Figure 2.** Gemini fix issues dialog. (click to enlarge)\n3. You click **Review suggestions**, and proceed to review suggested changes.\n\n4. For each object, you click **Accept code** and exit the Gemini\n suggestions view.\n\nNow the conversion issue fix is applied to all faulty code objects in your\nworkspace."]]