Installing IBM SPSS Modeler Server Scoring Adapter for Teradata
If you have a previous version of the scoring adapter for Teradata installed, first you must uninstall it as follows:
- Locate the executable file named Uninstall IBM SPSS Modeler Server Scoring Adapter for Teradata in the Teradata scoring adapter's installation directory. It's in a folder named Uninstall IBM SPSS Modeler Server Scoring Adapter for Teradata.
- Run the executable file either from the console or by using the graphical user interface (GUI). Follow the instructions in the uninstaller to uninstall the scoring adapter.
- If you receive a message that some items could not be removed, go to the root directory where
the adapter had been (the cfscoring directory, for example) and run the command
rm -rf
on the listed directories that were not removed. This will remove them. - Proceed with the following steps to install the new version of the scoring adapter.
Depending on the configuration of your database you can install either from the console or by using a graphical user interface (GUI); however, the first step is the same for both methods:
- Log in as either root or DBA user and run the install.bin install script.
You must have access permissions for the installation folder to do this. The installing user must
also have
CREATE FUNCTION
permissions.
Console Installation
- Introduction details are displayed. Press Enter to continue.
- Licensing information is displayed. Read the license, type Y to accept it, and press Enter to continue.
- You are prompted to type the installation location. The default installation location is shown; however, if your installation is different, type the revised location and press Enter.
- Enter the database TDPID. Press Enter to continue.
- Enter the user name. Press Enter to continue.
- Enter the password. Press Enter to continue.
- A pre-installation summary is displayed to confirm your entries so far. Press Enter to continue.
- A message is displayed to say the installation routine is ready to run. Press Enter to continue.
- A progress bar is displayed whilst the installation routine runs. When the installation is complete, press Enter to exit from the installer.
- If the Components table exists in your database a confirmation message is displayed. Either enter Y to continue creating tables and functions in your database, or enter N to skip this step. Note: If you skip this step you must manually create tables and functions later using initdb.sh, which is stored in the <installation path>\setup folder.
GUI Installation
- Introduction details are displayed. Click Next to continue.
- Licensing information is displayed. Read the license, select the option to accept it, and click Next to continue.
- You are prompted to select the installation location. The default installation location is shown; however, if your installation of is different, click Choose to browse for the revised location. When the correct location is shown, click Next.
- Enter the database TDPID, name, and password and click Next to continue.
- A pre-installation summary is displayed to confirm your entries so far. Click Install to continue.
- A progress bar is displayed whilst the installation routine runs. When the installation is complete, click Done to exit from the installer.
- If the Components table exists in your database a confirmation message is displayed. Either click Yes to continue creating tables and functions in your database, or click No to skip this step. Note: If you skip this step you must manually create tables and functions later using initdb.sh, which is stored in the <installation path>\setup folder.
When you have completed these steps the scoring adapter is ready to receive work.
Sharing the scoring adapter
To share the scoring adapter for use by other Teradata users:
- Grant the following privileges to the user:
- SELECT and EXECUTE FUNCTION on the database where the scoring adapter is installed.
- INSERT on the COMPONENTS table on the database where the scoring adapter is installed.
- When a database connection is made to Teradata with the scoring adapter installed, open the
Database Preset dialog box, enable Use Server Scoring Adapter Schema and
select the schema from the Server Scoring Adapter Schema drop down list.
Note: The Database Preset dialog box varies for different databases and is not supported by scripting; therefore, this step can only be done in SPSS® Modeler Client.
Preventing SQL errors for date or time entries
If the ODBC driver for the Date or Time format is set to Integer, and your input table contains fields that are coded as Date, Time, or Timestamp; Teradata displays a SQL error message and is unable to process those fields.
To prevent this error from happening follow these steps:
- Open the ODBC Data Source Administrator.
- Open the DSN that uses the Teradata driver.
- Click on Options >> to open the Teradata ODBC Driver Options dialog box.
- On the top right side of the dialog box, set the Date Time Format to AAA.
- Save your changes.
- In IBM® SPSS Modeler Server, remove the connection and then reconnect to the DSN that uses the Teradata driver.
Teradata drivers and null datetime_now values
When using the DataDirect Teradata driver, the SQL_COLUMN_TYPE
may return a null
value. The alternative is to use the native Teradata driver.