Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all 445 articles
Browse latest View live

Unable to establish connection between R studio and Teradata

$
0
0

i am using Terdata version 13.10 and R Studio 3.2.3 (32-bit). I am trying to establish connection between both using following code. I also have all required JDBC drivers installed on system.

drv = JDBC("com.teradata.jdbc.TeraDriver","C:\\Users\\Public\\Desktop\\TeraJDBC__indep_indep.15.00.00.33\\terajdbc4.jar;C:\\Users\\Public\\Desktop\\TeraJDBC__indep_indep.15.00.00.33\\tdgssconfig.jar")

 

conn = dbConnect(drv,"jdbc:teradata://tddev","userid","password") 

 

GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)

at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(TdgssParseXml.java:81)

at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(TdgssConfigApi.java:81)

at com.teradata.tdgss.jtdgss.TdgssConfigApi.<clinit>(TdgssConfigApi.java:44)

at com.teradata.tdgss.jtdgss.TdgssManager.<init>(TdgssManager.java:40)

at com.teradata.tdgss.jtdgss.TdgssManager.<clinit>(TdgssManager.java:29)

at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getTDgssVersion(GenericTeraEncrypt.java:640)

at com.teradata.jdbc.jdbc_4.parcel.ClientConfigParcel.toStream(ClientConfigParcel.java:54)

at com.teradata.jdbc.jdbc_4.io.TDPacket.addParcel(TDPacket.java:98)

at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:94)

at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:207)

at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>(JDK6_SQL_Connection.java:35)

at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.constructSQLConnection(JDK6ConnectionFactory.java:25)

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:179)

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:169)

at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:234)

at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:160)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],  : 

  java.lang.NoClassDefFoundError: Could not initialize class com.teradata.tdgss.jtdgss.TdgssManager

 

Please suggest the solution

 

Forums: 

ODBC.INI configuration with LDAP Authentication Mechanism

$
0
0

Hi,
I am trying to connect to teradata database using ODBC with LDAP authentication. Follwing are the coentents of my odbc.ini:
[testdsn]
Driver=/opt/teradata/client/15.00/ODBC_64/lib/tdata.so
Description=Teradata database
DBCName=208.199.59.208
MechanismName=ldap
LastUser=
Username=
Password=
Database=
DefaultDatabase=
 
I am getting error The USERID, Password or Account is invalid. I am able to connect if I remove MechanismName=ldap and providing non ldap credentiials. The LDAP user is also logging successfully from BTEQ. Can anybody help me to sort this out or can share a sample ODBC.INI file with LDAP Authentication Mechanism.
Thanks and regards,

Forums: 

Unable to connect to Teradata from Qlikview Management Console

$
0
0

Hi All,
I am trying to connect to teradata from Qlikview Management Console. The connection String I have written is 
Provider=Teradata;DBCName=MyDbcName;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
But It is throwing an error as :

The 'Teradata' provider is not registered on the local machine

Note: ODBC Driver is installed in server.
what might be the possible reasons for this error?
 
Thanks,
Saugat

Forums: 

pyodbc encoding issue

$
0
0

I have (what appears to be) an encoding issue using pyodbc -- Perl works without issue and is using the same ODBC drivers. 
---------------------------------------------------------------------
python code:

import pyodbc
pyodbc.pooling = False
conn = pyodbc.connect('DSN=tera01;', password=pw)

cursor = conn.cursor()
cursor.tables()
rows = cursor.fetchall()

print(row[0].table_name) # Encoding??
扁牯䱴獩却獥楳湯

print(row[0].table_name.encode('utf_16_le'))
b'AbortListSession'

conn.execute("SELECT DISTINCT column FROM table;").fetchall()
Error: ('HY000', '[HY000] [unixODBC][Driver Manager]Driver returned SQL_ERROR or SQL_SUCCESS_WITH_INFO but no error reporting API found (0) (SQLExecDirectW)')
--------------------------------------------------------------------
It appears pyodbc is connecting because I can fetch table names, however, the table names are not encoded properly. Here is a list of things I've tried:

  1. Setting CHARSET/ENCODING in my DSN as 'ASCII', 'UTF-8', and many others
  2. Setting the locale:
    locale.setlocale(locale.LC_ALL, 'en_US.utf8')
  3. Changing autocommit and ANSI=True/False' in pyodbc.connect()

