Вы находитесь на странице: 1из 1

Tip Sheet

Topic: Connecting to Teradata


SAS

SAS/ACCESS
to
Teradata

Teradata
CLIv2

Date: 07/31/2008

Connection Information

LIBNAME Statements

To connect to a Teradata Server you must have:


TDPID (Teradata Director Program ID)
Userid
Password

Use the SAS LIBNAME


statement to verify that SAS
will connect to Teradata.

Teradata Client Configuration


DNS Teradata uses DNS to look up the TCP/IP
connection information.
Teradata uses the copn extension for load
balancing. Include the extension when performing
the tests.
ping myservercop1
nslookup myservercop1

Teradata
Server

Required Software
SAS/ACCESS Interface to
Teradata must be
installed on SAS
Workspace Servers, SAS
Stored Process Servers
and Base SAS
environments that will be
used to access Teradata
Servers.
Teradata Call Level
Interface Version 2
(CLIv2) must be installed,
and configured, on the
machines where SAS will
be used to access the
Teradata Server.

Author: Jeff Bailey

If the machine is not present on the network have


a systems administrator add it to the DNS.
hosts file if the host names are not found in the
DNS then you can add entries to the hosts file on
the system where the connection needs to take
place. Add an entry for each Teradata node:
11.16.0.27 terasrvcop1
11.16.0.86 terasrvcop2
On Windows the hosts file is located in:
C:\WINNT\system32\drivers\etc
On UNIX the hosts file is located in: /etc

Test the Connection to Teradata


Teradata Basic Query Facility (BTEQ).
To invoke BTEQ issue this command at a command
prompt: bteq.
Connect to the Teradata Server using the LOGON
command.

LIBNAME mytera TERADATA


USER=userid
PASSWORD=password
TDPIP=terasrv;
LIBNAME mytera TERADATA
USER=userid
PASSWORD=password
SERVER=terasrv;

Connecting without
including the TDPID= or
SERVER= options will work.
The target for the
connection is specified by
the i_dbcpath= variable in
the clispb.dat file. Ask DBA
for more details.
LIBNAME mytera TERADATA
USER=userid
PASSWORD=password;

Best Practices
Always include the SERVER=
or TDPID= options on the
LIBNAME statement.
In environments containing
multiple SAS servers it is
important to test each one.
This is especially true in
multi-machine
environments.

.logon terasrv/userid
You will be prompted for the password.
Disconnect using the logoff command.
.logoff

Copyright 2008 SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the
USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies.

Вам также может понравиться