Hi All ,
I m trying to connect to TERADATA server from SSIS using .Net Providers\.Net data provider for TERADATA. After giving the server name and credentials i m getting the below error.
Test connection failed because of an error in initializing the provider.[.Net data provider for teradata][100002] can not create the connection wiyhin the time specified.
I have googled a lot but did not find any correct solution.I m struggling from last 2 days. Could you please help me in this as it is bit urgent.
Thanks in Advance.
GTREDDY
Unable to connect to TERADATA from SSIS ADO.Net source
Issue Loading Records from Informatica to Teradata Using Odbc Connection
Hi Everyone,
It is a strange issue, I am loading few records from SAP source to Target TD table through Informatica after ABAP generation. Now the issue is that every time I load with any range of Data reading from param file, its always the first 2 records gets rejected.
Issue on session log is - [Teradata][ODBC Teradata Driver] Invalid date/time/timestamp value
I have changed the code page settings from UTF8 to ASCII, now only the first record is getting rejected.
Do I need to do further modification in Code page of connection? or there is some other issue at TD side?
Stuck up with this issue for 2 days. Please help as soon as possible.
Thanks,
Guha.
.NET Data Provider Teradata - Session Issue - Volatile Table
Teradata Fans,
I have a problem with the .NET provider in SSIS & a stored procedure in Teradata. I have developed stored procedure that creates a volatile table. This volatile table will be used during the execution of 1 SSIS package. I have 64 SSIS packages that make use of the same stored procedure in Teradata. All these packages will create 1 volatile table with the same name in Teradata.
The 64 SSIS packages run parallel in a Master SSIS Package. When I run the Master package a got the error message that the volatile table already exists. This is strange. I thought that every package had a different session? Bottomline: how do I force SSIS to make a new session for every call to the Teradata stored procedure?
Anybody encountered the same issue?
Teradata .NET data provider - LEFT() function doesn't work in both V13.x and V14.x of SQL Assistant?
Just wondering why the string function LEFT() doesn't work with the Teradata .NET provider in both versions of SQL Assistant V13.x and v14.x. It works perfectly well when use ODBC with SQL Assistant the same function. I had to convert to substr() to make it work for both ODBC and Teradata .NET. Unfortunately I'm forced to use ODBC at the client side. Do I need an updated driver? Is there a fix?
Thanks
Chris
Teradata - Informatica - Linux - tbuild -V not found
Hi All,
My name is Srinath I have installed TTU 13.10 in linux Server . For the first time of installation it was successful but we had few issues so had to uninstall or remove the TTU and TPT and install in different path.
When I first Installed it was successful .I cross checked with all the commands (BTEQ,FAST EXPORT, tbuild -V etc) every thing was successful but when I installed in new mount point(/opt/teradata ) after removing all the directories and all the files it was successful I was able to test it with BTEQ,FASTEXPORT and other commands except
tbuild -V .
When I say this it says /usr/localcw/bin/eksh:not found [No Such file or Directory].
Can any one help me . 1. What this tbuild does ? why are the rest of commands successful ? what happens if this is not resolved? How do I resolve
Teradata JDBC fastload hangs after 50K records
Hello Teradata experts,
I'm now working on optimization of loading of data into Teradata.
Our application allows to load big csv files by means of jdbc connection and executeBatch.
I've run the load with a relatively big dataset (about 6M rows and 1.2 Gb of data). I've started with our default parameters:
1) batch size = 1000 records
2) a target table had a primary key constraint
The load was very slow and could take about 3-4 hours.
When I've increased the batch size to 50000, and made a source table "multitable" and NoPI, the loading time decreased dramatically to about 10-12 min, which is already acceptable for us.
I also wanted to evaluate the "FASTLOAD" tool and set the type=FASTLOAD in our jdbc connection string.
However, when I try to load data with the fastload, it seems to hang after 50K loaded records (and it doesn't matter whether the batch size = 1000 or 50000). I also found a similar topic here: http://forums.teradata.com/forum/connectivity/teradata-jdbc-fastload-hangs-after-approximately-50-batch-insert
What could be the reason for such a behavior and how could we avoid it?
Many thanks for any hint!
Katja
Parameter for no of connections or sessions to Teradata
2015-06-23 15:00:37,075 [Thread-11] ERROR com.XXX.dataconnector.ClientThread - Unable to load connector and populate data: Unable to read data source; [Teradata JDBC Driver] [TeraJDBC 14.10.00.17] [Error 1000] [SQLState 08S01] Login failure for Packet receive Tue Jun 23 15:00:37 CDT 2015 socket orig=eiwu.XXX.com local=0.0.0.0/0.0.0.0:59166 remote=eiwucop8.XXX.com/159.37.103.120:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=65 connecttotaltime=65 connectattempts=1 connectfailures=0 failurecache={} cid=55830d39 sess=21349985 java.io.IOException: Incomplete LAN message header: read 0 bytes at com.teradata.jdbc.jdbc_4.io.TDNetworkIOIF.read(TDNetworkIOIF.java:689) at com.teradata.jdbc.jdbc_4.io.TDPacketStream.readStream(TDPacketStream.java:838) at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:498) at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:216) 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:232) at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:158) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:221) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getConnection(DatabaseCachePlugin.java:32) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getRecords(DatabaseCachePlugin.java:86) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getBatchRecords(DatabaseCachePlugin.java:48) at com.XXX.dataconnector.ClientThread.run(ClientThread.java:57) com.XXX.dataconnector.DataIndexException: Unable to read data source; [Teradata JDBC Driver] [TeraJDBC 14.10.00.17] [Error 1000] [SQLState 08S01] Login failure for Packet receive Tue Jun 23 15:00:37 CDT 2015 socket orig=eiwu.XXX.com local=0.0.0.0/0.0.0.0:59166 remote=eiwucop8.XXX.com/159.37.103.120:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=65 connecttotaltime=65 connectattempts=1 connectfailures=0 failurecache={} cid=55830d39 sess=21349985 java.io.IOException: Incomplete LAN message header: read 0 bytes at com.teradata.jdbc.jdbc_4.io.TDNetworkIOIF.read(TDNetworkIOIF.java:689) at com.teradata.jdbc.jdbc_4.io.TDPacketStream.readStream(TDPacketStream.java:838) at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:498) at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:216) 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:232) at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:158) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:221) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getConnection(DatabaseCachePlugin.java:32) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getRecords(DatabaseCachePlugin.java:86) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getBatchRecords(DatabaseCachePlugin.java:48) at com.XXX.dataconnector.ClientThread.run(ClientThread.java:57) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getRecords(DatabaseCachePlugin.java:165) at com.XXX.dataconnector.plugin.DatabaseCachePlugin.getBatchRecords(DatabaseCachePlugin.java:48) at com.XXX.dataconnector.ClientThread.run(ClientThread.java:57)
Hi ,
We have an application trying to connect to Teradat using JDBC driver to unload data. However, it seems that they get the above error . They have 2 parameters that they pass - MAxstages (set to 6) and Batchrepeat (set to 60). They start with setting maxstages to 10 but get the following error for 3 threads out of 10. So they think that Teradata is allowing only 7 sessions maximum, however I do not see the session count parameter being passed in config script. So what is the parameter that can be set to limit the number of connections to teradata? Is maxstages parameter different from the sessions count parameter?
Any inputs appreciated.
Teradata Kerberos : Failure server not found in kerberos database
Hello All,
We are trying to setup Kerberos client on a Teradata VM. We have followed all the steps mentioned in info.Teradata
We stuck at the last step. When we try to login. we are getting error as
*** CLI Error : MTDP : EM_GSSCALLFAIL(236) : call to gss_call failed. Failure server not found in kerberos database
We have tryied all permuation combinations and solutions given on internet, but of no use. Please advice
SSIS Teradata Source
Hi all,
I have a big problem on my BI project. I am using MS SSDT. I have already installed Teradata Connectors for .NET. I created an SSIS project and got a Teradata Source. However since I installed two versions I currently have the error:
The Teradata TPT Registry key account cannot be opened. Verify that the TPT API or 13.0 Edition 2 (13.0.02) for Windows x86 is installed properly.
I've searched for a solution to it. I read something on somewhere, the application key must be updated on registry settings.
I opened registry and I saw there are two different versions on client: 14.10 and 15.00.
I don't know registry settings very well. So I dont't know what to do.
What can you suggest to me?
305 NOREQUEST Specified request does not exist.
Hi,
Getting "305 NOREQUEST Specified request does not exist." Error while creating Volatile table through SAS connection string.
What could be the issue ?
Thanks in Advance.
Teradata Connection pooling : com.teradata.jdbc.TeraConnectionPoolDataSource . Creating large number of connections
Using com.teradata.jdbc.TeraConnectionPoolDataSource for pool based datasource in a application. Below are the configurations..
<property name="minPoolSize" value="2" />
<property name="maxPoolSize" value="60" />
<property name="maxStatements" value="100" />
<property name="InitialPoolSize" value="2" />
<property name="maxIdleTime" value="15" />
Over an hour, even if there are few queries fired from the application, observed that there are about 500+ connections being created.
Questions is: How does the pool work? Does it create 2 as part of the initial poolsize and after 15 seconds (of maxIdletime)...does it destroy the connections? and recreate 2 more connections (minpoolsize) ?
It is quite strange to see so many (500+) connections being created even if the application is not firing any DB queries to use connections.
Issue with connection using RODBC to Teradata
I am facing this issue on Red Hat Linux Server while connecting using R onto Teradata 14.10.
I am using R-3.2.1 and Teradata 14.10 client. Also installed RODBC package.
Below is the error I am noticing:
$ R
> library(RODBC)
> db <- odbcConnect("testdsn", uid = "userid", pwd = "password")
Warning message:
In odbcDriverConnect("DSN=testdsn;UID=userid;PWD=password") :
ODBC connection failed
> q()
Below are the contents of the odbc.ini and odbcinst.ini files:
odbc.ini contents:
[ODBC]
InstallDir=/opt/teradata/client/14.10/odbc_64
Trace=0
TraceDll=/opt/teradata/client/14.10/odbc_64/lib/odbctrac.so
TraceFile=/usr/joe/odbcusr/trace.log
TraceAutoStop=0
[ODBC Data Sources]
testdsn=tdata.so
[testdsn]
Driver=/opt/teradata/client/14.10/odbc_64/lib/tdata.so
Description=Teradata database
DBCName=<TD server IP address given>
LastUser=
Username=userid
Password=password
Database=
DefaultDatabase=
--------------------------------
odbcinst.ini contents:
[ODBC DRIVERS]
Teradata=Installed
[Teradata]
Driver=/opt/teradata/client/14.10/odbc_64/lib/tdata.so
APILevel=CORE
ConnectFunctions=YYY
DriverODBCVer=3.51
SQLLevel=1
-------------------------------------
I have also set the ODBCINI environment variable and also included the necessary path inLD_LIBRARY_PATH.
Request you to provide any suggestions on this issue. Am i missing any other settings.
Teradata VM - Outside connection
Hi Experts
I am pretty new in Teradata, I have just installed Teradata Express for VMware
Can I configure this Teradata environment to connect from my Laptop? And not from inside of the VM?
Please can you share the procedure to configure this environment?
Thank you
Need some help with SAS connection via CLIV2
Background:
We use SAS 9.4 under windows to access our Teradata data warehouse running 14.1. Since the update from Teradata 13 to 14, our SAS connections have been terminating due to TDWM throttle rules. Our data warehouse analysts and a consultant from Teradata have confirmed that the throttle rules have been fixed to delay, not abort queries. Still the problem persists. Problem seems to be limited to SAS users connecting via SAS/Access for Teradata using CLIV2; SAS users connecting via ODBC have not been failed due to throttle rules.
Further research has revealed that there is a new yes/no datum in the 14.10 CLIV2 driver called TASM_FastFail_Req and that it is apparently application-based. Hence the ODBC difference from CLIV2, by my reasoning. I would like to view the settings of my CLIV2 connection to Teradata but I have no idea how to do it from within SAS. There appear to be some commands one can issue and get a response back from the data warehouse but I'm way out of my depth. For example:
DBCHQE is a query facility that enables you to request system default information from the Teradata Database prior to logging on, thereby allowing you to make changes before starting a session.
Can anyone shed some light on how I can see what the state of TASM_FastFail_Req is when I connect, and how I would go about changing that if I need to?
Thanks.
linux teradata ODBC SQLConnect Error
I can successfully connect to DB2 using my odbc files. But when I try it with Teradata I get the following error:
$ /opt/teradata/client/13.10/odbc_64/samples/C/adhoc
/opt/teradata/client/13.10/odbc_64/samples/C/adhoc: /usr/lib64/libodbc.so: no version information available (required by /opt/teradata/client/13.10/odb c_64/samples/C/adhoc)
Enter Data Source Name: TDProd
Enter UserID: <username>
Enter Password: *****
Connecting with SQLConnect(DSN=TDProd,UID=walkera,PWD=*)...
adhoc: SQLError() couldn't find text, RC=100
ODBC connection closed.
In my odbc.ini file I have the following entries:
[ODBC]
InstallDir=/opt/teradata/client/13.10/odbc_64
Trace=0
TraceDll=/opt/teradata/client/13.10/odbc_64/lib/odbctrac.so
TraceFile=/usr/joe/odbcusr/trace.log
TraceAutoStop=0
[ODBC Data Sources]
testdsn=tdata.so
[testdsn]
Driver=/opt/teradata/client/13.10/odbc_64/lib/tdata.so
Description=Teradata running Teradata V1R5.2
DBCName=*******
LastUser=
Username=
Password=
Database=
DefaultDatabase=
And in my odbcinst.ini file I have this entry for Teradata:
[ODBC DRIVERS]
Teradata=Installed
# Example driver definitions
# Driver for Teradata
[Teradata]
Driver=/opt/teradata/client/13.10/odbc_64/lib/tdata.so
APILevel=CORE
ConnectFunctions=YYY
DriverODBCVer=3.51
SQLLevel=1
Any idea what I'm doing wrong here? BTEQ works fine
BTEQ 13.10.00.06 Tue Jul 28 17:12:52 2015
+---------+---------+---------+---------+---------+---------+---------+----
.RUN FILE /home/<username>/TDlogin;
+---------+---------+---------+---------+---------+---------+---------+----
.logmech ldap
+---------+---------+---------+---------+---------+---------+---------+----
.LOGON ****/<username>,
*** Logon successfully completed.
*** Teradata Database Release is 14.00.04.09
*** Teradata Database Version is 14.00.04.09
*** Transaction Semantics are BTET.
*** Session Character Set Name is 'ASCII'.
*** Total elapsed time was 1 second.
+---------+---------+---------+---------+---------+---------+---------+----
*** Warning: EOF on INPUT stream.
+---------+---------+---------+---------+---------+---------+---------+----
.EXPORT DATA FILE=/home/<username>/output;
*** To reset export, type .EXPORT RESET
+---------+---------+---------+---------+---------+---------+---------+----
.set RECORDMODE OFF;
+---------+---------+---------+---------+---------+---------+---------+----
.set separator ","
+---------+---------+---------+---------+---------+---------+---------+----
.set heading '';
+---------+---------+---------+---------+---------+---------+---------+----
.set footing '';
+---------+---------+---------+---------+---------+---------+---------+----
.set titledashes off;
+---------+---------+---------+---------+---------+---------+---------+----
.set quiet on;
*** Type QUIET OFF; to resume output.
+---------+---------+---------+---------+---------+---------+---------+----
HELP COLUMN ESA_VIEWS.VDDA_FACT.*;
*** Total elapsed time was 2 seconds.
+---------+---------+---------+---------+---------+---------+---------+----
.EXPORT RESET
*** Output returned to console.
+---------+---------+---------+---------+---------+---------+---------+----
.LOGOFF
*** You are now logged off from the DBC.
+---------+---------+---------+---------+---------+---------+---------+----
.EXIT
*** Exiting BTEQ...
*** RC (return code) = 0
Does ODBC have an option for LOG=DEBUG like JDBC does?
One nice feature of the JDBC driver is the ability to specify how much logging output goes to stdout. For those who aren't familiar, you can pass LOG=DEBUG to get extremely detailed info from Teradata about how your queries are performing. See more in the JDBC docs ( https://developer.teradata.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_LOG ).
My question is, can ODBC do this or something similar to this? Sometimes I want to get as much info as possible from Teradata when I execute something, and I'd rather not use JDBC just for this purpose.
Sorry if this is a duplicate - I haven't found anything related to this after a few Googlings and Teradata doc searches.
Thanks,
William
TDAT ODBC and Windows 10
I've been trying to use the TTU 15 tools iwth Windows 10, and while SQL Assistant ("Queryman") in native Teradata mode works fine, I can't get it to work in ODBC; nor will Teradata Admin work.
Has anyone else encountered this? Is this me? Or are there some new drivers or work-arounds for this?
BTW, everything from the same install is working fine on Windows 8.1.
Any thoughts would be appreciated!
Calling Macro from .Net Provider
Hi,
I'm new to TeraData and need to call a Macro from C# using the .Net Provider.
I wasn't able to find any sample code, and not sure what the correct way to do this.
I don't want toe send "exec macroName(param1)" from my code, I would like to have something similar to the way i call procedures.
Can you please point me in the right direction?
Connecting into Teradata Database from IBMi AS400
Has anybody ever done connecting into Teradata Database and accessing it from IBMi AS400 ( using programming language RPGLE ).
I need help, guidance.
Thanks.
ExceptionInInitializerError while connecting to Teradata through JDBC Driver
Hi,
I am trying to read data from Teradata DB in a MapReduce job using the JDBC Driver. I get the following exception/stack trace:
Provided connection string: jdbc:teradata://teradata/database=dbname
java.lang.ExceptionInInitializerError: null
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getTDgssVersion(GenericTeraEncrypt.java:640) ~[na:na]
at com.teradata.jdbc.jdbc_4.parcel.ClientConfigParcel.toStream(ClientConfigParcel.java:54) ~[na:na]
at com.teradata.jdbc.jdbc_4.io.TDPacket.addParcel(TDPacket.java:98) ~[na:na]
at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:94) ~[na:na]
at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:208) ~[na:na]
at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>(JDK6_SQL_Connection.java:35) ~[na:na]
at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.constructSQLConnection(JDK6ConnectionFactory.java:25) ~[na:na]
at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:179) ~[na:na]
at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:169) ~[na:na]
at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:233) ~[1443013875589-0/:na]
at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:159) ~[1443013875589-0/:na]