To upgrade to Teradata release V2R5 and above, you can
recreate your entire Teradata wrapper configuration of servers, user
mappings, type mappings, function mappings, and nicknames.
About this task
If you already use the Teradata wrapper, you can upgrade
to Teradata release V2R5 and above by modifying your existing Teradata
wrapper configuration or by recreating your entire Teradata wrapper
configuration of servers, user mappings, type mappings, function mappings,
and nicknames.
To recreate your entire Teradata wrapper configuration:
Procedure
-
Use the db2look command to get the correct syntax for each data source
configuration statement.
The db2look command generates DDL statements from the metadata in the
Db2®
catalog.
- In the db2look command output file,
make the following modifications:
- Change all references to the Teradata product version
to the required release for all server objects.
- For AIX®: update all CREATE
WRAPPER statements for the Teradata wrapper by setting the DB2_FENCED wrapper option. For
example:
CREATE WRAPPER teradata OPTIONS (DB2_FENCED 'Y')
- Drop the Teradata wrapper.
When you drop a wrapper,
all server definitions, user-defined function mappings, and user-defined
data type mappings that are dependent on the wrapper are dropped.
All user-defined function mappings, nicknames, user-defined data type
mappings, and user mappings that are dependent on the dropped server
definitions are also dropped. All packages dependent on the dropped
objects and inoperative views are invalidated.
- If necessary, drop the type and function mappings that
are associated with the type or version of the servers that you dropped.
The DROP WRAPPER statement drops only the objects that are explicitly
associated with a wrapper or its servers. If other objects are associated
with the type or version of the servers that you dropped, you must
manually drop those objects.
- Issue the SQL statements in the db2look output
file to reconfigure access to Teradata. For example, if the name
of the output file is teradata.sql, issue the
following command:
- Bind any application packages that were invalidated when
you dropped the wrapper.