DB2 Data Links Manager Quick Beginnings

DB2 Data Links Manager Components

This section describes the different components that make up a database system that is using DB2 Data Links technology. These components include the:

DB2 Data Links can be installed on AIX systems running a Journaled File System (JFS) or Transarc's DCE Distributed File Service (DCE-DFS). It can also be installed on Windows NT systems running NTFS. For specific operating system requirements, see the appropriate installation chapter.

Data Links Server

A Data Links server consists of four components:

Data Links File Manager (DLFM)
The DLFM tracks all the files on a particular Data Links server, or all the files in a DCE cell, that are linked to a DB2 database. The DLFM receives and processes link-file and unlink-file messages arising from SQL INSERT, UPDATE, and DELETE statements that reference a DATALINK column. For each linked file, the DLFM logically tracks the database instance, the fully qualified table name, and the column name referred to in the SQL statement.

The DLFM also tracks previously linked files, if they were linked to a DATALINK column for which the RECOVERY=YES option was specified, during table creation. This allows DB2 to provide point-in-time roll-forward recovery for any file that is specified by a DATALINK column. For information about attributes that you can specify for a DATALINK column, refer to the SQL Reference.

Data Links Filesystem Filter (DLFF)
In JFS and NTFS environments, the FLFF filters operations to ensure that linked files are not deleted, renamed, or the file's attributes are not changed. Optionally, it also filters commands to ensure that proper access authority exists for READ PERMISSION DB files. AIX file systems under the control of a Data Links Filesystem Filter can be NFS exported. Windows NT file systems under DLFF control can be net shared.

Data Links File System (DLFS) DMAPP (data manager application)
In DCE-DFS environments, the DMAPP filters commands to ensure that linked files are not deleted, renamed, or the file's attributes are not changed. The DMAPP monitors filesets residing in DMLFS aggregates that are DM-enabled. Once an aggregate has been DM-enabled, the aggregate can contain filesets that may be brought under Data Links control. The DMAPP can then manage the data within these filesets after the aggregate is exported into the namespace. DM-enabling an LFS aggregate is part of the Storage Management Toolkit (SMT) provided by Transarc.

DB2 (Logging Manager)
A Logging Manager that contains the DLFM_DB database. This database contains registration information about databases that can connect to a Data Links server, and mount point of the file systems on AIX, or the sharename of the drives on Windows NT, that are managed by a DLFF. The DLFM_DB database also contains information about files that have been linked, unlinked, or backed up on a Data Links server or in DCE cell. This database is created during the installation of DB2 Data Links Manager.

DB2 can provide point-in-time roll-forward recovery on the Data Links server (if the RECOVERY=YES option was specified during table creation) for any linked file that is specified by a DATALINK column. The files can be backed up on a disk or using Tivoli Storage Manager. The files that are linked via a DATALINK column are ensured to be backed up when your database is backed up.

DB2 Universal Database Server

The DB2 Universal Database server is the location of the main database where the Data Links Manager is registered. In NTFS and JFS environments, more than one Data Links Manager can be registered on a database.

In DCE-DFS environments, the DB2 server can only register one DCE cell. The database could contain tables that include columns of the DATALINK data type. Also, the DFS client must be installed on the DB2 server in order to allow access to configuration information which is stored in DFS.

On AIX no mounts are required, and on Windows NT no sharing is required, between a DB2 server and a Data Links server. All communication is done through a port reserved for communications.

The remote DB2 Universal Database server can only be participating in a single-partitioned database system. DB2 Data Links Manager does not support interaction with partitioned database systems.

DB2 Client

The client connects to a remote DB2 server as normal. For more information about configuring a DB2 client and server for communications, refer to your server's Quick Beginnings documentation.

The remote client can NFS mount a file system on AIX, or share a drive on Windows NT, under the control of a Data Links Filesystem Filter that is installed on a Data Links server. This way, the client can directly access the files on the Data Links server.

In DCE-DFS environments on AIX systems, the client uses the DFS client. A DB2 Data Links DFS Client Enabler, also known as the DLFS cache manager or DLFS-CM, is also required to access linked files in DATALINK columns created with READ PERMISSION DB specified. For more information on the READ PERMISSION DB option, see the SQL Reference.

Figure 1 shows an overview of the interaction between a DB2 server, the DB2 Data Links Manager components, the backup media, and a remote client application in NTFS and JFS environments.

Figure 1. Overview of Data Links Manager Processing (NTFS or JFS environments)


Diagram showing the overview of Data Links Manager processing in NTFS and JFS environments.

In this example, a client application connects to a database with a DATALINK data type, selects a DATALINK value from this database, and updates the data file as follows:

  1. The client application issues a CONNECT statement to connect to a database on a DB2 server.
  2. The application then issues a SELECT statement that contains a DATALINK column.
  3. The application would then copy the :var_dl1 file to the new_version file over a shared drive (on Windows NT) or a NFS mount (on AIX).
  4. Then the application would edit the new_version file. To save the changes in the database, the application would issue an UPDATE statement.

The following diagram shows a Data Links solution implemented in a DCE-DFS environment on AIX. The numbers in the diagram correspond to the previous steps.

Figure 2. Overview of Data Links Manager Processing (DCE-DFS environments)


Diagram showing the overview of Data Links Manager processing in DCE-DFS environments.

For more information about remote clients, refer to the Installation and Configuration Supplement. For an example of a CLI program using a DATALINK data type, see Appendix B, CLI Example.


[ Top of Page | Previous Page | Next Page ]