| Ingres |
2.0 Updating Your Installation
2.1 Using Timezone Tool iizic
2.2 Using Timezone Tool iizck
2.3 New iizic and iizck Tools
2.4 Updating the Installation Timezone Files
3.0 Replacing All Timezone Files
This document explains how and when to make changes to the Ingres Timezone files using time zone changes in North America (2007) and Australia (2006) as examples.
Adjusting an Ingres installation for the revised Daylight Saving Time (DST) of North America (effective 11th March, 2007) and Western Australia (effective now) is required if the following Timezones are used. This document is relevant to all operating systems for which a supported Ingres release exists.
In our example the following Timezones have changed.
North America
alaska
atlantic
central
eastern
mountain
nwfdlnd
pacific
yukon
Western Australia
auswest
Ingres has made a new World Timezone file available that can be used to update all supported Ingres releases on all platforms. The updates can be applied to your installation by updating the Timezone files from the Timezone Data File iiworld.tz using the Ingres Timezone tool iizic. To verify the update was successful, use the Ingres Timezone tool iizck. For Hybrid Releases of Ingres either a 64bit or 32bit version of iizic is required in addition to the one included with the distribution.
The iizck Timezone tool can be used to check the current settings of the Timezone files for the Timezones that have changed, before and after any update is performed. For Hybrid Releases of Ingres either a 64bit or 32bit version of iizck is required in addition to the one included with the distribution.
If your Ingres distribution is in either of the tables below you may need to download the new 64bit or 32bit Timezone tools, iizic and iizck, for your platform.
The following Ingres Hybrid 32/64 bit Releases were not shipped with the 64bit versions of the Timezone tools until January 2007. These are available on the Ingres Download site by following the links provided.
Table 1 – Hybrid Releases
| Operating System | Ingres Release Platform String |
Ingres 2.6 gen level |
Ingres r3 ii3.0.3 |
Ingres 2006 ii9.0.4 |
|---|---|---|---|---|
| Solaris (SPARC64) | su9.us5 |
0207
0305 0604 |
Build 211 | Build 105 |
| HP-UX (PA-RISC) | hp2.us5 |
0207
0305 0604 |
Build 211 | Build 105 |
| IBM-AIX | r64.us5 |
0207
0305 0604 |
Build 211 | Build 105 |
For releases in the above table the location of the World Timezone files is $II_SYSTEM/ingres/files/zoneinfo, and the 64bit versions are located in the lp64 directory below this.
The following Ingres Hybrid 64/32 bit Releases are were not shipped with the 32bit versions of the Timezone tools until January 2007. These are available on the Ingres Download site by following the links provided.
Table 2 – Reverse Hybrid Releases
| Operating System | Ingres Release Platform String |
Ingres 2.6 gen level |
Ingres r3 ii3.0.3 |
Ingres 2006 ii9.0.4 |
|---|---|---|---|---|
| Linux (x86_64) | a64.lnx |
0305
0604 |
Build 211 | Build 105 |
| Itanium Linux | i64.lnx |
0305
0604 |
Build 211 | Build 105 |
| Itanium HP-UX | i64.hpu |
0305
0604 |
Build 211 | Build 105 |
For releases in the above table the location of the World Timezone files is $II_SYSTEM/ingres/files/zoneinfo, and the 32bit versions are located in the lp32 directory below this.
The iizic Timezone tool is used to convert the Timezone data file into the installation's Timezone files. The tool can be used to replace all of the Timezone files or, by providing an alternative directory, only specific files. Note: additional actions are required if only a select number of files are to be changed.
For platforms that are listed in Table 1 above, the 64 bit Timezone files are located in the lp64 directory under the standard location of the Timezone files. To replace these, the 64bit version of the Timezone tools must be used. These need to be run with the full path name.
E.g. $II_SYSTEM/ingres/utility/lp64/iizic
For platforms that are listed in Table 2 above, the 32 bit Timezone files are located in the lp32 directory under the standard location of the Timezone files. To replace these, the 32bit version of the Timezone tools must be used. These need to be run with the full path name.
E.g. $II_SYSTEM/ingres/utility/lp32/iizic
To replace all Timezone files
Windows - cd %II_SYSTEM%\ingres
Unix/Linux - cd $II_SYSTEM/ingres
VMS - set default II_SYSTEM:[ingres]
Create a temporary directory into which the Timezone data file (iiworld.tz) will be copied. This directory and contents can be deleted once all steps are completed.
Windows - mkdir temptz
Unix/Linux - mkdir temptz
VMS - create/directory [.TEMPTZ]
Unix/Linux platforms only. For the platforms which also have 64bit or 32bit Timezone files:
Unix - mkdir temptz/lp64
or
Unix/Linux - mkdir temptz/lp32
Place the new Timezone data file in the above directory, this will be used by all versions of the iizic Timezone tool.
Unix platforms only. For the platforms which also have 64bit or 32bit Timezone files.
Download the new Timezone tools (iizic and iizck) from the Ingres website to the required directory if they are not already present:
Download Solaris (SPARC64) tools su9.us5
Download HP-UX (PA-RISC) tools hp2.us5
Download IBM-AIX tools r64.us5
to $II_SYSTEM/ingres/utility/lp64
or
Download Linux(x86_64) tools a64.lnx
Download Linux(Itanium) tools i64.lnx
Download HP-UX(Itanium)tools i64.hpu
to $II_SYSTEM/ingres/utility/lp32
It will be necessary to set the protection on these tools if they have been downloaded. The following commands can be used to achieve this.
chmod 755 $II_SYSTEM/ingres/utility/lp64/iizck chmod 755 $II_SYSTEM/ingres/utility/lp64/iizic
or
chmod 755 $II_SYSTEM/ingres/utility/lp32/iizck chmod 755 $II_SYSTEM/ingres/utility/lp32/iizic
Shutdown the Ingres installation using ingstop, or if using the Ingres Visual Manager, then Ingres can be stopped in the normal way by clicking on the Red traffic light icon.
These are found at:
Windows - %II_SYSTEM%\ingres\files\zoneinfo\*\* Unix/Linux - $II_SYSTEM/ingres/files/zoneinfo/*/* VMS - II_SYSTEM:[ingres.files.zoneinfo...]*.;
We suggest that these files be backed up by creating an archive file:
Windows - Use Windows tools to create a zip file of the
%II_SYSTEM%\ingres\files\zoneinfo Unix/Linux - tar cvf zoneinfo.tar $II_SYSTEM/ingres/files/zoneinfo VMS - backup II_SYSTEM:[ingres.files.zoneinfo...]*.; zoneinfo.bck/sav
To update ALL Timezone files, use the iizic Timezone tool with the Timezone data file.
Windows - iizic iiworld.tz Unix/Linux - iizic iiworld.tz VMS - iizic iiworld.tz
Unix/Linux platforms only. For the platforms which also have 64bit or 32bit Timezone files:
To update ALL of the 64bit or 32bit Timezone files, use the iizic Timezone tool with the Timezone data file.
$II_SYSTEM/ingres/utility/lp64/iizic iiworld.tz
or
$II_SYSTEM/ingres/utility/lp32/iizic iiworld.tz
Using the iizck Timezone tool, confirm that the changes have been applied correctly.
The example here is for the AUSWEST Timezone changes. The same would apply for each of the changed NORTH-AMERICA (NA) Timezone files.
Windows - iizck -f %II_SYSTEM%\ingres\files\zoneinfo\astrl\auswest Unix/Linux - iizck -f $II_SYSTEM/ingres/files/zoneinfo/astrl/auswest Unix 64bit - $II_SYSTEM/ingres/utility/lp64/iizck -f $II_SYSTEM/ingres/files/zoneinfo/lp64/astrl/auswest Unix/Linux 32bit - $II_SYSTEM/ingres/utility/lp32/iizck -f $II_SYSTEM/ingres/files/zoneinfo/lp32/astrl/auswest VMS - iizck -f II_SYSTEM:[ingres.files.zoneinfo.astrl]auswest.;
Original file details:
Timezone name: <unknown>
Timezone file: /II_SYSTEM/ingres/files/zoneinfo/astrl/auswest
--------------------------------------------------------------------------
Period Begin GMT offset
(YYYY_MM_DD HH:MM) (Minute)
1974_10_27 02:00 540 WST
1975_03_02 03:00 480 WST
1983_10_30 02:00 540 WST
1984_03_04 03:00 480 WST
1991_11_17 02:00 540 WST
1992_03_01 03:00 480 WST
New file details:
Timezone name: <unknown>
Timezone file: /II_SYSTEM/ingres/files/zoneinfo/astrl/auswest
--------------------------------------------------------------------------
Period Begin GMT offset
(YYYY_MM_DD HH:MM) (Minute)
1974_10_27 02:00 540 WST
1975_03_02 03:00 480 WST
1983_10_30 02:00 540 WST
1984_03_04 03:00 480 WST
1991_11_17 02:00 540 WST
1992_03_01 03:00 480 WST
2006_12_03 02:00 540 WST
2007_03_25 03:00 480 WST
2007_10_28 02:00 540 WST
2008_03_30 03:00 480 WST
2008_10_26 02:00 540 WST
2009_03_29 03:00 480 WST
The example here is for the NORTH-AMERICA (NA) Timezone files showing only the existence of the 2007 setting for brevity.
Note: The same file differences will exist for the 64bit and 32bit versions of these files.
Windows - iizck -f %II_SYSTEM%\ingres\files\zoneinfo\na\pacific
Unix/Linux - iizck -f $II_SYSTEM/ingres/files/zoneinfo/na/pacific
VMS - iizck -f II_SYSTEM:[ingres.files.zoneinfo.na]pacific.;
Original file details: Note: A Windows command example only is shown
iizck -f c:\temp\na\pacific | grep 2007
2007_04_01 02:00 -420 PDT
2007_10_28 02:00 -480 PST
iizck -f c:\temp\na\eastern | grep 2007
2007_04_01 02:00 -240 EDT
2007_10_28 02:00 -300 EST
iizck -f c:\temp\na\alaska | grep 2007
2007_04_01 02:00 -480 AKDT
2007_10_28 02:00 -540 AKST
iizck -f c:\temp\na\central | grep 2007
2007_04_01 02:00 -300 CDT
2007_10_28 02:00 -360 CST
iizck -f c:\temp\na\mountain | grep 2007
2007_04_01 02:00 -360 MDT
2007_10_28 02:00 -420 MST
iizck -f c:\temp\na\nwfdlnd | grep 2007
2007_04_01 02:00 -150 NDT
2007_10_28 02:00 -210 NST
iizck -f c:\temp\na\yukon | grep 2007
2007_04_01 02:00 -420 YDT
2007_10_28 02:00 -480 YST
New file details:
iizck -f c:\temp\na\pacific | grep 2007
2007_03_11 02:00 -420 PDT
2007_11_04 02:00 -480 PST
iizck -f c:\temp\na\eastern | grep 2007
2007_03_11 02:00 -240 EDT
2007_11_04 02:00 -300 EST
iizck -f c:\temp\na\alaska | grep 2007
2007_03_11 02:00 -480 AKDT
2007_11_04 02:00 -540 AKST
iizck -f c:\temp\na\central | grep 2007
2007_03_11 02:00 -300 CDT
2007_11_04 02:00 -360 CST
iizck -f c:\temp\na\mountain | grep 2007
2007_03_11 02:00 -360 MDT
2007_11_04 02:00 -420 MST
iizck -f c:\temp\na\nwfdlnd | grep 2007
2007_03_11 02:00 -150 NDT
2007_11_04 02:00 -210 NST
iizck -f c:\temp\na\yukon | grep 2007
2007_03_11 02:00 -420 YDT
2007_11_04 02:00 -480 YST
Use ingstart to restart Ingres, or if using Ingres Visual Manager, then Ingres can be restarted in the normal way by clicking on the Green traffic light icon.
Delete the temporary directory and contents.
You may wish to keep this directory and the Timezone data file for reference.
Should there be a need to replace only the essential Timezone files, then using the same steps as above (Steps 1-5) and the following additional steps will allow individual Timezone files to be replaced.
Follow steps 1 to 5 above.
To write Timezone files to a separate directory structure so as not to overwrite the existing ones use the following iizic command.
iizic {\b–}d directoryname iiworld.tz
where directoryname is the full path to the directory that was created in Step 2.
Windows - iizic –d %II_SYSTEM%\ingres\temptz iiworld.tz Unix/Linux - iizic –d $II_SYSTEM/ingres/temptz iiworld.tz VMS - iizic –d II_SYSTEM:[ingres.temptz] iiworld.tz
Unix/Linux platforms only. For the platforms which also have 64bit or 32bit Timezone files.
$II_SYSTEM/ingres/utility/lp64/iizic –d directoryname64 iiworld.tz
or
$II_SYSTEM/ingres/utility/lp32/iizic –d directoryname32 iiworld.tz
where directorynameNN is the full path to an alternative 64bit/32bit directory that was created in Step 2.
Using the iizck Timezone tool, look at the files which were created.
The example here is for the AUSWEST Timezone changes. The same would apply for each of the changed NORTH-AMERICA (NA) Timezone files.
Windows - iizck -f %II_SYSTEM%\ingres\temptz\astrl\auswest Unix/Linux - iizck -f $II_SYSTEM/ingres/temptz/astrl/auswest Unix 64bit - $II_SYSTEM/ingres/utility/lp64/iizck -f $II_SYSTEM/ingres/files/zoneinfo/lp64/astrl/auswest Unix/Linux 32bit - $II_SYSTEM/ingres/utility/lp32/iizck -f $II_SYSTEM/ingres/files/zoneinfo/lp32/astrl/auswest VMS - iizck -f II_SYSTEM:[ingres.temptz.astrl]auswest.;
Change to the directoryname directory and copy the required files to the system location. Note: for the Hybrid releases of Ingres where either the 64bit or 32bit versions of the files also exist, these must also be copied, replacing the directoryname with directoryname64 and setting the appropriate target location.
To copy the North American files:
Windows - cp %II_SYSTEM%\ingres\temptz\na\* %II_SYSTEM%\ingres\files\zoneinfo\na\ Unix/Linux - cp $II_SYSTEM/ingres/temptz/na/* $II_SYSTEM/ingres/files/zoneinfo/na/ Unix 64 bit – cp $II_SYSTEM/ingres/temptz/lp64/na/* $II_SYSTEM/ingres/files/zoneinfo/lp64/na Linux/Unix 32bit - cp $II_SYSTEM/ingres/temptz/lp32/na/* $II_SYSTEM/ingres/files/zoneinfo/lp32/na/ VMS - copy II_SYSTEML[ingres.temptz.na]*.* II_SYSTEM:[ingres.files.zoneinfo.na]
To copy the changed Australian West file:
Windows - cp %II_SYSTEM%\ingres\temptz\astrl\auswest %II_SYSTEM%\ingres\files\zoneinfo\astrl\auswest Unix/Linux - cp $II_SYSTEM/ingres/temptz/astrl/auswest $II_SYSTEM/ingres/files/zoneinfo/astrl/auswest Unix 64 bit – cp $II_SYSTEM/ingres/temptz/lp64/astrl/auswest $II_SYSTEM/ingres/files/zoneinfo/lp64/astrl/auswest Linux/Unix 32bit - cp $II_SYSTEM/ingres/temptz/lp32/astrl/auswest $II_SYSTEM/ingres/files/zoneinfo/lp32/astrl/auswest VMS - copy II_SYSTEML[ingres.temptz.astrl]auswest II_SYSTEM:[ingres.files.zoneinfo.astrl]auswest.;
Use ingstart to restart Ingres, or if using Ingres Visual Manager, then Ingres can be restarted in the normal way by clicking on the green traffic light icon.
Delete the temporary directory and contents.
You may wish to keep this directory and the Timezone data file for reference.
For more information on using the iizic command to customize Timezone files, see the iizic command description in the Ingres Command Reference Guide (cmdref.pdf).