-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transporter: schema feedback #5883
Closed
gvasquezvargas
wants to merge
3
commits into
docs/transporter/ba-preview
from
transporter/schema_feedback
Closed
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 36 additions & 2 deletions
38
product_docs/docs/transporter/ba_preview/getting_started/prepare_schema.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
--- | ||
title: "Preparing schema" | ||
title: "Preparing your schema" | ||
--- | ||
|
||
Use [EDB Migration Portal](https://www.enterprisedb.com/docs/migration_portal/latest/) to assess Oracle database sources for schema compatibility before starting the data migration process. Address incompatible schemas or exclude them from the migration and migrate the schema to the new database **without applying constraints**. | ||
Before you configure a Transporter migration, you must prepare your schema. Your schema's `table` objects and some `constraints` must be prepared before the Transporter migration takes place, whereas others must be applied [after the migration is completed](apply_constraints). | ||
|
||
## Prerequisite | ||
|
||
You created a schema in the target database with the same name as the schema in the source database. | ||
|
||
## Prepare your table objects | ||
|
||
1. Use any of EDB's supported [asessment and migration tools](#assessment-and-migration-tools) to ensure your `table` objects are compatible with Postgres. If there are incompatibilities, [Migration Portal](/migration_portal/latest/03_mp_using_portal/03_mp_quick_start/) can help you convert them. | ||
|
||
1. Connect to the target database and create `table` objects with the Postgres-compatible syntax. | ||
|
||
## Prepare your constraints | ||
|
||
### Primary Key and Unique constraints | ||
|
||
Ensure you create **Primary Key** and **Unique** constraints in the target Postgres database before performing the Transporter migration. This ensures that the migration can validate and carry them over to the target database and doesn't present any errors. | ||
|
||
1. Use any of EDB's supported [asessment and migration tools](#assessment-and-migration-tools) to ensure your `constraints` are compatible with Postgres. If there are incompatibilities, [Migration Portal](/migration_portal/latest/03_mp_using_portal/03_mp_quick_start/) can help you convert them. | ||
|
||
1. Connect to the target database and create ONLY **Public Key** and **Unique** constraints with the Postgres-compatible syntax. Other constraint types must be applied after you complete the migration with EDB Transporter. | ||
|
||
### Other constraints | ||
|
||
Keep track of the constraints you excluded (all constraints that are not of the type **Primary Key**, or **Unique**) to ensure you [re-apply them](apply_constraints) after the migration is completed. | ||
|
||
## Assessment and migration tools | ||
|
||
These tools can help you convert query statements (DDL files) to Postgres. | ||
|
||
- You can use [EDB Migration Portal](/migration_portal/latest/03_mp_using_portal/03_mp_quick_start/) to assess your schemas, convert incompatible statements, and generate export files with Postgres-compatible statements. Use the converted statements to create `tables` and `constraints`. | ||
|
||
- You can use [EDB Migration Toolkit](/migration_toolkit/latest/07_invoking_mtk/) to generate export files that contain a list of compatible and converted statements. The export excludes incompatible statements. Use the converted statements to create `tables` and `constraints`. | ||
|
||
- You can manually create and populate your schema with tables and constraints. Ensure the table and constraint statements are compatible with Postgres. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.