To use ODBC, OLE DB, or the .NET Data Provider, the local system
name must appear in the RDB directory.
To add the local system to the RDB directory:
- From the command prompt run the CL command, Add Relational Database Directory
Entry (ADDRDBDIRE).
- When the ADDRDBDIRE screen prompts you for values, enter the name of the
system as the Relational Database parameter.
- Enter *LOCAL as the Remote Location parameter.
There may be additional steps to get the database (RDB) name set,
if the version of your system is V5R2 or later and your application accesses
data in independent ASPs. The RDB name corresponds with a namespace that consists
of the system ASP and any user ASPs or linked ASP group associated with the
system ASP. For more information about independent ASPs, see Disk management.
Note: ODBC
allows the use of fully qualified names in the format of [catalog name].[schema
name].identifier (for example, where identifier is the name of a table, view,
or procedure). In the DB2® UDB for iSeries™ implementation of SQL this corresponds
to [RDB name].[collection name].identifier.