When you redirect a database host machine, a ToolTalk client can physically access ToolTalk data from a machine that is not running a ToolTalk database server. To redirect the host machine, you need to map the hostnames of the machines the ToolTalk client is to access. On the machine running the ToolTalk client that is making the database query:
For example:
# Map first host machine oldhostname1 newhostname1 # Map second host machine oldhostname2 newhostname2 |
where oldhostname is the name of the machine the ToolTalk client needs to access and newhostname is the name of a machine that is running the ToolTalk database server.
Store the file in the same location at which the ToolTalk Types databases are stored.
The map files have the same order of precedence as the ToolTalk Types databases (see tt_type_comp(1).
A file defined in the TT_HOSTNAME_MAP
environment variable has a higher precedence than the map in the user database.
The map file is read into a ToolTalk client when the client makes a tt_open call. For detailed information on host redirection see hostname_map(4).