Following Error Occur when try to import oralce export backup using impdp utility
ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 43 into a target database with TSTZ version 32Cause
Identified that the DST (Daylight Saving Time) versions between the source and target databases are different
Source
SQL> SELECT version FROM v$timezone_file; Version ---------- 43Target
SQL> SELECT version FROM v$timezone_file; Version ---------- 32
Solution
Method-1
Method-2
Method-3
Re-export from source with compatibility version parameter
expdp system/managerd directory=dump full=Y dumpfile=expdp_full_prod.dmp logfile=expdp_full_prod.log version=19.0.0
Upgrade target DB to same TSTZ version
Applying the DSTv43 update for the Oracle Database (Doc ID 3002390.1)
Workaround Steps to Overcome the Import Error
Prepare impdp command with job_name option
Create and execute a script in another terminal that runs in an infinite loop as follows
Linux
execute impdp command which prepared in step-1
Once the import job has been succesfully completed, Terminate the script which run as infinite to updating the master table
impdp system/manager directory=dump dumpfile=expdp_full_prod.dmp logfile=eimpdp_full_prod.log job_name=impdp_tzchange
$ cat tz.sh export ORACLE_SID=TEST while true do sqlplus / as sysdba <<EOF update sys.IMPDP_TZCHANGE set property = 43 where property = 32; commit; EOF done
$ ./tz.shWindows
D:\backup> type tz_update.sql update sys.IMPDP_TZCHANGE set property = 43 where property = 32; commit; exit;
D:\backup> type tz_loop.bat @echo off :loop sqlplus / as sysdba @tz_update.sql goto loop
D:\backup> tz_loop.bat
No comments:
Post a Comment