python==3.4.3, pyodbc==3.0.10
.odbc.ini:

[ODBC]
InstallDir=/opt/teradata/client/15.10/odbc_64
Trace=0
TraceDll=/opt/teradata/client/15.10/lib/odbctrac.so
TraceFile=/home/solberg/teratrace
TraceAutoStop=0

[ODBC Data Sources]
tera01=Teradata ODBC Driver 15.10

[tera01]
Driver=/opt/teradata/client/15.10/lib64/tdata.so
DBCName=tera01
Username=solberg
Authentication=LDAP
.odbcinst.ini:

[ODBC DRIVERS]
Teradata=Installed

[ODBC Translators]
OEB to ANSI=Installed
 

Forums: 

Teradata & Excel Powerpivot

$
0
0

Hi all,
I am working to build some pivots/charts through Excel Powerpivot accessing TD database. I retrieve data w/o problem but I have the following problem:
1 - I am not able to save the password in the connection
2 - as consequenze (I believe) of the problem above, I am not able to refresh data. If I refresh data in excel sheet, the data is not updated. If I open the cube and write the password, the data is correctly updated
thanks for any suggestion,
Andrea

Forums: 

Errors obtaining jdbc:default:connection from external Java stored procedure

$
0
0

I wrote a Java stored procedure, packed it into a jar and installed it into the Teradata database. I want to use the default database connection as described here [1]. Most of the code was generated by the Teradata wizard for stored procedures.
 

public class TestSql {
    public static void getEntryById(int id, String[] resultStrings) throws SQLException {
        Connection con = DriverManager.getConnection("jdbc:default:connection");

    String sql = "SELECT x FROM TEST_TABLE WHERE ID = " + id + ";";

    Statement stmt = (Statement) con.createStatement();
    ResultSet rs1 = ((java.sql.Statement) stmt).executeQuery(sql);
    rs1.next();
    String resultString = rs1.getString(1);
    stmt.close();
    con.close();

    resultStrings[0] = resultString;
    }
}

I installed the jar:

CALL SQLJ.REPLACE_JAR('CJ!/my/path/Teradata-SqlTest.jar','test');

And created the procedure:
 

REPLACE PROCEDURE "db"."getEntryById" (
    IN "id" INTEGER,
    OUT "resultString" VARCHAR(1024))
    LANGUAGE JAVA
    MODIFIES SQL DATA
    PARAMETER STYLE JAVA
    EXTERNAL NAME 'test:my.package.TestSql.getEntryById(int,java.lang.String[])';

Now when I call this procedure, I get this error message:

Executed as Single statement.  Failed [7827 : 39001] Java SQL Exception SQLSTATE 39001: Invalid SQL state (08001: No suitable driver found for jdbc:default:connection).

Now when I log off from Teradata and log on again and call the procedure, the error message becomes:

Executed as Single statement.  Failed [7827 : 39001] A default connection for a Java Stored Procedure has not been established for this thread.).

What is the problem here? I'm connecting to Teradata using the Eclipse plugin. Teradata v. 15.0.1.01.
 
Thank you,
Björn
 
[1]: http://www.info.teradata.com/HTMLPubs/DB_TTU_14_00/index.html#page/SQL_Reference/B035_1147_111A/ch05.060.17.html#ww16941705

Forums: 

Building a new API on Teradata REST Services

$
0
0

Hi,  I've read with interest the Teradata REST Services guide, and the Driverless Connectivity article at Teradata Magazine : http://www.teradatamagazine.com/v15n01/Tech2Tech/Driverless-Connectivity/
The Guide talks about Teradata REST Services as a "container", and REST API for Teradata Database as the first service deployed in this container.    So how does one go about creating their own REST API ?  The Guide doesn't mention the creation of new services.  So I'm wondering if this is a mechanism for Teradata to deploy additional Teradata supplied APIs, or is the intention for customers to add their own to the "container" ? If the latter is true, are there any guidelines ?
Thanks

Tags: 
Forums: 

Teradata Python Module: fails on first attempt, succeeds on 2nd

$
0
0

