Sunday, July 17, 2016

How to migrate from 10g to 12c via data pump on same server?

How to migrate from 10g to 12c via data pump on same server?

High level steps are as follows:

For 10.2.0.2 to 12c is via data pump on same server, (assuming database is low in size) following are  the steps I can think of at this moment

Pre-Migration Steps:

  1. Download 12c on the database server
  2. Extract 12c software
  3. Create directory for 12c home
  4. Install 12c on new database home
  5. Create a new database in 12c
  6. Get all tablespace and their sizes from 10g database
  7. Create all tablespace with the appropriate sizes in 12c database that you just created.
  8. Get a downtime

Migration (during downtime):

  1. Stop listener
  2. Shutdown database
  3. Startup restrict
  4. Take full export via data pump from 10g
  5. Import via data pump in 12c
  6. While import is going on, copy the contents from old listener.ora to new 12c listener.ora file
  7. While import is going on, copy the contents from old tnsnames.ora to new 12c tnsnames.ora file
  8. When import is done, run utlrp.sql