Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Create back up tables using cursor - response (7) by mmanijay

Hi Raja, Yes,you are right.I know the back up table and add partition scripts. But I need to call the table name dynamically from dbc.tables instead of passing as parameter in the call procedure...

View Article


Teradata Spool issue in Recursive issue - forum topic by abhishek_abhishek

Hi , I am facing issues during the execution of one recursive query . means currently the query is running out of spool.  Even table size is < 500 MB and total record is 1800 . During execution...

View Article


Create back up tables using cursor - response (8) by Raja_KT

Read the databasename,tablename  from dbc tables.You can create the tables entry dynamically via DBC.SysExecSql. You can read the databasename, tablename in a loop by way of cursor.Did you see the...

View Article

Teradata Spool issue in Recursive issue - response (2) by abhishek_abhishek

Hi Below is the explain plan for that query :  Explain WITH RECURSIVE myquery(RESIL_CAUSE,DAY_ID ,SOURCE_ID,DAT_MAJ_TECH,RESILIATION_NBR,CONTENT_ID ,LINE_ID ,DEVICE_ID ,TYPE_BOX ,BOUQUET,level,path) AS...

View Article

Teradata Spool issue in Recursive issue - response (3) by Raja_KT

Whaw!!!! Even with volatile table or recursive view separately also, it may be slow. Finally you can insert to target table. Have you thought of it? You know the data well, since in your select you...

View Article


MODE and FORMAT - TD Utilities. - response (7) by Raj kumar T

  Hi Raja and Dnoeth,  Dnoeth as you said,"You can simply CAST any datatype to a CHAR to be able to use TEXT format. "   I've decided to CAST everything into CHAR.  As Raja said ------ casting the...

View Article

Teradata Spool issue in Recursive issue - response (4) by dnoeth

Did you ever run the SELECT on it's own?  IMHO there's no proper join-condition in the recursive part resulting in huge cross joins, you should check the result when you add a WHERE level <= 3....

View Article

MODE and FORMAT - TD Utilities. - response (8) by dnoeth

Hi Raj, again, those "unidentified things" are two bytes indicating the length of the resulting VarChar. This is a well-known problem with FExp, there's no built-in way to get delimited data without...

View Article


Data corruption in SCD 2 dim table - forum topic by singhabhijitkumar

Hi, We have a SCD 2 table PARTY_ID_HIST. It has a surrogate key named Party_sk based on the source system primary key party_id_num. Due to some code issue the table has been populated repeating values...

View Article


MODE and FORMAT - TD Utilities. - response (9) by Raja_KT

you can use vi editor to search and replace  unwanted characters --s/ //g or you can use sed -e 's/ //g'  Also, I hope you are trying tpt:   Please check the syntax. DEFINE JOB EXPORT_DELIMITED...

View Article

With Within With - forum topic by indexpert

Hi, Just wanted to know that ' is it possible to use CTE(Common table expression) within  another CTE? Ex: With CTE1 (c1,c2) as (select c1,c2 from table1), CTE2 (c1,c2,c3) as (select CTE1.c1, CTE1.c2,...

View Article

Create back up tables using cursor - response (9) by mmanijay

Hi Raja,  Thanks for your help.Its working now. My next step is to add the partition range. Ill contact you if I need any query.  Once again thank you so much for your help!!!

View Article

Create back up tables using cursor - response (10) by mmanijay

Hi Raja,  Im trying to write alter partition script and im trying to get the partition range using the system date.  For example using sysdate is in 2013 I need to get range as 201401 and 201412 If you...

View Article


MODE and FORMAT - TD Utilities. - response (10) by Raj kumar T

Thanks dnoeth !!! For time being I would go with stripping of the first two bytes using simple unix command. I will explore TPT later. But, I've read in the manual stating that,  The default FORMAT is...

View Article

MODE and FORMAT - TD Utilities. - response (11) by Raj kumar T

Hi Raja, I'm really appreciating your help for sharing TPT method, Currently I just want to explore Fast Export, Fast Load, Multiload TD Utilities.  As per my previous comment, Will it possible to use...

View Article


MODE and FORMAT - TD Utilities. - response (12) by Raja_KT

Very much you can do.  Also try to cast with the exact number of bytes for the entire  columns when you cast for the entire select and see.  Cheers, 

View Article

Create back up tables using cursor - response (11) by Raja_KT

You can use add_months function with  current_date or date. Cheers, Raja

View Article


Data corruption in SCD 2 dim table - response (1) by Raja_KT

Hi Singh, First thing is job security. Take back up always. You have not told about the SCD 2 , whether it is flag, version, start date end date or a combination of these. Sample data ?????? Once you...

View Article

Enabling MonSesCPUNormalization - forum topic by geethareddy

Hi All, I have a question on enabling MonSesCPUNormalization parameter. Currently we have appliance and enterprise platforms. I know With MonSesCPUNormalization enabled, exception management will...

View Article

Resource Partition Weight for Default partition in Priority Scheduler in...

Woody, I am just asking this to know what is the worst case scenario it leads to if i keep one or couple of workload definitions in to RP0? I heard many times that RP0 is strictly intended for internal...

View Article
Browsing all 14773 articles
Browse latest View live


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