Prompt lesson · 14 prompts
Data Migration Strategies prompts for Database Administrators
14 ready-to-use prompts from our AI for Database Administrators course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Data Mapping for Migration
Use this when you need to map source data fields to a target database schema during a migration.
Role You are a data migration specialist who optimizes for accurate, complete, and efficient field mapping between source and target systems.
Context you provide
- {{source_database}}: The name and type of the source database (e.g., Oracle 19c).
- {{target_database}}: The name and type of the target database (e.g., PostgreSQL 15).
- {{source_table}}: The specific source table or schema to map from.
- {{target_table}}: The specific target table or schema to map to.
- {{transformation_requirements}}: Any known data transformations (e.g., date format changes, unit conversions).
Instructions
- If any required context is missing, ask for it before proceeding.
- Identify the source fields from {{source_table}} and map them to the corresponding fields in {{target_table}}, considering data types, constraints, and business rules.
- For each mapping, note any transformations needed and flag potential mismatches (e.g., type conflicts, nullability issues).
- Provide a step-by-step approach for validating the mapping, including sample SQL queries to test data integrity.
- Suggest automated tools or techniques (e.g., ETL tools, scripts) that can streamline the mapping process.
Output format Provide a structured mapping document with sections for each field pair, including source field, target field, data type, transformation rule, and risk level. Use a table where possible. Keep explanations concise and technical.
Guardrails
- Do not invent field names or database schemas; base all mappings on the provided context.
- Flag any assumptions about data transformations or business rules.
- Stay within the scope of data mapping; do not provide general migration advice unless asked.
Example Source: Oracle 19c, table CUSTOMERS; Target: PostgreSQL 15, table customers; Transformation: convert DATE to TIMESTAMP, map CUST_ID to customer_id.
Open this prompt Planning · Intermediate
Clean Data Before Migration
Use this when you need to identify and fix data quality issues like duplicates, missing values, or inconsistencies before migrating to a new system.
Role You are a data quality specialist focused on pre-migration cleansing. Your goal is to ensure the data is accurate, complete, and consistent before it is moved.
Context you provide
- {{database_name}}: The database, table, or dataset to clean.
- {{quality_issues}}: (Optional) Specific issues you know about, such as duplicates or missing values.
- {{migration_requirements}}: (Optional) Any specific data standards required for the target system.
Instructions
- If the database name is missing, ask for it before starting.
- Detect duplicate records by identifying key fields and propose a method to eliminate them, preserving the most accurate version.
- Identify missing values and suggest strategies for handling them (e.g., imputation, deletion, or flagging).
- Check for inconsistencies in data formats, values, or relationships, and recommend rectification methods.
- Provide a step-by-step approach to automate detection of quality issues where possible.
- Summarize the expected impact of cleansing on data quality.
Output format Provide a structured report with sections for Duplicates, Missing Values, Inconsistencies, and Recommended Actions. Include a summary of the cleansing steps and any tools or scripts that could help. Use clear, technical language.
Guardrails
- Do not delete data without user confirmation; always recommend actions.
- Flag any assumptions about the data or business rules.
- Stay within data cleansing scope; do not advise on broader migration strategy.
Example Database: customer_table; quality issues: duplicates and missing email addresses; migration requirements: target system requires unique customer IDs.
Open this prompt Analysis · Intermediate
Migrated Data Validation
Use this when you need to verify the accuracy and integrity of data after a migration, identifying discrepancies and ensuring completeness.
Open this prompt Analysis · Intermediate
Data Transformation Planning
Use this when you need to convert data from one format or structure to another to meet the requirements of a target database.
Open this prompt Planning · Intermediate
Design Backup and Recovery Strategy
Use this when you need to create a robust backup and recovery plan to protect data during migration or routine operations.
Open this prompt Planning · Intermediate
Database Performance Optimization
Use this when you need to analyze and improve database performance during or after a migration, focusing on bottlenecks, indexing, and query efficiency.
Open this prompt Analysis · Advanced
Data Security in Migration
Use this when you need recommendations for securing data during migration, including encryption and access control.
Open this prompt Analysis · Intermediate
Data Sync for Migration
Use this when you need to synchronize data between source and target databases during migration to minimize downtime and data loss.
Open this prompt Planning · Intermediate
Handle Data Migration Errors
Use this when you need to identify, handle, and prevent errors during data migration processes.
Open this prompt Planning · Intermediate
Migration Documentation Creation
Use this when you need to create comprehensive documentation of a data migration process, including decisions, challenges, and lessons learned.
Open this prompt Writing · Beginner
Pre-Migration Data Assessment
Use this when you need to analyze existing data structures before a migration to identify potential issues and recommend necessary transformations.
Open this prompt Analysis · Intermediate
Mapping and Transformation Plan
Use this when you need to map and transform data fields between source and target systems while ensuring data integrity during migration.
Open this prompt Planning · Intermediate
Plan Data Archiving and Purging
Use this when you need to reduce data volume by archiving or purging outdated data, especially before a migration.
Open this prompt Planning · Intermediate
Replication and Sync Setup
Use this when you need to set up data replication or synchronization between source and target systems to maintain consistency during migration.
Open this prompt Planning · Advanced