7.00.02.01 - Testing the UNIX ODBC Driver - Aster R

Teradata Aster® R User GuideUpdate 3

prodname
Aster R
vrm_release
7.00.02.01
created_date
December 2017
category
Programming Reference
User Guide
featnum
B700-1033-700K

Users need to test if the UNIX ODBC installation is working from both the queen node and worker nodes before proceeding.

  1. Restart the Aster Database cluster, if users did not do it after setting up the environment.
    # ncli system softrestart
    If the cluster restart was NOT successful, check if all the previous steps are executed properly.
    If the user cannot solve the problem, the user may have to redo the installation by cleaning and restoring the backed up version of R sandbox area /opt/aster/third-party/R on queen node and restarting cluster.
  2. If the cluster restart is successful, then users can test the database access using the isql tool as shown here.
    # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib/stage/clients-odbc-linux64/unixODBC/lib
    1. Test the UNIX ODBC driver from the queen node.
      Replace the AsterDSN in the example with the Data Source Name (DSN) defined in the odbc.ini file.
      # chroot /opt/aster/third-party/R/
      
      # isql -v AsterDSN db_superuser db_superuser
               +---------------------------------------+
               | Connected!          |
               |                  |
               | sql-statement           |
               | help [tablename]         |
               | quit               |
               |                  |
        
               +---------------------------------------+
               SQL>quit;
      
      # exit
    2. Test the UNIX ODBC driver from the worker node. The output should be the same as shown in Step 2.a.
      # chroot /opt/aster/third-party/R/
      # isql -v AsterDSN db_superuser db_superuser
      
      # exit
    3. Test the UNIX ODBC driver from the worker node using the "extensibility" user. The output should be the same as shown in Step 2.a.
      # chroot /opt/aster/third-party/R/
      # su - extensibility
      # isql -v 'AsterDSN' db_superuser db_superuser
      
      # exit
    Teradata recommends users to test the UNIX ODBC driver from all the worker nodes.