SELECT version
FROM v$timezone_file;
SELECT tz_version
FROM registry$database;
SELECT property_name, SUBSTR(property_value, 1, 30) value
FROM database_properties
WHERE property_name LIKE 'DST_%'
ORDER BY property_name;
During a database upgrade the timezone is sometimes be ugraded automatically. If you need to upgrade manually, follow these steps...
NOTE: Updating the Timezone causes a database outage.
It is recommneded to perform Timezone updates during the same outage window as database Upgrades or Patching.
mkdir -p /u01/img/timezone
scp -pr ${PATCH_SERVE}:/u01/img/timezone/DBMS_DST_scriptsV1.9.zip /u01/img/timezone
cd /u01/img/timezone
unzip DBMS_DST_scriptsV1.9.zip
cd /u01/img/timezone/DBMS_DST_scriptsV1.9
You can get an idea of the amount of work the upgrade needs to do by running...
sqlplus / as sysdba
@countstatsTSTZ.sql
Large amounts of timezone related data could slow down the upgrade... refer to 1585343.1 for tips on how to address this, if necessary.
This script needs no downtime, and can be executed on a live production database but it WILL purge the dba_recyclebin...
sqlplus / as sysdba
@upg_tzv_check.sql
NOTE: This script will automatically restart the database twice WITHOUT any confirmation or prompt
sqlplus / as sysdba
@upg_tzv_apply.sql