Chat now with support
Chat with Support

Toad for SAP Solutions 4.2 - Installation Guide

Create Hive Connections

Toad allows you to connect to a Hive data warehouse system. Apache Hive is one of the NoSQL data sources supported by Toad.

See also, About Hive Data Sources.

Note: This feature is available in the Toad for SAP Solutions Professional Edition only.

To create a Hive connection

  1. Click on the Connections toolbar (ALT+F+N).
  2. Select Apache Hive from the Group list.
  3. Enter the connection information in the Create New Connection dialog. Review the following for additional information:

    Server tab

     

    Host

    Enter the host name or IP address of the Hive data source.

    Port

    Enter the port number.

    Schema

    Enter a Hive schema to open upon connection.

    (HiveServer2 only) After connecting, you can select a different available schema in the Object Explorer.

    Server type

    Select the version of HiveServer the host uses, HiveServer1 or HiveServer2.

    Use SSL

    (HiveServer2 only) Select to use SSL to connect to Hive.

    HTTP mode

    (HiveServer2 only) Select to connect to HiveServer2 running in HTTP mode. Then enter the service endpoint. The default is cliservice.

    Session Initialization

    (HiveServer1 only) Enter any Hive session initialization commands.

    These commands will be executed once, at the start of each connection.

    Category

    (Optional) Select an existing category or create a new one. See Set Connection Categories for more information.
    Authentication tab (HiveServer1)  

    Connect with SSH

    Select to use SSH to connect to Hive. Then enter a user name and select an authentication method (key file or password).

    SSH user

    Enter the user name to log in when using SSH.

    SSH port

    Select the SSH port number. The default is 22.

    Authenticate with a key file

    Select if the host uses a key file to authenticate the SSH user field.

    Private key path—Enter the absolute path (including file name) to the private key file on the host (not the client).

    Pass phrase—Enter your passphrase.

    Authenticate with a password

    Select if the host uses a password to authenticate the SSH user field.

    Password—Enter the password to log in using SSH.

    Authentication tab (HiveServer2)  
    Authentication

    Select an authentication method.

    To enter only a user name, select the Username and password method.

    Username

    Enter the user name to use for this connection.

    If using Kerberos authentication, enter your user name in the following format: user@REALM or domain\user.

    Hive host realm

    (Kerberos only) Enter the Kerberos realm of the HiveServer2 host.

    Note: If necessary, contact your IT department to obtain this information.

    Before you can successfully connect to Hive using Kerberos authentication, the Toad client computer must have a Kerberos Key Distribution Center (KDC) address entry for the Hive host realm. To define the KDC entry, use the following procedure.

    Open a Windows Command Prompt as Administrator and enter the following command:

    ksetup /addkdc <REALM> <KDC name>

    You only need to run this command once for the given realm. To confirm the setting, enter the following command: ksetup. This command should return both the name of the Hive host realm and the KDC name you specified.

    Hive host FQDN

    (Kerberos only) Enter the fully-qualified domain name (FQDN) of the HiveServer2 host.

    Note: If necessary, contact your IT department to obtain this information.

    Service name (Kerberos only) Enter the service name of the Hive server. The default is hive.

    Note: In NoSQL and Business Intelligence connections, Toad automatically saves the password in the connections.xml file as obfuscated text, as well as in Toad. To add additional password security, use Toad's Master Password feature. See Security Options for more information.

  4. Click Connect to connect immediately while saving the connection information. Optionally, click Save to save the connection without connecting.

  5. Upon creating an initial connection, Toad automatically maps the data source objects. This process runs in the background, and until it is finished, you may experience a delay when attempting to access these objects.

Tips: 

  • Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.
  • You can specify a proxy server to use for Business Intelligence and NoSQL connections at Tools | Options | Database | Data Services.

  

Related Topics

Create Intelligence Central Connections

Toad allows you to create a connection to a Toad Intelligence Central server.

See About Toad Intelligence Central for more information.

About Toad Intelligence Central Connections

To create a new TIC connection, you must provide the TIC server name and then register with TIC by creating a new user account for yourself. The new user name and password will be used by TIC to identify you from among the group of TIC users and to manage the objects you create and are granted access to on the TIC server.

A TIC connection displays in the format: username@server. The username is the name of the new user you create when you create a new TIC connection.

