Best practice for database uprades pertaining to SQL Plan Control.
I have general question regarding existing SQLProfiles and SQL Baselines as they pertain to database migrations to new releases.
We are migrating some application schemas from Oracle release 11.2.0.4 to a 12.2.0.1 database with a new character set. The existing 11.2.0.4 database has 100 enabled SQL profiles. These profiles were created as early at 2008 with the most current being 2015. My question is about a best practice for the migration.
I see two strategies.
1. Migrate all of the 100 SQL profiles created at various earlier releases of Oracle to the new release and start regression testing.
2. Migrate no stale SQL profiles, and instead, test for regression in the new release in a test database. If there is any SQL regression, run the Tuner or Access Advisor to tune the SQL in 12.2. If all fails to improve the performance, and an old SQL Profile exists in a back release, migrate the one old SQL Profile to the database and test again.