Troubleshooting Guide

DB2 Data Links Manager Considerations

Before using DB2 Data Links Manager, you should confirm that your environment supports DLFM. The following is a summary of the conditions in which the DB2 Data Links Manager can function.

DB2 Data Links Manager

The DB2 Data Links Manager consists of the following two components:

Data Links File Manager
Data Links File Manager registers all files on a particular Data Links Manager Server that are referred by DATALINK columns in DB2 databases. This component tracks the meta data (the administration information) for the link files. It also tracks previously linked files for point-in-time roll-forward recovery.

Data Links Filesystem Filter
Data Links Filesystem Filter filters the file system commands to ensure that registered files are not deleted or renamed. Optionally, it also filters commands to ensure that proper access authority exists. It enhances the file system of the operating system so that no file API can corrupt the integrity between the data on the DB2 Server and the external files managed by Data Links Manager.
Note:The DLFF must be applied to all file systems that are referenced by DATALINK columns.

There are some important considerations when using the DB2 Data Links Manager:

Data Access Token

File access control is provided by a combination of DB2 and the Data Links Manager. DB2 assigns an access token dynamically, using a SELECT statement on the DATALINK column and embeds the result in the file path name.

There are several provisions for file access control to operate correctly:

Note:For more information on Data access and permissions, see DB2 Data Links Manager Quick Beginnings.

Recovery Data Links Manager Environment

This section describes Data Links Manager recovery situations.

DB2 database recovery:

DLFS file systems recovery:

The following table shows possible situations that require recovery operations.
Environment Conditions Action and Resolution
The DB2 databases on the DB2 Database Server are lost. DB2 backup and log files are available. On the DB2 Database Server:
  • Restore the database(s) and roll forward to end of logs.
  • Reconcile all table that have DATALINK values in that database(s).
DLFM_DB on the Data Links Server is lost. Backup and log files are available. On the Data Links Server:
  • Restore the database(s) and roll forward to end of logs.
  • Restore database DLFM_DB and roll forward to end of log.
Recover from a disk crash on the DLFM Server. DB2 applications interacting with the DLFM can hang. Use the FORCE APPLICATION command to force applications off the system.
Recover from a machine crash on the DLFM Server. DB2 applications interacting with the DLFM can hang. The affected DB2 Data Links Managers should be shut down by using the dlfm shutdown command. These can then be brought up again.
Recover from a disk or machine crash on the DLFM Server. Applications can hang. On the Data Links Server:
  • Restore the DLFS file system.
On the DB2 Database Server:
  • Perform a reconcile on all tables, containing the damaged disk, by invoking the command, db2_reconcile_aid. This will check and run reconcile on tables that are potentially inconsistent with the linked file on the File Manager Server after a disk failure.
Recover the DLFM backup directory.
Restore the DLFM backup directory.

Files in a linked state, having the RECOVERY NO option set:
Permissions File Status on File System Action Result

Not Found
DATALINK value will be set to NULL.
READ and WRITE PERMISSION FS Found No additional checks will be conducted to validate the correctness of the file.
WRITE PERMISSION BLOCKED Found Its modification time and file size will be checked. If there is a mismatch in the values, the DATALINK value will be set to NULL.

Files in a linked state, having the RECOVERY YES option set
Permissions File Status on File System Action Result

Found The file modification time is less than the file modification time at link time. The correct version of the file will be restored from the archive server.


The file modification time is greater than the file modification time at link time. The DATALINK value will be set to NULL.

Backup Data Links Manager Environment

To perform a backup of the entire Data Links File Manager environment, consider the following:

Note:The preceding discussion serves only as a general reference to this topic. Because of the complexity of this operation, you should refer to the appropriate sections of the DB2 Data Links Manager Quick Beginnings manuals before performing a backup or restore operation.

Export Operation

This operation, using DLFM_EXPORT is used on the Data Links server to export two sets of data:

A successful export on a table with DATALINK columns produces:

Notes:

  1. For a successful DLFM_EXPORT operation to occur, root authority is required. There may be files that need to be archived that cannot be accessed by the DLFM administrator.

  2. The DB2 Data Links Manager does not have to be running in order for DLFM_EXPORT to run.

Import Operation

Steps to import data, using the utility DLFM_IMPORT, are included in DB2 Data Links Manager Quick Beginnings. However, there are particular conditions in which data is imported successfully and it is helpful to review these conditions during troubleshooting:

On the DB2 Database Servers the appropriate steps for configuring the DB2 Database Servers must be performed if the tables are imported on another DB2 Database Server.

Load Considerations

Before invoking the LOAD utility, it should be noted that some options are not supported:

If you are loading data to a table with a DATALINK column that is defined as FILE LINK CONTROL, perform the following steps before invoking the LOAD utility:

DB2 Data Links Manager for Windows NT

If you install DB2 Data Links Manager on a clean machine, the installation program will also install a compact version of DB2 Universal Database Personal Edition for the DLFM.

With this DB2 Universal Database, there is no way to additionally install the DB2 Server on the same machine. However, if before installing DB2 Data Links Manager on the system there is already a DB2 Universal Database Personal Edition, Workgroup Edition, or Enterprise Edition, DLFM will use the existing DB2 Universal Database product.


[ Top of Page | Previous Page | Next Page ]