To create an Intelligence Central connection

  1. Click in the Toad Intelligence Central Object Explorer (View | Toad Intelligence Central).
  2. Select the Register New User tab.
  3. Register New User. Use this tab to register with Intelligence Central by creating your own account (user name and password). Review the following for additional information:

    Note: If you are creating a connection to a Intelligence Central instance for which you already have a user account, do not fill in this tab again. Skip ahead to the next step (Login tab).

    Register New User  
    Use Windows Authentication

    Select to create a new user account using your Windows credentials. Toad automatically populates the fields with your account information.

    Host

    Enter the name of the Intelligence Central host server. Click to display a list of Intelligence Central servers currently active on the network.

    User Name

    Create a new user name for this connection.

    This is the name you will be logged in with. The objects you create will be linked to this user name. All your TIC rights (like sharing) will be linked to this user name. This user name will display in the format:

    username@server

    Note: User names must be lower case only. When you enter a user name, all upper-case characters are automatically converted to lower-case.

    Password

    Create a password.

    Verify Password

    Re-enter the password to confirm.

    Full Name

    Enter your full name.

    This name, along with your user name, displays on the Sharing tab of the Publishing dialog and in the Alter Visibility dialog. Your full name will help users identify you when they select users with which to share an object.

    Email Address

    Enter your email address.

    Port

    Enter the port number for the App Server.
  4. Login as Existing User tab. Use this tab to create a new connection to a TIC server for which you already have a user account. (When you open an existing connection, this tab displays your user account information.)

    Login as Existing User  

    Host

    Enter the name of the Intelligence Central host server. Click to display a list of Intelligence Central servers currently active on the network.

    User

    Enter an existing server user name.

    Password

    Enter the existing password for the user name.

    Data Source

    (Optional) Enter the name of a default data source to open upon connection.

    Port

    Enter the port number for the App Server.

    Category

    (Optional) Select an existing category or create a new one. See Set Connection Categories for more information.
  5. (Optional) Select Save Password to save your password with this connection.

    Note: This option is disabled if Toad was installed with Prohibit saving passwords selected.

  6. Click Connect to connect immediately and save the connection information. Optionally, click Save to save the connection without connecting.

To change your Intelligence Central user password

You can change your password for your Intelligence Central user account at any time.

Note: You cannot use this procedure to change the password for a Intelligence Central account that uses Windows Authentication.

  1. In the Navigation Manager, right-click the Intelligence Central connection and select Change Password.
  2. Enter the old password and then enter the new password. Enter the new password a second time to confirm.

To switch your TIC user account to a Windows Authentication account

You can switch your current Intelligence Central account to a Windows Authentication account if both accounts have the same user name.

  1. In the Connection Manager, right-click your current TIC account connection and select Properties.
  2. In the Register New User tab, select Use Windows Authentication. Toad prompts you to switch your account.

Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.

 

Create MySQL Connections

You can create a new connection, or connect to an existing connection from the Create New Connection window. See Troubleshoot MySQL Issues for more information about troubleshooting MySQL connection issues.

To create a MySQL connection

  1. Click on the toolbar (ALT+F+N).

  2. Select MySQL from the Group list box.

  3. Review the following for additional information:

    Login Tab Description

    Connection type

    Select the protocol to use when connecting.

    Host

    Enter the name of the host computer where the database is installed.

    Password

    Enter the password to use when connecting.

    Tip: After connecting, you can set a master password to further secure your connection in Tools | Options| Environment | Security.

    Connection timeout

    Enter the number of seconds to wait when connecting before the application times out. The default is 15 seconds.

    SSL

    If you selected SSL as the connection type, review the following for additional information: 

    • Private key—browse to the location of the SSL key file to use when connecting.
    • CA cert—browse to the location of the trusted certificate authority to use when connecting.
    • Cert—browse to the location of the SSL certificate file to use when connecting.

    Compress

    Select this checkbox to compress the value of any strings and return binary values.

    Use MySQL libraries

    Select this checkbox to use an embedded MySQL library instead of the MySQL .NET provider.

    Note: If you select this option, you must specify libMySQL.dll in the path.

    Category

    Select or create a category if you want to color code Editor tabs for a specific connection. This can help differentiate between development and production databases. You can also set an option to color code the Object Explorer pane and object editor windows (Create, Alter, Drop, etc.). See Set Connection Categories for more information.  Click here to view a video of this feature.
  1. Click Connect to save the connection and immediately connect to the database.

    or

    Click Save to save the connection without connecting to the database.

Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.

 

