데이터베이스에는 종종 수천 개의 객체가 있을 수 있습니다. 한 번에 모두 변환하는 것은 쉽지 않을 수 있습니다. 변환 작업공간을 사용하면 변환 프로세스를 여러 단계로 나누어 변환에 새 객체를 추가하고 문제를 해결한 후 대상 데이터베이스에서 테스트할 수 있습니다.
전환 워크스페이스는 결정론적 전환 결과를 생성하거나
Gemini 자동 전환으로 이를 개선할 수 있습니다.
Gemini 자동 변환이 사용 설정된 경우 Database Migration Service는 소스 스키마를 변환할 때마다 모든 객체에 자동 변환 보강을 적용합니다. 결정론적 전환 규칙만 사용하려면 작업공간에서 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)"],[],[],null,["# Convert Oracle code and schema to PostgreSQL syntax\n\nAfter you\n[create your conversion workspace and perform the initial schema conversion](/database-migration/docs/oracle-to-postgresql/create-conversion-workspace),\nyou can fix conversion issues, modify your objects with the\ninteractive editor, and apply converted schema to your destination database.\n\nDatabases can often have thousands of objects. Converting them all in a single\nsession might be a challenging process. With conversion workspaces, you can divide\nthe conversion process into multiple phases where you add new objects to the\nconversion, fix the issues, and then test them in your destination database.\n\nConversion workspaces can produce deterministic conversion results, or enhance\nthem with\n[Gemini auto-conversion](/database-migration/docs/oracle-to-postgresql/code-conversion-with-gemini#auto-conversion).\nWhen Gemini auto-conversion is enabled, Database Migration Service\napplies auto-conversion augmentations to all your objects every time you convert\nthe source schema. If you want to use only deterministic conversion rules,\ndisable Gemini auto-conversion in your workspace.\n\nTo convert objects from your source database, 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. From the list of available conversion workspaces, select your workspace. Conversion workspace editor opens.\n\n3. Use the **Oracle** schema panel to check your source objects for conversion issues. This panel contains all the objects you pulled from your schema during [workspace creation](/database-migration/docs/oracle-to-postgresql/create-conversion-workspace).\n4. [Fix your conversion issues](/database-migration/docs/oracle-to-postgresql/work-with-conversion-workspaces#fix-conversion-issues).\n\n You can use the interactive SQL editor, upload a conversion mapping file\n to convert the object in a specific way, or utilize Gemini-powered\n conversion features.\n5. Optional: You can also use the interactive SQL editor to adjust the converted schema to better meet your needs, even if there are no conversion issues with your object. For a list of editable Oracle objects, see [Supported object types](/database-migration/docs/oracle-to-postgresql/about-conversion-workspaces).\n6. After you fix conversion issues or adjust your schema, click move_down **Convert source** . Database Migration Service now analyzes your changes and generates the updated PostgreSQL schema.\n\n You can inspect the converted schema in the\n **Cloud SQL for PostgreSQL draft** tab.\n7. Test the converted schema in your destination database. Do the following:\n 1. Click apps **Apply to destination** \\\u003e **Test**.\n 2. On the **Define destination** page, use the **Destination connection profile**\n drop-down menu to select your destination connection profile.\n 3. Click **Define and continue**.\n 4. On the **Select objects and test application** page, use the checkboxes to select which\n converted PostgreSQL schema you want to apply in your destination database.\n 5. Click **Test application**.\n\n Depending on the test results, you might need to further adjust your\n converted schema.\n8. If the schema snapshot you pulled from the source has more objects that you haven't migrated yet, add these objects to the workspace:\n 1. In the **Oracle** panel, click add **Add objects** .\n\n The object selection panel opens.\n 2. In the schema tree, use the checkboxes to select which objects you want to add to the conversion and then click **Add objects**.\n9. Repeat steps 3 through 8 until you convert all the objects that you want to migrate.\n10. When you finish converting your schema, click apps **Apply to destination** \\\u003e **Apply** .\n\n Database Migration Service now creates the schema definitions in your destination\n database.\n\nWhat's next\n-----------\n\n- Your conversion workspace is ready for migration. You can now\n [create the migration job](/database-migration/docs/oracle-to-postgresql/create-migration-job).\n\n- To get a complete, step-by-step migration walkthrough, see\n [Oracle to Cloud SQL for PostgreSQL migration guide](/database-migration/docs/oracle-to-postgresql/guide)."]]