I am new to python, and am finding that my first attempt to connect via ODBC always fails with the error you see below, however the 2nd attempt, immediately afterwards, always succeeds, and does so pretty quickly.  Any thoughts on why this might be?  I would like to test to for a successful connection in a loop, like with a 'try' statement, but not sure how to do that.   All suggestions appreciated.
 
Here is the test script I'm attempting to run.  ( I just added the queryTimeout to see if it made a difference -- it didn't):
 

import teradata

 

udaExec=teradata.UdaExec()

 

with udaExec.connect("${dataSourceName}") as session:

        for row in session.execute("SELECT max(calendar_dt) from myDB.myTableName", queryTimeout=120):

                print(row)

 
######### first attempt results###############
bash-3.2$ python testConnection.py

Traceback (most recent call last):

  File "testConnection.py", line 5, in <module>

    with udaExec.connect("${dataSourceName}") as session:

  File "/Applications/anaconda/lib/python3.5/site-packages/teradata/udaexec.py", line 172, in connect

    **args))

  File "/Applications/anaconda/lib/python3.5/site-packages/teradata/tdodbc.py", line 367, in __init__

    checkStatus(rc, hDbc=self.hDbc, method="SQLDriverConnectW")

  File "/Applications/anaconda/lib/python3.5/site-packages/teradata/tdodbc.py", line 199, in checkStatus

    raise DatabaseError(i[2], u"[{}] {}".format(i[0], i[1]), i[0])

teradata.api.DatabaseError: (60, '[HYT00] [Teradata][Unix system error]  60 Socket error - No response received when attempting to connect to the Teradata server')

 

 

######## 2nd attempt results ############

 

bash-3.2$ python testConnection.py

Row 1: [2016-03-25]

Forums: 

Retreiving database name from JDBC connection

$
0
0

The connection URL for JDBC I use:
jdbc:teradata://10.21.10.9/TMODE=ANSI,CHARSET=UTF8,DATABASE=DB_ABCDEF
I know that you can get the current database by querying it with "select database".
My question is:
Is there any "lightweight" way to retreive the database name specified in the JDBC connection string from the java.sql.Connection-Object WITHOUT building a statement, executing it and parsing the resultset?
 

Forums: 

Create Volatile Tables in Visual Basic 2010

$
0
0

Hi all

i'm working in Visual Basic 2010 trying to create several volatile tables in Teradata database. The program creates some volatile tables and sometimes in random way (not for the same table), after the step of creation of the table, trying to read it, I receive the following error: "Tablename doesn't exist".

After this error, if I continue with the process, the following queries (create and read) runs correctly.

Below the connection string and an example of creation and reading queries:

<<

MDB4 = CreateObject("ADODB.Connection")
connessione = "Provide=.NET Framework Data Provider for Teradata;DSN="& TeradataComboBox.SelectedItem.ToString & ";Database=P_Zxx_xx;UID="& UsernameTextBox.Text & ";PWD="& PasswordTextBox.Text & ";Connection Timeout=550"
MDB4.CommandTimeout = 0
MDB4.Open(connessione)

SQLA = "Create Volatile multiset table AF01_FACT as "& _
"(SELECT counterparty_cd, cast(acct_id as char(20)) as acct_id_2, nominal_amt, bucket_type_amt "& _
"FROM P_Zxx_xxx.FACT_Table "& _
"WHERE REFERENCE_DT = '"& DATA_2 & "' ) "& _
"with data on commit preserve rows"
RCD = MDB4.Execute(SQLA)

SQLA = "Select count(*) from AF01_FACT "
RCD = MDB4.Execute(SQLA)
>>

Forums: 

cannot connect to Teradata via perl on linux - getting core dumps

$
0
0

[:home/cl2515/perl] perl -MDBI -e 'DBI->installed_versions;'
  Perl            : 5.016003    (x86_64-linux)
  OS              : linux       (2.6.32-220.4.2.el6.x86_64)
  DBI             : 1.631
  DBD::Teradata   : 1.52
    DBD::ODBC       : 1.52
 
My code
use DBI;
use DBD::ODBC;

my $user = 'cl2515';
my $pw = 'XXXXX';
my $dsn = "dbi:ODBC:DWSAND";