Related Topics

Understand Toad Connections

Switching Connections in Toad

Create ODBC Connections

Toad for SAP Solutions allows you to create a connection to a database that supports an ODBC 3.0 or later driver. ODBC connectivity provides basic querying capability, but may not be as full-featured as a native connection in Toad. For a list of databases tested with the ODBC provider, see the Release Notes.

This form of connectivity allows connections to databases such as Netezza, IBM iSeries, Ingres, and Vertica.

Note: Distinct values are not available in Code Completion for ODBC connections. 

DSN Architecture (Bitness) Must Match Toad

To create a successful ODBC connection, the architecture (bitness) of the driver in the specified DSN must match the architecture (bitness) of Toad. For example, 64-bit Toad requires an applicable 64-bit driver and 32-bit Toad requires an applicable 32-bit driver.

To create an ODBC connection

  1. Click on the toolbar (ALT+F+N+O).
  2. Select ODBC Generic from the Group list box.
  3. Use data source name—Select to display data source names. Clear this check box if you want to display the driver names.
  4. To create a data source to use in this connection, click in the Data Source Name field. Then click Add.  
  5. Select an ODBC driver from the list, and click Finish.

    Note: If creating an Oracle ODBC connection, select the ODBC driver provided by Oracle. The Microsoft ODBC for Oracle driver has less functionality than the driver provided by Oracle.

  6. Specify the configuration properties required for the database in the Windows configuration dialog.

    Notes:

    • If you have an Oracle database with Unicode data, make sure to select Force SQL_WCHAR Support on the Workarounds tab of the windows Oracle ODBC Configuration dialog. If you do not, you will not be able to see the data.
    • If creating a MySQL ODBC connection to use in a cross-connection query, you must specify a database in the Windows MySQL ODBC Configuration dialog. See Troubleshoot MySQL Issues for more information.
  7. Specify the connection properties in the Create New Connection dialog. Review the following for additional information:

    General  

    Data source name

    Select the driver or data source name you added in the previous steps.

    User

    Enter the user name to use when connecting.

    Password

    Enter the password to use when connecting.

    Tip: After connecting, you can set a master password to further secure your connection in Tools | Options| Environment | Security.

    Database

    Select a database or schema. Click to create a temporary connection and display available databases/schemas in the drop-down list.

    Information

    Data Source Name

    Displays the selected driver or data source name.

    Driver

    Displays the ODBC driver associated with the data source.

    Advanced  
    Default Table Column

    Specify default options to use when creating a new table.

    Column type—Select the default data type to use when creating a table.

    Column length—For the selected column type, enter a default column length to use.

    Advanced Options

    Block Cursor Size—Specify the number of rows to return in a single fetch of data from the result set.

    Disable multi-threading—Multi-threading is disabled by default. Enable multi-threading only if supported by the driver. Multi-threading can improve performance, but can also result in unpredictable behavior if not supported by the driver.

    Default: Selected

    Category (Optional) Select an existing category or create a new one. See Set Connection Categories for more information.
  8. Click Connect to connect immediately while saving the connection information. Optionally, click Save to save the connection without connecting.

Tip: Connections are stored in the connections.xml file and can be found by clicking the Application Data Directory link in Help | About.

Tips for Working with ODBC Connections

Tip Description
Filter DSN by bitness

To filter Data Source Names displayed in the New Connection dialog by the bitness of Toad, go to Tools | Options | Database | ODBC.

Cache object metadata

To cache object metadata for ODBC connections and retain it between sessions, go to Tools | Options | Database | ODBC and select to enable disk caching.

Cached object metadata is retained until manually refreshed.

Refresh object metadata

To refresh object metadata for all ODBC connections, in the Object Explorer right-click an object and select Refresh All.

Right-click an object and select Refresh Schema to refresh only objects in that schema.

ODBC Features

Feature Description
Bypass schema/instance selection in SQL Editor

For ODBC connections, in the SQL Editor you can bypass selecting a schema/instance and specify this information through the script instead. This is useful if your script executes SQL against multiple schemas.

To use this method, select I will set schema/instance in the script from the schema/instance drop-down list in the SQL Editor window. Then specify the schema/instance through your script.

Note: When this option is selected, some code completion features, object actions, and object information tool tips are unavailable for this SQL Editor window.

 

Related Topics

Understand Toad Connections

Switching Connections in Toad

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating