Installing the RODBC Package - Aster R

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software
If users have Internet access from the queen node, then users can install the RODBC driver using the R client inside the R sandbox area. Follow the steps in this section, and complete this procedure using the Linux root privileges account.
#su –
If users do not have Internet access from the queen node, this task can be done by downloading the RODBC package from the CRAN website https://cran.r-project.org/src/contrib and installing the package on the queen node using the R CMD command.
  1. Soft shutdown the Aster Database.
    # ncli system softshutdown
  2. Set up the environment.
    # chroot /opt/aster/third-party/R
    
    # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib/stage/clients-odbc-linux64/unixODBC/lib
    
    
    # export ODBC_INCLUDE="/usr/include"
    
    # export ODBC_LIBS="/usr/lib"
    
    # export LD_RUN_PATH="/usr/lib"
    
  3. Install the RODBC using the R client.
    # R
    >install.packages("RODBC")
    
    > q()
    Save workspace image? [y/n/c]: n
    # exit
    While installing the RODBC package in the R client, when prompted, choose the option from the list such as "CA 96/97(CA--)" whichever works.