my $dbh = DBI->connect($dsn, $user, $pw,
{PrintError => 1, RaiseError => 1}); 
 

/opt/teradata/client/15.10/bin/tdxodbc64

 

Enter Data Source Name: DWSAND

Enter UserID: cl2515

Enter Password:

 

Connecting with SQLConnect(DSN=DWSAND,UID=cl2515,PWD=*)...

 

.....ODBC connection successful.

 

ODBC version        = -03.52.0000-

DBMS name           = -Teradata-

DBMS version        = -14.10.0508  14.10.05.08-

Driver name         = -tdata.so-

Driver version      = -15.10.00.01-

Driver ODBC version = -03.51-

 

(type quit to terminate adhoc)

Enter SQL string :

 

 

when I run tdxodbc64 I am successfull but when I run my code above i get a core dump.Any help is appreciated . thank you

Collins

 

 

 

Forums: 

Connectivity issue

$
0
0

Hi All;
I have installed the drivers for php on a RHEL 7 system. I've configured the odbc.ini with the same settings I had on an older system but I am getting this error when trying to load a page that queries the database. Installed driver is 15.10

Warning: odbc_connect(): SQL error: [Teradata][ODBC Teradata Driver] Loading the Teradata ICU Library Failed. USelDir Library returned an error. Error is: The owner of the "/opt/teradata/client/15.10/.genuine_TTU" file is not as expected., SQL state S1000 in SQLConnect in /var/www/html/index.php on line 12

Using the tdxodbc64 utility I get

[umpcrcl@hllumpweb:/opt/teradata/client/etc] $tdxodbc64 

tdxodbc64: /lib64/libodbcinst.so: no version information available (required by tdxodbc64)

tdxodbc64: /lib64/libodbc.so: no version information available (required by tdxodbc64)

 

Enter Data Source Name: DSN-NAME

Enter UserID: <User-ID>

Enter Password: ***********

 

Connecting with SQLConnect(DSN=DSN-NAME,UID=<User-ID>,PWD=*)...

 

adhoc: SQLError() couldn't find text, RC=100

 

ODBC connection closed.

 
Any ideas what could be causing this issue?
Any help is appreciated.
Thanks,
Atilio

Forums: 

Delay in establishing connection form hibernate to Teradata.

$
0
0

We are using JDBC template to estatblsih connection bewteen Application and Teradata,but it's taking more than 15 sec to establish connection. Anyone can help us to solve this. 

Forums: 

Javascript & Iframe, auto fill-out user name and password

$
0
0

Hi All
Aside from compliance considerations, is there any way to auto-populate the username and password fields when embedding Teradata Views via the Javascript API.
I can easily get the API to work, but usually I would use javascript to change the <iframe> form values, but somehow I cannot access the input fields.
 
Anybody with some advice, on how to access the input fields "name" and "pw", so one can change their values, using javascript or JQuery?
 
Best regards
Chris

Forums: 

dbc.sessioninfo.ClientOsName on Windows10

$
0
0

hi,
when i connect to Teradata from Windows10 x64 using SQLA,
dbc.sessioninfo.ClientOSName does not indicate accurate OS name. but
i can get correct name when using Teradata Studio Express.
i hope ODBC and .NET Tera 'd be revised... 
 
Teradata: 14.00.02.11
SQLA:15.00
TDStudioExpress:15.10.01.01.201601251512
ODBC:15.00.00.01
.NET Tera:14.11.0.1
JDBC:JRE1.8.0_91
 
dbc.sessioninfo.ClientOSName
  SQLA via ODBC: Windows 6.2 X86
  SQLA via .NET Tera: Microsoft Windows NT 6.2.9200.0
  TeradataStudioExpress via JDBC: WINDOWS 10 10.0 AMD64
 
thanks.
 

Forums: 

Teradata JDBC connectivity with ODI 12c

$
0
0

