ORA-56920: a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state

Hi,

When you import any dump exported from old version Oracle database, you can get “ORA-56920: a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state” error because of upgrade.

 

If you didn’t complete post upgrade actions during upgrade Oracle 12c to Oracle 18c, you can get the following errors during export-import operation because of Time-zone problem.

ERROR at line 1:

ORA-56920: a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79

ORA-06512: at "SYS.DBMS_DST", line 1390

ORA-06512: at line 1

 

Solution:

Execute the following scripts to fix timezone problem.

 

SQL> update props$ set value$=0 where name='DST_SECONDARY_TT_VERSION';

1 row updated.

SQL> update props$ set value$='NONE' where name='DST_UPGRADE_STATE';

1 row updated.

SQL> commit;

Commit complete.

SQL> select * from props$ where name like 'DST%';

NAME 
-----------------------------------------
VALUE$ 
-----------------------------------------
COMMENT$ 
-----------------------------------------
DST_UPGRADE_STATE 
NONE 
State of Day Light Saving Time Upgrade 

DST_PRIMARY_TT_VERSION 
14 
Version of primary timezone data file 

DST_SECONDARY_TT_VERSION 
0 
Version of secondary timezone data file


3 rows selected.

 

 

 

 

After completed timezone update, run the following procedures.

 

SQL> exec DBMS_DST.BEGIN_PREPARE(31);
A prepare window has been successfully started.



SQL> exec dbms_dst.unload_secondary;

PL/SQL procedure successfully completed.

 

Now you can perform import operation successfully.

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *