Using an alias for an accelerator
Before you begin
About this task
Defining an accelerator alias enables you to map a logical name (alias) to a physical accelerator name that is used in a specific subsystem. A Db2 application can then use that alias, which points to an accelerator in that subsystem. You can also set up multiple aliases to point to the same accelerator, if needed.
Procedure
To create an alias for an accelerator:
INSERT INTO SYSIBM.LOCATIONS (LOCATION, LINKNAME, DBALIAS)
VALUES ('logical_system_accel_name', 'DSNACCELERATORALIAS',
'physical_system_accel_name')
- logical_system_accel_name
- Is the name of an accelerator in another Db2 subsystem, typically a production subsystem,
where the accelerator is defined. A logical name is used only when you issue a CREATE TABLE...IN
ACCELERATOR accel_name statement.
To ensure compatibility with the CURRENT ACCELERATOR special register and the ACCELERATOR bind options, logical names must not exceed eight characters and must consist of the characters A-Z and 0-9.
For example, if the name of the accelerator on your production system is PACCEL, and the name of the accelerator on your test system is TACCEL, create an alias in SYSIBM.LOCATIONS on your test system in which LOCATION = 'PACCEL' and DBALIAS= 'TACCEL'. By doing so, when you port an application that uses accelerator-only tables from your test environment to your production environment, the DDL will not need to be changed.
- physical_system_accel_name
- Is the real name of an accelerator or accelerators in this Db2 subsystem.
To specify multiple physical accelerators to be represented by an alias, separate each accelerator name with a blank space. You can specify a maximum of 14 accelerator names. Accelerator names must not exceed eight characters and must consist of the characters A-Z and 0-9.
Results
When Db2 processes the CREATE TABLE...IN ACCELERATOR logical_system_accel_name clause, Db2 first looks for the accelerator named logical_system_accel_name in that same subsystem. If an accelerator with that name does not exist in that subsystem, Db2 checks the SYSIBM.LOCATION table for the corresponding DSNACCELERATORALIAS value, which identifies the physical accelerator name in the that subsystem.