サポートと今すぐチャット
サポートとのチャット

Toad for DB2 7.2 - Installation Guide

Create Connections

Understand Toad Connections

Review this topic to learn about open database connections in Toad.

For information about switching the current connection in Toad, see Switching Connections in Toad.

Toad Open Connections

In Toad, an open connection in the Connection/Navigation Manager represents one or more actual connections to the database. When you open a database connection in Toad:

  • Toad creates an initial database connection for general use.
  • Toad also creates a separate database connection for each Editor (the first time you execute a statement) and for each Data tab in the Database Explorer (the first time you select the tab and query data).

    The connection associated with the window (or tab) remains open until you close the window. If a window has an associated connection, but a statement is not currently executing, the connection is in an inactive state.

To view information for an open connection

  • To view the number of actual database connections that exist for a Toad connection, including the number of active connections, place the cursor over the connection in the Connection/Navigation Manager pane or in the connection drop-down list.

To use the Background Processes pane

  • When a statement is executing, a progress bar displays in the Status bar located at the bottom of the Toad application window. Click the executing progress bar to open the Background Processes pane.
  • To cancel statement execution, use the Background Processes pane. See Stop Background Processes for more information.

    Note: It is recommended that you cancel only your own processes, because terminating Toad activities could cause unexpected behavior.

Sharing a Connection Among Windows

You can instruct Toad to share an open connection among windows. In this way, the Editor windows and Data tabs can share the same connection when the connection is inactive.

To share a database connection among windows in Toad

  1. Select Tools | Options | Editor | General.
  2. Clear the checkbox for the Use individual connection for each open editor option.

  3. When this option is not selected, Toad attempts to use a single connection for any new windows or query execution. For example, if you share a database connection, you can execute a query in the Editor, execute another query in a new Editor, and then select the Data tab from the same connection.

    If the single connection is in use when Toad attempts to execute it, the following occurs:

    • If your database supports executing multiple queries simultaneously on a shared connection, the query is placed in a queue and executes as soon as the current operation completes.
    • If your database does not support executing multiple queries on a shared connection, a dialog prompts you to either permanently associate the window with a new database connection, cancel the previous operation, or add the query to a queue until the current operation completes, and the execute it. If you place multiple queries in the queue, each one executes in the order that it was added to the queue.

Note: Although you can share a database connection, any commits apply to the selected window only.

 

Related Topics

Connection/Navigation Manager

General Editor Options 

Switching Connections in Toad

Configure DB2 Client Connections

Setting up connections to the DB2 for LUW databases and DB2 for z/OS subsystems that Toad will manage requires two main steps.

Step 1. Configure DB2 client connections - Before you can create a connection profile, each of the databases or subsystems must be cataloged on the DB2 client. This topic helps you with that process.

Step 2. Create connection profiles - Step 2 involves creating Toad connection profiles for the cataloged DB2 databases or subsystems. Each profile contains the information that Toad needs to connect to the system, such as the user ID and password, DB2 registry settings, and the default schema. See Create Toad Connection Profiles for DB2 for more information.

Show all

Use one of the following methods to catalog each of the databases or subsystems on the DB2 client.

Transfer a Catalog Any Time After Initial Setup

Use this method to transfer a catalog from another DB2 client on your machine to your default DB2 client.

To transfer a catalog any time after initial setup

  1. In the Connection Manager, click in the toolbar.

    Note: If the Client Configuration Wizard opens, Toad found only one DB2 client installed.

  2. From the DB2 Client list, select the name of the DB2 client whose catalog you want to transfer to your default DB2 client.

    This list contains all current previously installed DB2 clients on your computer, including the default DB2 client instance and any Toad DB2 client installations.

  3. Click OK.
  4. To create a connection in Toad for any of the transferred catalog entries, see Create Toad Connection Profiles for DB2.

Note: Toad for DB2 supports LDAP connections. See Configure DB2 LDAP Support for more information.

Maintain DB2 Client Connections

Additionally, Toad provides functionality to perform the following maintenance on the catalog you set up for the current DB2 client:

After you have set up the catalog on the current DB2 client, you can proceed to the second phase of the Toad connection setup. This phase involves creating Toad connection profiles for the cataloged DB2 databases or subsystems. See Create Toad Connection Profiles for DB2 for more information.

 

Related Topics

Create DB2 Connections

Configure DB2 LDAP Support

You can create DB2 Lightweight Directory Access Protocol (LDAP) connections when the DB2 client installed with Toad is configured for LDAP. Configuring the client consists of enabling LDAP support and specifying the host name and port number of the LDAP server. Once the client is configured, Toad retrieves names from your LDAP server and displays them in the Database Alias list in the Connections window.

Notes:

  • You must configure LDAP support for the DB2 client installed with Toad regardless of whether an existing DB2 client on the computer is already configured to support LDAP.

  • Currently, Toad for DB2 supports only the access of DB2 LDAP catalog entries. Toad does not support the management of these entries.

To configure the DB2 client for LDAP

  1. Open the Command Window for the DB2 client installed with Toad by selecting Start | All Programs | IBM DB2 | <ToadCom, ToadEval, or ToadFree> | Command Line Tools | Command Window.

  2. Enter the following command to enable LDAP support:

    db2set DB2_ENABLE_LDAP=YES

  1. Enter the following command to specify the TCP/IP host name and port number of the LDAP server:

    db2set DB2LDAPHOST=<hostname[:port]>

    The port number defaults to 389 (default LDAP port) if you leave the port number blank.  

  1. Exit the Command window.

  2. Launch Toad and open the Connections window.

    Databases on the LDAP server should be available from the Database alias drop-down list in the Connections window. To complete the Toad connection setup, you must create a Toad connection profile for each database. See Create Toad Connection Profiles for DB2 for more information.

 

Related Topics

Create DB2 Connections

関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択