Migrating a Database to Oracle Database 23ai with M5 (MOS 2999157.1) — Runbook
Updated: Oct 24
Environment used in this runbook:
Source: PDB SRCPDB in CDB SRCCDB, Oracle Database 19c (19.18 or later) on a big-endian platform (AIX, Solaris SPARC or HP-UX)
Target: PDB PDB1 in CDB CDB23, Oracle Database 23ai on Linux x86-64
Non-CDB source: a 19c non-CDB source works the same way (one property changes)
Same-endian moves: Linux → Linux (for example into Exadata or OCI) also work; the endian conversion simply becomes a no-op
Reference notes (My Oracle Support): 2999157.1 — M5 Cross Endian Platform Migration using Full Transportable Data Pump Export/Import and RMAN Incremental Backups (the procedure and the DBMIG.zip download used here), 2819284.1 — Data Pump Recommended Proactive Patches For 19.10 and Above, and 2471245.1 — the older V4 xttdriver.pl procedure covered in the XTTS runbook of this series.
Why M5 instead of the V4 Perl script
M5 is Oracle's current-generation cross-platform transportable-tablespace procedure. Compared with V4 it:
is a small set of bash scripts (dbmig_driver_m5.sh, impdp.sh) — no Perl, no DBMS_BACKUP_RESTORE calls;
relies only on native RMAN cross-platform backup sets: BACKUP ... TABLESPACE on the source and RESTORE ALL FOREIGN DATAFILES TO NEW FROM BACKUPSET on the target (18c syntax, enhanced in 19c). The endian conversion happens while restoring — there is no separate CONVERT step and no datafile-copy staging area;
supports multisection backups (SECTION SIZE), so a single 10 TB bigfile tablespace is backed up and restored by all channels in parallel;
supports TDE-encrypted tablespaces, a PDB or non-CDB source, a PDB target, backups taken from a physical standby, backup-set compression and Zero Data Loss Recovery Appliance as backup destination;
uses Full Transportable Export/Import (FTEX) for the metadata, so a 19c source lands directly in a 23ai PDB — migration and upgrade in one operation, no AutoUpgrade run afterwards.
Requirements that V4 did not have: 19.18 or later on both sides with the Data Pump bundle patch, Enterprise Edition, and Oracle Managed Files on the target (DB_CREATE_FILE_DEST must be set, because the restore is TO NEW).
How M5 keeps the downtime short
dbmig_driver_m5.sh L0 on the source: level-0 cross-platform backup sets of all application tablespaces while they stay read-write; the driver also writes the RMAN script that will restore them on the target.
On the target, run that script: RESTORE ALL FOREIGN DATAFILES TO NEW restores, converts and places the files as OMF datafile copies in DB_CREATE_FILE_DEST.
dbmig_driver_m5.sh L1 on the source, as often as you like: an incremental backup from the SCN recorded by the previous run, plus a generated RECOVER FOREIGN DATAFILECOPY ... FROM BACKUPSET script to roll the target copies forward. Still no downtime.
Cutover — dbmig_driver_m5.sh L1F: sets the tablespaces READ ONLY, takes the last (tiny) incremental and runs the full transportable expdp in one go.
On the target: restore the final incremental, then impdp.sh builds the import parameter file (the TRANSPORT_DATAFILES list comes straight out of the last restore log) and runs the full transportable impdp.
Downtime = step 4 + step 5. The data volume no longer matters; what matters is the number of objects the metadata export/import has to process.
Phase 0 — Planning and prerequisites
Step 0.1 — Versions, patches, edition
Shell |
# both hosts $ORACLE_HOME/OPatch/opatch lspatches | grep -i "DATAPUMP BUNDLE" # source (19c): must be present sqlplus -s / as sysdba <<< "SELECT banner_full FROM v\$version;" # source >= 19.18, target 23ai |
Why: the note requires 19.18.0 or later on the source and the target plus the Data Pump bundle patch (MOS 2819284.1 for 19c; the 23ai Release Update on the target carries the corresponding fixes — check the 23ai Data Pump proactive-patch note). Cross-platform transport is an Enterprise Edition feature on both sides.
Step 0.2 — Confirm endianness and platform
SQL |
-- run on both source and target SELECT d.platform_id, d.platform_name, tp.endian_format FROM v$database d JOIN v$transportable_platform tp ON tp.platform_id = d.platform_id; |
Why: you do not have to tell M5 the platform ID (RMAN reads it from the backup set), but you want to know whether an endian conversion is involved — it decides how long the restore phase takes.
Step 0.3 — Build the tablespace list and check it is self-contained
SQL |
-- source PDB SELECT LISTAGG(tablespace_name, ',') WITHIN GROUP (ORDER BY tablespace_name) AS ts_list FROM dba_tablespaces WHERE contents = 'PERMANENT' AND tablespace_name NOT IN ('SYSTEM','SYSAUX');
EXEC DBMS_TTS.TRANSPORT_SET_CHECK('USERS,APP_DATA,APP_IDX,APP_LOB', incl_constraints => TRUE, full_check => TRUE); SELECT * FROM transport_set_violations; -- must return no rows
SELECT tablespace_name, status FROM dba_tablespaces WHERE tablespace_name IN ('USERS','APP_DATA','APP_IDX','APP_LOB'); |
Why: because M5 uses a full transportable export, the list must contain every application tablespace — SYSTEM, SYSAUX, UNDO and TEMP are the only ones left out (their content travels as metadata). All listed tablespaces must be READ WRITE when you start; M5 puts them into read-only mode itself at cutover. Fix every violation (an index in a transported tablespace on a table in SYSTEM, a partition outside the set, objects owned by SYS) before the level-0 backup.
Step 0.4 — Source checks
SQL |
SELECT log_mode FROM v$database; -- ARCHIVELOG required ALTER DATABASE ENABLE BLOCK CHANGE TRACKING; -- CDB$ROOT; strongly recommended SELECT * FROM nls_database_parameters WHERE parameter IN ('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET'); SELECT version FROM v$timezone_file; -- target must be same or newer SELECT name, value FROM v$parameter WHERE name = 'compatible'; -- target COMPATIBLE >= source, both >= 19.0.0 SELECT username FROM dba_users WHERE password_versions IN ('10G ','10G HTTP '); -- reset these passwords ALTER SYSTEM SET streams_pool_size = 256M SCOPE=BOTH; -- Data Pump needs it; avoids ORA-04031 later |
RMAN |
RMAN> SHOW DEVICE TYPE; -- BACKUP TYPE TO BACKUPSET (or COMPRESSED BACKUPSET), never COPY |
Why: incremental backups need ARCHIVELOG; block change tracking turns each level-1 backup from a full scan into a read of changed blocks only. The database and national character sets must be the same on both sides, the target time-zone file must be the same or newer (23ai ships with a much newer one, so this is normally satisfied — if the source was patched to a newer file than the 23ai home has, patch the target home first). Users whose only password verifier is 10G cannot log in to 23ai; reset them before or right after the move. M5 generates BACKUP ... FORMAT commands that expect backup sets, so an RMAN configuration of BACKUP TYPE TO COPY breaks it.
Step 0.5 — Target preparation
SQL |
-- target CDB23 CREATE PLUGGABLE DATABASE pdb1 ADMIN USER pdbadmin IDENTIFIED BY "Pdb#Admin2026"; ALTER PLUGGABLE DATABASE pdb1 OPEN; ALTER PLUGGABLE DATABASE pdb1 SAVE STATE;
ALTER SESSION SET CONTAINER = pdb1; ALTER SYSTEM SET db_create_file_dest = '+DATA'; -- OMF is mandatory for M5 ALTER TABLESPACE users RENAME TO users_tmp; -- only if PDB1 already has a USERS tablespace ALTER DATABASE DEFAULT TABLESPACE users_tmp; CREATE TEMPORARY TABLESPACE app_temp TEMPFILE SIZE 4G AUTOEXTEND ON; -- same TEMP tablespace names as the source CREATE DIRECTORY m5_dp AS '/nfs/m5/SRCPDB/dpdump'; GRANT READ, WRITE ON DIRECTORY m5_dp TO system; |
Shell |
srvctl add service -db CDB23 -service pdb1_app -pdb PDB1 # or a static service in a non-RAC listener srvctl start service -db CDB23 -service pdb1_app |
Why: RESTORE ... TO NEW writes the converted files as OMF into DB_CREATE_FILE_DEST (+DATA or a filesystem path). A transported tablespace must not exist in the target yet — the classic clash is USERS, so rename it and swap the default tablespace back after the import. TEMP tablespaces are never transported; create them beforehand with the source names so that user definitions imported by FTEX resolve. The service is what the application (and impdp.sh) will connect to.
Step 0.6 — TDE: move the keys first (encrypted tablespaces only)
SQL |
-- source PDB (SYSKM or ADMINISTER KEY MANAGEMENT privilege) ADMINISTER KEY MANAGEMENT EXPORT ENCRYPTION KEYS WITH SECRET "M5#Transfer" TO '/nfs/m5/SRCPDB/srcpdb_keys.exp' FORCE KEYSTORE IDENTIFIED BY "Src#Keystore";
-- target PDB1 (keystore open) ADMINISTER KEY MANAGEMENT IMPORT ENCRYPTION KEYS WITH SECRET "M5#Transfer" FROM '/nfs/m5/SRCPDB/srcpdb_keys.exp' FORCE KEYSTORE IDENTIFIED BY "Tgt#Keystore" WITH BACKUP; |
Why: the target has to decrypt the foreign datafiles while it restores them. Without the source master keys the very first restore fails with ORA-28374. Do this before the level-0 restore (see the TDE runbook of this series for keystore basics), then delete the export file.
Step 0.7 — Install M5 in a shared working directory
Shell |
# ideally an NFS share mounted on BOTH hosts under the SAME path mkdir -p /nfs/m5/SRCPDB/{backup,dpdump} cd /nfs/m5/SRCPDB unzip DBMIG.zip # from MOS 2999157.1 → dbmig_driver_m5.sh, impdp.sh, cmd/dbmig_driver.properties, cmd/dbmig_ts_list.txt |
Why: the generated restore scripts contain the absolute paths of the backup pieces, and impdp.sh reads the last restore log — everything assumes the working directory looks identical on both hosts. With a shared NFS mount nothing has to be copied. Without one, keep the same path on both hosts and copy the whole working directory after every backup (or let the driver scp it — see DEST_SERVER below). The oracle user on the target must be able to read the files (same uid/gid on both hosts). The driver creates log/ and fills cmd/ at runtime; never clean the working directory between runs — it keeps the SCN for the next incremental there. If a run aborts it leaves log/rman_mig_bkp.lck behind: investigate, then remove the lock by hand.
Phase 1 — Configuration
Step 1.1 — Tablespace list
Shell |
# cmd/dbmig_ts_list.txt — one line, comma-separated, no spaces USERS,APP_DATA,APP_IDX,APP_LOB |
Step 1.2 — cmd/dbmig_driver.properties
Shell |
# --- source database --- export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=SRCCDB # the CDB instance (for RAC: this node's instance) export SRC_SCAN='@srcdb-scan:1521/srcpdb' # connect string INTO THE PDB, single quotes, leading @ export MIG_PDB=1 # 0 = non-CDB source, 1 = PDB source export PDB_NAME=SRCPDB # leave empty for a non-CDB export BKP_FROM_STDBY=0 # 1 = take the L0/L1 backups on a physical standby
# --- Data Pump (export side) --- export SOURCE_DPDMP=/nfs/m5/SRCPDB/dpdump # OS path of the directory object below export SOURCE_DPDIR=M5_DP # directory object name export SYSTEM_USR=SYSTEM # never SYS AS SYSDBA export DP_TRACE=0 export DP_PARALLEL=8 export DP_ENC_PROMPT=N # Y = ask for a dump-file encryption password
# --- RMAN --- export BKP_DEST_TYPE=DISK # SBT_TAPE for ZDLRA export BKP_DEST_PARM=/nfs/m5/SRCPDB/backup # backup piece location (channel PARMS when SBT_TAPE) export CAT_CRED= # RMAN catalog / ZDLRA connect string, if any export SECTION_SIZE=64G # multisection backups: split big datafiles across channels export CHN=8 # RMAN channels
# --- destination host (only when NOT using a shared filesystem) --- export DEST_SERVER= # e.g. tgtdb01 → driver scps backups + dump over SSH equivalence export DEST_USER=oracle export DEST_WORKDIR= export DEST_DPDMP= |
Why: SRC_SCAN is used for the expdp and the ALTER TABLESPACE ... READ ONLY statements at cutover, ORACLE_SID for the local RMAN connection. SECTION_SIZE and CHN are the two knobs that decide backup and restore speed: with 64G sections and 8 channels a 2 TB bigfile datafile is processed by all 8 channels at once. BKP_FROM_STDBY=1 moves the heavy backup I/O off the primary. Leave the whole Advanced settings block at the bottom of the file untouched.
Step 1.3 — Data Pump directory on the source
SQL |
-- source PDB CREATE OR REPLACE DIRECTORY m5_dp AS '/nfs/m5/SRCPDB/dpdump'; GRANT READ, WRITE ON DIRECTORY m5_dp TO system; ALTER PROFILE default LIMIT sessions_per_user UNLIMITED; -- if SYSTEM's profile caps sessions: PARALLEL=8 needs them |
Why: SOURCE_DPDIR must exist inside the database the driver connects to (the PDB), and its path must equal SOURCE_DPDMP. Data Pump workers count against SESSIONS_PER_USER of the SYSTEM profile.
Phase 2 — Initial level-0 backup and restore (no downtime)
Step 2.1 — Level-0 backup on the source
Shell |
# source host, as oracle, environment pointing to the 19c home cd /nfs/m5/SRCPDB # always start the driver from the working directory nohup sh dbmig_driver_m5.sh L0 > nohup_L0.out 2>&1 & tail -f log/rman_mig_bkp.log # central progress log
ls -l log/bkp_L0_* # e.g. bkp_L0_8CH_64G_SRCCDB_<timestamp>.log / .trc egrep "ORA-|RMAN-" log/bkp_L0_*.log # must be empty ls -l cmd/restore_L0_* # the restore script generated for the target |
Why: the driver reads cmd/dbmig_driver.properties relative to the current directory, backs up the listed tablespaces as cross-platform backup sets into BKP_DEST_PARM, records the checkpoint SCN for the next incremental and writes cmd/restore_L0_SRCCDB_<timestamp>.cmd. Users notice nothing.
Step 2.2 — Restore on the target
Shell |
# target host, environment pointing to the 23ai home export ORACLE_SID=CDB23 export ORACLE_PDB_SID=PDB1 # local RMAN/SQL*Plus sessions land in PDB1 cd /nfs/m5/SRCPDB # copy the working directory here first if no shared NFS rman target / cmdfile=cmd/restore_L0_SRCCDB_<timestamp>.cmd egrep "WARN-|ORA-|RMAN-" log/restore_L0_*.log # must be empty |
Why: the script allocates CHN channels and runs RESTORE ALL FOREIGN DATAFILES TO NEW FROM BACKUPSET '...'. RMAN converts the blocks to little-endian on the fly and creates OMF datafile copies in DB_CREATE_FILE_DEST of PDB1. The restore log lists the new file names — the later L1 scripts and impdp.sh are built from it, so keep every log.
Phase 3 — Roll forward (repeat until cutover day, no downtime)
Step 3.1 — Incremental backup on the source
Shell |
cd /nfs/m5/SRCPDB nohup sh dbmig_driver_m5.sh L1 > nohup_L1.out 2>&1 & egrep "ORA-|RMAN-" log/bkp_L1_*.log ls -l cmd/restore_L1_* |
Step 3.2 — Apply it on the target
Shell |
export ORACLE_SID=CDB23 ORACLE_PDB_SID=PDB1 cd /nfs/m5/SRCPDB rman target / cmdfile=cmd/restore_L1_SRCCDB_<timestamp>.cmd egrep "WARN-|ORA-|RMAN-" log/restore_L1_*.log |
Why: each L1 is an incremental from the SCN of the previous backup; the target applies it with RECOVER FOREIGN DATAFILECOPY ... FROM BACKUPSET, again converting on the fly. You may take several L1 backups before applying them, but apply the restore scripts in chronological order. Run this loop daily during the test period and every few hours on cutover day so the final incremental is small.
Phase 4 — Cutover (downtime starts)
Step 4.1 — Before pulling the trigger
Stop the application; kill remaining sessions on SRCPDB (or ALTER PLUGGABLE DATABASE srcpdb CLOSE IMMEDIATE + OPEN RESTRICTED).
Optional but useful — freeze optimizer statistics so they travel with the data (M5 excludes statistics from the export):
Oracle's published procedure sets AUDIT_TRAIL=NONE and AUDIT_SYS_OPERATIONS=FALSE (with a restart) on a 19c source for the duration of the export, and restores the old values afterwards. Traditional auditing is desupported in 23ai, so there is nothing to change on the target.
Take a fresh source backup or guaranteed restore point — the source stays untouched by M5 apart from the read-only switch, but you want a clean fallback anyway.
SQL |
-- source PDB, per application schema; the stat table lives in a transported tablespace EXEC DBMS_STATS.CREATE_STAT_TABLE('APP', 'M5_STATS', 'APP_DATA'); EXEC DBMS_STATS.EXPORT_SCHEMA_STATS('APP', 'M5_STATS', statown => 'APP'); |
Step 4.2 — Final incremental + metadata export on the source
Shell |
# run inside screen/tmux: the driver PROMPTS for the SYSTEM password cd /nfs/m5/SRCPDB sh dbmig_driver_m5.sh L1F |
The L1F run does three things in sequence: ALTER TABLESPACE ... READ ONLY for every tablespace in dbmig_ts_list.txt, the final incremental backup (cmd/restore_L1F_SRCCDB_<timestamp>.cmd), and expdp SYSTEM FULL=Y TRANSPORTABLE=ALWAYS ... into SOURCE_DPDMP (exp_SRCCDB_<timestamp>.dmp; parameter file in cmd/).
SQL |
egrep "ORA-|RMAN-" log/bkp_L1F_*.log egrep "ORA-" dpdump/exp_SRCCDB_*.log # Data Pump log; ORA-39xxx warnings must be understood |
Why: read-only first guarantees that the final incremental and the metadata describe exactly the same SCN. Applications may still read the source while the target is being finished — handy for a last comparison.
Step 4.3 — Apply the final incremental on the target
Shell |
export ORACLE_SID=CDB23 ORACLE_PDB_SID=PDB1 cd /nfs/m5/SRCPDB rman target / cmdfile=cmd/restore_L1F_SRCCDB_<timestamp>.cmd egrep "WARN-|ORA-|RMAN-" log/restore_L1F_*.log |
Step 4.4 — Full transportable import with impdp.sh
Edit the variables at the top of impdp.sh on the target:
Shell |
export ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1 export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=CDB23 export ORACLE_CONNECT_STRING=tgtdb-scan:1521/pdb1_app # connect straight INTO the PDB export DATA_PUMP_DIR=M5_DP # directory object created in Step 0.5 export DATA_PUMP_PARALLEL=8 export DATA_PUMP_TRACE=0 |
Generate and review the parameter file first, then run:
Shell |
cd /nfs/m5/SRCPDB sh impdp.sh exp_SRCCDB_<timestamp>.dmp log/restore_L1F_SRCCDB_<timestamp>.log test N cat imp_CDB23_<timestamp>_xtts.par # FULL=Y, TRANSPORTABLE, one TRANSPORT_DATAFILES entry per restored file
sh impdp.sh exp_SRCCDB_<timestamp>.dmp log/restore_L1F_SRCCDB_<timestamp>.log run N |
Arguments: the dump file name, the last RMAN restore log (restore_L1F_...), the run mode (test, run, or test-readonly / run-readonly to add TRANSPORTABLE=KEEP_READ_ONLY), and Y/N for the encryption-password prompt (match DP_ENC_PROMPT).
Why: impdp.sh parses the datafile names out of the restore log — pass the wrong log and the TRANSPORT_DATAFILES list is incomplete (ORA-39352). Do not hand-edit the generated .par file; if something must change, change the script so the file is regenerated. KEEP_READ_ONLY leaves the plugged-in files read-only so the same set can be attached to a second (test) database; for the production move use plain run. The script also creates a restore point in the target before it starts, so a failed import can be rolled back and repeated.
SQL |
egrep "ORA-" dpdump/imp_*_xtts.log # LOGFILE named in the generated .par; read every warning even when the job reports "completed successfully" |
Phase 5 — Validation and post-migration
Step 5.1 — Validate
SQL |
-- target PDB1 SELECT tablespace_name, status FROM dba_tablespaces; -- transported ones ONLINE / read-write SELECT file_name, bytes/1024/1024/1024 gb FROM dba_data_files ORDER BY 1; SELECT owner, object_type, COUNT(*) FROM dba_objects WHERE status = 'INVALID' GROUP BY owner, object_type; @?/rdbms/admin/utlrp.sql |
RMAN |
RMAN> VALIDATE TABLESPACE users, app_data, app_idx, app_lob CHECK LOGICAL; |
SQL |
-- run on source and target and diff: object counts per owner and type SELECT owner, object_type, COUNT(*) FROM dba_objects WHERE owner IN ('APP','APP_SEC') GROUP BY owner, object_type ORDER BY 1, 2; SELECT COUNT(*) FROM app.orders; -- a few row-count spot checks |
Step 5.2 — Fix-ups
SQL |
-- statistics: import the frozen ones (or gather) EXEC DBMS_STATS.UPGRADE_STAT_TABLE('APP', 'M5_STATS'); EXEC DBMS_STATS.IMPORT_SCHEMA_STATS('APP', 'M5_STATS', statown => 'APP'); EXEC DBMS_STATS.GATHER_DICTIONARY_STATS; EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
-- default tablespace back to USERS, drop the placeholder ALTER DATABASE DEFAULT TABLESPACE users; SELECT username FROM dba_users WHERE default_tablespace = 'USERS_TMP'; -- fix any, then: DROP TABLESPACE users_tmp INCLUDING CONTENTS AND DATAFILES;
-- restore point created by impdp.sh SELECT name, guarantee_flashback_database FROM v$restore_point; DROP RESTORE POINT <name>; |
Then walk through the things FTEX brings as metadata but which depend on the host: directory objects (DBA_DIRECTORIES paths), database links and their TNS aliases, network ACLs (DBA_NETWORK_ACLS), scheduler jobs and windows, external tables / BFILE paths, wallets, and 10G password versions found in Step 0.4. Copy the relevant tnsnames.ora/sqlnet.ora entries and point the application at the new service.
Step 5.3 — Protect the result, clean up
RMAN |
RMAN> BACKUP INCREMENTAL LEVEL 0 PLUGGABLE DATABASE pdb1 TAG 'POST_M5'; -- connected to CDB$ROOT (unset ORACLE_PDB_SID); first backup of the new PDB |
Re-enable whatever you changed in Step 4.1 on the source (audit parameters) if the source keeps running.
Delete the migration backup pieces and dump files from the working directory once the target is accepted; on the source, CROSSCHECK BACKUP; DELETE EXPIRED BACKUP; (or CHANGE ... UNCATALOG with a catalog) so the catalog stays clean.
Keep SRCPDB read-only for the agreed fallback period, then decommission it.
Downtime budget (typical)
Step | Duration driver |
Read-only switch + final incremental (L1F, part 1) | minutes — proportional to changes since the last L1 |
Full transportable expdp (L1F, part 2) | minutes to ~1 h — number of objects, not data size |
Restore final incremental on target | minutes |
impdp.sh run | metadata import; 10 min – 1 h+ for hundreds of thousands of objects |
Validation + fix-ups | 15–30 min |
Rehearse the whole cycle on a test target first (run-readonly lets you plug the same files into a test PDB) — the timings you measure there are the ones you announce.
Checklist
☐ Source and target 19.18+ / 23ai with Data Pump bundle patch, Enterprise Edition
☐ ARCHIVELOG, block change tracking, RMAN BACKUP TYPE TO BACKUPSET on the source
☐ Same character sets; target time-zone file same or newer; target COMPATIBLE ≥ source
☐ dbmig_ts_list.txt = all non-system permanent tablespaces, all READ WRITE, no transport-set violations
☐ Target PDB: DB_CREATE_FILE_DEST set, no clashing tablespace names, TEMP tablespaces created, directory + service
☐ TDE keys exported/imported before the L0 restore
☐ Working directory on a shared mount (or identical path on both hosts)
☐ Properties file reviewed: SRC_SCAN, MIG_PDB/PDB_NAME, SECTION_SIZE, CHN, DP_PARALLEL
☐ L0 restored, at least one L1 applied, logs clean
☐ Cutover rehearsed on a test PDB; downtime measured
☐ Post-import: stats, default tablespace, restore point, host-dependent objects, first backup
Common errors
Error | Cause / fix |
Driver exits immediately, rman_mig_bkp.lck exists | previous run aborted; check log/rman_mig_bkp.log, fix, remove the lock file |
ORA-19870 / ORA-19505 / ORA-27037 during restore | backup piece path from the restore script does not exist on the target — working directory not at the same path, or files not copied / not readable |
ORA-28374: typed master key not found in wallet | encrypted tablespace and the source keys were not imported into the target keystore (Step 0.6) |
ORA-39187: The transportable set is not self-contained | transport-set violations; fix objects and rerun L1F after the set is clean |
ORA-39352: Wrong number of TRANSPORT_DATAFILES specified | wrong or stale restore log passed to impdp.sh; always use the restore_L1F_* log |
ORA-29349: tablespace 'USERS' already exists | target PDB still has a tablespace with a transported name; rename/drop it and rerun the import |
ORA-39405: ... TSTZ version | target time-zone file older than the source's; patch the target home / DBMS_DST upgrade, then import |
ORA-31684: Object type USER:"..." already exists | user pre-exists in the target (e.g. common users); usually harmless, verify grants |
ORA-04031 in the Data Pump job | STREAMS_POOL_SIZE too small on the source (export) or target (import) |
L1F stops with ORA-01652 on TEMP | full transportable export needs temp space in the source; enlarge TEMP before cutover |
Comments