Folks,
I am trying to connect Teradata database with ODI. While trying to create physical architecture in ODI, Teradata connectivity is not working.I am getting the below error.
Could not load JDBC driver class [com.teradata.jdbc.TeraDriver]
The Full error message is
java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not load JDBC driver class [com.teradata.jdbc.TeraDriver]
    at oracle.odi.core.datasource.provider.AbstractDataSourceProvider.configure(AbstractDataSourceProvider.java:106)
    at oracle.odi.core.DataSourceManager$LoginTimeoutDataSourceProviderProxy.configure(DataSourceManager.java:305)
    at oracle.odi.core.DataSourceManager.createAndConfigureDataSourceProvider(DataSourceManager.java:231)
    at oracle.odi.core.DataSourceManager.access$000(DataSourceManager.java:57)
    at oracle.odi.core.DataSourceManager$1.create(DataSourceManager.java:76)
    at org.springframework.util.CachingMapDecorator.get(CachingMapDecorator.java:152)
    at java.util.Collections$SynchronizedMap.get(Collections.java:2584)
    at oracle.odi.core.DataSourceManager.getDataSource(DataSourceManager.java:154)
    at oracle.odi.core.OdiInstance.lookupDataSource(OdiInstance.java:1151)
    at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.getDataSourceAdapter(DwgConnectConnectionCreatorImpl.java:127)
    at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.createDwgConnectConnection(DwgConnectConnectionCreatorImpl.java:111)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.getLocalConnect(SnpsDialogTestConnet.java:200)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$1100(SnpsDialogTestConnet.java:62)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$6.doInBackground(SnpsDialogTestConnet.java:400)
    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet$6.doInBackground(SnpsDialogTestConnet.java:396)
    at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:961)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Could not load JDBC driver class [com.teradata.jdbc.TeraDriver]
    at oracle.odi.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:178)
    at oracle.odi.jdbc.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:110)
    at oracle.odi.core.datasource.provider.DriverManagerDataSourceProvider.doCreateDataSource(DriverManagerDataSourceProvider.java:36)
    at oracle.odi.core.datasource.provider.AbstractDataSourceProvider.configure(AbstractDataSourceProvider.java:97)
    ... 17 more
 
Any help is greatly appreciated.
 

Forums: 

Teradata and Presto Connector

$
0
0

Hello,
I am using teradata vesion of Prestodb 141t to connect to different data sources and one of my datasource is teradata but there aren't any documenatation about the connector. Does prestodb have the ability to connect to Teradata? If yes, how could i set up my connector?
 
Thanks, Siva. 

Forums: 

Can not connect to TD from SQLA over home network, but can connect using BTEQ!

$
0
0

I have set up TD (rel 15.10.00.06, ver 15.00.00.07)  under VMPLAYER on a Windows 8.1 laptop connected to my home network. . I can access TD from Studio Express, BTEQ running under VMPLAYER on this laptop. IFCONFIG running on a GNOME terminal under VMPLAYER shows eth0 inet addr as 192.168.1.2. 
I have set up TTUExpress (15.00.00.00) on another PC running Windows 10, connected to home network. I can log on to TD on my laptop using with BTEQ, (15.00.00.00 for WIN32)  logon 192.168.1.2/uid; pwd. 
On my PC, using 'ODBC Driver Setup for Teradata Database' (ODBC Data Source Administrator (64 bits) and the same for 32 bits) I have setup TD connection with address 192,168.1.2/DBC in Teradata Server Info.
However, when I try to connect using this data source from SQLA , I get error '10065 WSA E HostUnreach: The Teradata server can't currently be reached over this network'.
Appreciate if someone can help!
 
 

Forums: 

TD JDBC Driver Upgrade question

$
0
0

We are currently on TD 14.10 and use the JDBC driver 15.00.00.20. We  are upgrading to TD 15.10 but are not using any features from 15.10. Is it safe to keep using the 15.00.00.20 driver with TD 15.10 database?

Forums: 

Error on read with WebFocus

$
0
0

When we run the select statement query from a view using SQL Passthru we are getting the below error:

 (FOC1400) SQLCODE IS 3996 (HEX: 00000F9C)
 : Right truncation of string data.

When I googled I got the answer that we need to add MODE option to the connect statement, however we have a locked down system and the developer advises that he cannot add the parameter in the SQL Passthru

There is another very similar view that works fine, the difference with this one is that I am having to cast out as Varchar(80) for the UNION to work.

Is there anything that should be done in the view code to serve the data in a different format? Or where do we look in WebFocus connections?
All advice gratefully received! Thank you
 

Forums: 
Viewing all 445 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>