The information in this section describes how to create and
use profiles to set up connections between DB2 clients and servers. You
can use either a Server Profile or a Client Profile to
configure database connections on a client.
| Go to the section that describes the type of profile that you want to use: |
A Server Profile contains information about instances on a server system, and databases within each instance. The information for each instance includes the protocol information required to set up a client to connect to databases in that instance.
To generate a Server Profile, use the Export Server Profile function provided in the Control Center. When a profile is generated, it includes instances that have the discover_inst database manager configuration parameter and databases with the discover_db database configuration parameter set to ENABLE. The discover parameter in the Administration Server's configuration file must be set to either SEARCH or KNOWN to generate a profile for a server system.
The default settings for these configuration parameters enable you to
discover all instances and databases on your network. For information
on setting the discover_inst, discover_db, and
discover configuration parameters, refer to the Administration Guide.
| We recommend that you create a Server Profile only after you have created the DB2 databases that you want your remote clients to access. |
To create a Server Profile, perform the following steps:
Step 1. | Start the Control Center. For more information, refer to Starting the Control Center. | ||
Step 2. | Select the system that you want to create a profile for and click on the
right mouse button.
| ||
Step 3. | Select the Export server profile option. | ||
Step 4. | Enter a path and filename for this profile and click on the Export push button.
|
|
You are ready to use this profile on your system. For more
information on how to add a database to your system using a Server Profile, go
to Configuration Steps.
|
Information in a Client Profile can be used to
configure clients using the Import function in the Client Configuration
Assistant (CCA). These clients can import all or a subset of the
configuration information in a profile.
| This scenario assumes that the database connections configured on one client will be exported and used to set up one or more clients. |
A Client Profile is generated from a client using the Export function of the CCA. The information contained in a Client Profile is determined during the export process. Depending on the settings chosen, it can contain the existing client's:
To create a Client Profile, perform the following steps:
Step 1. | Start the CCA. For more information, see Starting the Client Configuration Assistant. | ||
Step 2. | Click on the Export push button. The Select Export Option window opens. | ||
Step 3. | Select one of the following export options:
| ||
Step 4. | Select the databases to be exported from the Available DB2
databases box and add them to the Selected databases box by
clicking on the > push button.
| ||
Step 5. | Select the check boxes from the Select custom export option box that correspond to the options that you want to set up for the target client. To customize settings, click on the appropriate Customize push button. The settings that you customize will only affect the profile to be exported, no changes will be made to your workstation. For more information, click on the Help push button. | ||
Step 6. | Click on OK. The Export Client Profile window opens. | ||
Step 7. | Enter a path and file name for this Client Profile and click on OK. The DB2 Message window opens. | ||
Click on OK.
|
To import a Client Profile, perform the following steps:
Step 1. | Start the CCA. For more information, see Starting the Client Configuration Assistant. | ||
Step 2. | Click on the Import push button. The Select Profile window opens. | ||
Step 3. | Select a Client Profile to import and click on OK. The Import Profile window opens. | ||
Step 4. | You can select to import all or a subset of the information in a Client Profile. Select one of the following import options:
| ||
Step 5. | Click on OK.
| ||
Step 6. | You are presented with a list of systems, instances, and databases. Select the database that you want to add and click on the Next push button. | ||
Step 7. | Enter a local database alias name in the Database alias field
and add a comment that describes this database in the Comment
field. Click on the Next push button.
| ||
Step 8. | Register this database as an ODBC data source.
| ||
Step 9. | Click on the Test Connection push button to test the connection. The Connect to DB2 Database window opens. If the database that you want to add was not added successfully, click on the Change push button to change any settings that you may have incorrectly specified or click on the Help push button for more information. For even more detailed information, refer to the Troubleshooting Guide. | ||
Step 10. | Enter your user ID and password and click on OK. If the connection is successful, a message confirming the connection appears. | ||
Step 11. | You are now able to use this database. To finish using the Add Database SmartGuide, click on the Close push button; you can then add more databases by clicking on the Add push button or exit the CCA.
|