Quantcast
Channel: Teradata Forums - All forums
Viewing all 27759 articles
Browse latest View live

TASM Workloads and frequent demotions - response (3) by crewdy

$
0
0

We have a let's say "challenging" workload. Andy know's as we both worked on the same datawarehouse. As Andy says statistics are imperative and collection schedule is too. Collect only if 10% of the rows have changed, if you collect too many times then this will impact on performance. Collect too infequently or not at all then you will get a drift in how many queries are reclassfied and eventually if the statistics are so far out the Optimiser could pick a wholly inappropriate execution plan and consequently be classified incorrectly. As you say the exception criteria have to carefully considered so as not to interfer with correctly classified work  in a lower priority workload.
I have done extensive analysis on TDWM estimates, classification and recleassification and have been able to reset the exception rules to demote based upon this data however it is constant challenge to get users to recollect stats at appropriate times. 
Happy to share findings
Nick


Concerning implementing an equivalent of the ORA / DB2 Sequence Object in Teradata - forum topic by karan_19111986

$
0
0

Hello All , Good Day,
Our client has given us a mandate to migrate their artefacts from one platform (DB2) and into Teradata v14.0.
During the ongoing data analysis phase, we have come across (apart from tables, views, indexes etc),  sequences as well as identity clauses. We feel that identity clauses are not an issue (for the migration ), but wanted to have an idea / general consensus in this forum as to what would be the best approach to migrate the stand alone sequence objects to the Teradata platform and in what manner. As per my understanding, Teradata does not have a direct equivalent for Sequence objects.
One important point to make here is that the client has a large number of stored procedures that have I/U/D statements, that utilize these sequence objects. We do not wish to drastically modify them, its best if these SPs are the least modified of the lot.
Thinking aloud, I was wondering if we could have Tables created in TD in place of these sequences in DB2, having columns equivalent to the Sequence parameters (INITVAL, NEXTVAL, MAXVAL, MINVAL etc..), and create a script (another SP) that knows how to utilize this Table appropriately, and call that script in these I/U/D statements -> That way I have least impact on the existing client SP scripts.
What do you think ? Is there a better way ? If so, kindly advise.
Regards,
Karan

Forums: 

Mload - execute a file in batch mode, invalid statement was found - response (3) by cheeli

$
0
0

Hi Experts,
Looking for some help on this...
After this, I can move on exploring Mload utility.
 

Identifying System Restart - forum topic by Kishore_1

Bad character in format or data - forum topic by Jugalkishorebhatt1

$
0
0

Hi All,
Not able to figure about the below cause for error. The error is relating to casting. But when i tried cast f12 while inserting the data still i am getting the same error. Please help me to solve this issue.
.logon home/jbhatt,jugal
 .import vartext ',' file=/home/jbhatt/insert.txt
 .quiet on
 .repeat*
 using
 f1 (VARCHAR(40)),
 f2 (VARCHAR(40)),
 f3 (CHAR(40)),
 f4 (CHAR(4)),
 f5 (VARCHAR(40)),
 f6 (VARCHAR(40)),
 f7 (VARCHAR(40)),
 f8 (VARCHAR(40)),
 f9 (VARCHAR(40)),
 f10 (VARCHAR(40)),
 f11 (VARCHAR(40)),
 f12 (VARCHAR(40)),
 f13 (VARCHAR(40)),
 f14 (VARCHAR(40)),
 f15 (VARCHAR(40)),
 f16 (VARCHAR(40)),
 f17 (VARCHAR(40)),
 f18 (VARCHAR(40))
 insert into dbjugal.tbjugal values(:f1,:f2,:f3,:f4,:f5,:f6,:f7,:f8,:f9,:f10,:f11,: f12,:f13,:f14,:f15,:f16,:f17,:f18);
 .logoff
 .quit
 
 
  *** Starting Row 0 at Thu Feb  6 15:14:27 2014
 *** Failure 2621 Bad character in format or data of tbjugal.f12.
                Statement# 1, Info =0
 *** Total elapsed time was 1 second.

 *** Warning: Out of data.
 *** Finished at input row 1 at Thu Feb  6 15:14:27 2014
 *** Total number of statements: 1,  Accepted : 0,  Rejected : 1
 *** Total elapsed time was 1 second.
 BTEQ -- Enter your SQL request or BTEQ command:
 *** Warning: EOF on INPUT stream.
