Dung (Donny) Nguyen

Senior Software Engineer

Upgrading an Oracle Database on AWS RDS

Upgrading an Oracle Database on AWS RDS involves several steps. Below is a detailed guide:


1. Pre-Upgrade Checklist

  1. Review AWS Documentation: Check the AWS RDS documentation for the specific steps and supported versions for the upgrade.
  2. Verify Compatibility: Ensure that your target Oracle version is compatible with your existing version.
    • Check for any deprecated features or parameters in the new version.
  3. Backup Your Database:
    • Create a manual snapshot of your database instance for rollback in case of an issue.
    • AWS automatically creates a backup before the upgrade, but having a manual backup ensures more control.
  4. Test the Upgrade:
    • Use a test instance with a copy of your production database to simulate the upgrade process.
  5. Check Storage:
    • Ensure there’s enough free storage for the upgrade process.
  6. Understand the Downtime:
    • The upgrade involves downtime. Plan accordingly to minimize impact on your application.

2. Upgrade Process

  1. Login to AWS Management Console:
    • Navigate to the RDS Console.
  2. Select the Database Instance:
    • Find the RDS instance you want to upgrade.
  3. Modify the Instance:
    • Click on the Modify button.
    • In the “DB Engine Version” section, select the desired Oracle version from the dropdown.
  4. Choose the Maintenance Window or Immediate Upgrade:
    • Immediate Upgrade:
      • The upgrade begins as soon as you save the modifications.
    • Maintenance Window:
      • The upgrade is applied during the next scheduled maintenance window.
  5. Review Parameter Group Compatibility:
    • If you use a custom parameter group, ensure it’s compatible with the target Oracle version. Adjust as necessary.
  6. Apply the Changes:
    • Confirm your changes and save.

3. Post-Upgrade Steps

  1. Verify the Upgrade:
    • Check the instance status in the RDS console. Ensure it transitions to “available.”
  2. Test the Database:
    • Validate that your application works as expected with the upgraded database.
    • Run queries to ensure data integrity.
  3. Update the Parameter Group:
    • Modify parameters that require updates for the new Oracle version.
  4. Monitor Logs:
    • Review database logs for any errors or warnings.

4. Troubleshooting


By following these steps, you can safely upgrade your Oracle Database on AWS RDS while minimizing downtime and ensuring compatibility.