.logoff
 
 
 Data i am importing is from a text file(insert.txt). Given below:

 5461,1000,null,XXX,3020,12,198.59,1,1,0,198.59,null,null,null,null,978,998,999
 
 
 
 CREATE MULTISET TABLE dbjugal.tbjugal ,NO FALLBACK ,
      NO BEFORE JOURNAL,
      NO AFTER JOURNAL,
      CHECKSUM = DEFAULT,
      DEFAULT MERGEBLOCKRATIO
      (
       f1 BIGINT NOT NULL,
       f2 INTEGER NOT NULL,
       f3 CHAR(40) CHARACTER,
       f4 CHAR(4) CHARACTER ,
       f5 INTEGER NOT NULL ,
       f6 BYTEINT ,
       f7 DECIMAL(15,2) COMPRESS(198.59),
       f8 INTEGER ,
       f9 INTEGER ,
       f10 INTEGER ,
       f11 DECIMAL(15,2) COMPRESS (198.59),
       f12 DECIMAL(15,2) COMPRESS
       f13 INTEGER ,
       f14 INTEGER ,
       f15 INTEGER ,
       f16 INTEGER ,
       f17 INTEGER ,
       f18 INTEGER
 PRIMARY INDEX (f1,f2,f3);

BTEQ and the Commit statement - forum topic by v_gabrielli

$
0
0

hello everyone, is there a method in BTEQ that I do not need to enter COMMIT after every action.. I have a very big script with full

of commands to perform..  when I do it SQL assistant it works.. and I had to enter all the commit statements... I think it could be something with Ansi or Teradata mode??? would appreciate some guidence..  thks Vince

 

.LOGON 2/XFAH;

DATABASE PROD_TABLE;

COMMIT WORK;

CREATE SET TABLE TACCT_CLSFN ,NO FALLBACK ,

  NO BEFORE JOURNAL,

  NO AFTER JOURNAL

  (      

   ACCT_CLSFN_CD        SMALLINT NOT NULL,

   ACCT_CLSFN_E_DESC    VARCHAR(25) CHARACTER SET LATIN NOT CASESPECIFIC,

   ACCT_CLSFN_F_DESC    VARCHAR(25) CHARACTER SET LATIN NOT CASESPECIFIC,

   EFF_DT               DATE NOT NULL,

   EXPY_DT              DATE)

UNIQUE PRIMARY INDEX ( ACCT_CLSFN_CD );

COMMIT WORK;

CREATE SET TABLE TIVR_ACD_NUMBER ,NO FALLBACK ,

  NO BEFORE JOURNAL,

  NO AFTER JOURNAL

  (      

   AUTO_CALL_DIST CHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,

   EFF_DT               DATE NOT NULL,

   ACD_NUMBER_E_DESC    VARCHAR(50) CHARACTER SET LATIN NOT CASESPECIFIC,

   ACD_NUMBER_F_DESC    VARCHAR(50) CHARACTER SET LATIN NOT CASESPECIFIC,

   EXPY_DT              DATE)

UNIQUE PRIMARY INDEX ( AUTO_CALL_DIST, EFF_DT );

COMMIT WORK;

 

etc...

Forums: 

Identifying System Restart - response (1) by Raja_KT

$
0
0

select  * from DBC.Software_Event_LogV where Text like '%Restart%'
and then search and sort manually.
Please let me know.
Cheers,

TD Newbie: help needed to Convert rows to a column - response (1) by govind.gg

$
0
0

Hello TD Gurus - any help you can provide to resolve my query above would be greatly appreciated...please help..!


Load Nulls with R & JDBC Fastload Problem - response (3) by tomnolan

$
0
0

Well, I'm not an R programmer, so sorry that the j[i1] <- NA didn't fix the problem for you.
 
Types.INTEGER is a Java constant value equal to 4. Perhaps R does not provide access to the Types.XXX constants? Try specifying 4 instead of Types.INTEGER.

JDBC URL specify failover server - response (1) by tomnolan

$
0
0

First, we need to understand what you are trying to do. Are you trying to fail over to a different node within the same Teradata Database system, or are you trying to fail over to a different Teradata Database system?
 
For the first scenario -- fail over to a different node within the same Teradata Database system -- beginning with Teradata Database 14.10 and Teradata JDBC Driver 14.10.00.26, we offer a feature called "Recoverable Network" that enables reconnects after network failures or Teradata Database restarts. With older software versions, a legacy Teradata reconnect feature can be used, but it is not recommended for a web application that uses connection pooling.
 
For the second scenario -- fail over to a different Teradata Database system -- our Unity Director product is the official recommended solution.

TD Newbie: help needed to Convert rows to a column - response (2) by M.Saeed Khurram

$
0
0

These two threads contain the similar solution, Hope it will help you.
http://forums.teradata.com/forum/database/need-to-convert-rows-to-columns
http://forums.teradata.com/forum/database/transpose-rows-to-columns-0
 

Ranking the values ignoring duplicates - response (1) by M.Saeed Khurram

$
0
0

Hi,
You can use dense rank function to get this output.
http://www.info.teradata.com/htmlpubs/DB_TTU_14_00/index.html#page/SQL_Reference/B035_1145_111A/User-Defined_Functions.093.48.html
 

Possible to install both 13 and 14 versions of the driver? SUSE Linux - response (1) by vhari

$
0
0

No.  TTU does not support co-existence of multiple versions.

Teradata Training Material available - response (284) by topatec

Load Nulls with R & JDBC Fastload Problem - response (4) by ulrich

$
0
0

Unfortunatly it does not help.
Error message is now:
Fehler in .jcall(ps, "V", "setNull", as.integer(3), 4) :
  method setNull with signature (ID)V not found


Load Nulls with R & JDBC Fastload Problem - response (5) by ulrich

$
0
0

P.S. I am not a Java programmer.
Does null loads with JDBC Fastload work in a pure Java implementation?
So is this clearly a R problem?
 

Teradata Learning Materials - forum topic by prith24

$
0
0

Hi Everyone,
I am  new to the forum and Teradata. I have been working on Oracle database for the past 3 years but have no exposure to Teradata. I would dearly love to know Teradata and its usefullness in Data Warehousing.
Can anyone of you please tell me where to find learning materials for Teradata. What I am looking for is the SQL and PL/SQL replica of teradata since I would be mainly working on the back end. 
Thank you for all your help
Regards,
Prithwish

Forums: 

Load Nulls with R & JDBC Fastload Problem - response (6) by tomnolan

$
0
0

Yes, JDBC FastLoad supports NULLs.
 
The signature (ID)V means that R is attempting to call a method that has int and double arguments, and returns void. Such a method doesn't exist; hence the error. In other words, the value 4 is treated by R as a double value. Instead, it needs to be an int value.
 
Please try:
.jcall(ps, "V", "setNull", as.integer(3), as.integer(4))

TD Newbie: help needed to Convert rows to a column - response (3) by govind.gg

$
0
0

Thank you Saeed. I shall try these and will update you with my findings..!!

Export from SQL Server to Teradata Temp tables - response (5) by Richard34

$
0
0

Thanks Adeel and Saeed for your responses.  I don't have permission to create a permanent table on the server. (What is the difference between a global table and a permanent table?) A global table would be great if it persists on the server.  I tried creating a temp table through an OLE DB connection to Teradata, but it didn't recognize keyword Volatile.  I am using an OLE DB dataflow source in SSIS to retrieve data from SQL Server for the temp table.  This pulls 170 records. I then need to join this new temp table with a view to filter data in Teradata.  The view returns about 50K records.  The result set needs to be exported back to SQL server.  Please advise how to create and populate a temp table in Teradata with data from SQL Server, join to a view, and export the results back to SQL Server.

Viewing all 27759 articles
Browse latest View live


Latest Images

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