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

Numeric overflow issue - response (1) by Raja_KT

$
0
0

Check once again the precision. If you can share the source and its data type and the target and its datatype.
To avoid re-work, I am posting a reference of the past posts of our friends here. It may help you identify.
https://forums.teradata.com/forum/database/numeric-overflow-error-in-teredata
 


*** Error 3156 Request aborted by TDWM. Exception criteria exceeded: - forum topic by reddyrajendra2014

$
0
0

*** Error 3156 Request aborted by TDWM. Exception criteria exceeded: .
                  Statement# 1, Info =0
 *** Total elapsed time was 8 minutes and 50 seconds.
 
When i run my Stored Procedure ,am getting above error.
Could you plz help me , how to get resolve this error.
 

Forums: 

Delete from table all - response (4) by reddyrajendra2014

$
0
0

Thank u dieter..its really helpful .

Blank space check based on the position - response (10) by reddyrajendra2014

$
0
0

Can you plase check below code.
 
sel
'abc def' as str1
,'abcdef' as str2
,char(str1)
,char(oreplace(str1,'',''))
,char(str2)
,case when char(str1)<>char(oreplace(str1,'','')) then 'SPACE IS PRESENT' ELSE 'No SPACE' END
,POSITION( '' IN  str1)
,POSITION( '' IN  str2)

 

Blank space check based on the position - response (11) by reddyrajendra2014

$
0
0

PFB ::
sel
'abc def' as str1
,'abcdef' as str2
,char(str1)
,char(oreplace(str1,'',''))
,char(str2)
,case when char(str1)<>char(oreplace(str1,'','')) then 'SPACE IS PRESENT' ELSE 'No SPACE' END
,POSITION( '' IN  str1)
,POSITION( '' IN  str2)

;

 *** Query completed. One row found. 8 columns returned.
 *** Total elapsed time was 1 second.

str1     str2    Characters(str1)  Characters(oreplace(str1,'',''))  Characters(str2)  <CASE  expression>  Position('' in str1)  Position('' in str2)
-------  ------  ----------------  ---------------------------------  ----------------  ------------------  ---------------------  ---------------------
abc def  abcdef                 7                                  6                 6  SPACE IS PRESENT                        4                      0
 

Stored procedure conversion from Oracle to Teradata - response (5) by reddyrajendra2014

$
0
0

Dieter ,
Can you please provide more info. on below stmt.
**When you CALL the SP it's actually calling an exported function of that shared object **
 
While calling exported function of that shared object , how many sessions will get allocated , where that info maintained .
Will it get change in every TD relaese.?

Stored procedure conversion from Oracle to Teradata - response (6) by dnoeth

$
0
0

There's no new session assigned, it's within the calling user's session.

*** Error 3156 Request aborted by TDWM. Exception criteria exceeded: - response (1) by Glass

$
0
0

reddyraj,
You'll need to check with your DBA to find out what exception criteria is difined in the active TASM ruleset for your userid/account/profile,,
Rglass
 


Profiles and Workloads - response (2) by Kishore_1

$
0
0

We also has TDWM user enabled,the table tdwm.WlcClassifyOrder is showing as not existant in TD 14.10.
 *** Failure 3807 Object 'tdwm.WlcClassifyOrder' does not exist.
                Statement# 1, Info =0 
Could you please suggest any alternate solution?

Numeric overflow issue - response (2) by ravimans

$
0
0

Hi,
Source details as follows:
Col1 Decimal(5,0)
Col2 Decimal(5,0)
Target details as follows:
Col1 Decimal(9,0)
Col2 Decimal(9,0)
Col3 Decimal(3,0)
but one thing i noticed is few of the values comes as MINUS value but i tried to convert like this,
CAST(CAST(TRIM(Col1) AS DECIMAL) AS INTEGER)
 

Numeric overflow issue - response (3) by Raja_KT

$
0
0

With col1 and col2 precisions , given , it works fine when  I do 
insert into target select col1,col2 from source;
Btw, casting decimal to integer, means losing precision. It may not be what business want.
 

Cursor in Dynamic SQL - forum topic by Sun_shine_jgd

$
0
0

Hi i have a cursor which returns me the date.
Belwo is the sample

FOR Cur_Dt AS Cur CURSOR FOR

SELECT STRT_DT

FROM table

WHERE STRT_DT

BETWEEN 1900 -01  01

AND 9999 01  01

 

Now i have a dynamic SQL..

which is using Cur_Dt(cursor value).   But when this is passed as a normal SQL----( where date_val =  Cur_Dt.STRT_DT ) -- its showing error Cur_Dt doesnot exist.

IS there any way we can pass cursor value to dynamic SQl.

 

Any help welcomed.

 

Thanks

 

 

 

Forums: 

Data backup - response (2) by usmans

$
0
0

Below is the difference between the two:
Restore Job:
If the table you are to restore currently exists at the same location, (note that it has not been dropped and recreated since the time the backup was taken) you would make a restore job.
Copy Job:
You would make a Copy Job in one of the following situations:

  1. The table does not currently exist in the current location
  2. The table had been dropped and recreated since the time the backup was taken
  3. If you want to make a copy of the table in a different database, other than the one in which it exists

For point 2 in Copy Job, even though the table exists with the same name, the Restore Job will fail and Copy Job would have to be made. This is because, for Restore Job to work the table header ID of existing table and table to restore should be the same. If the table is recreated, the table header ID is different. 

Getting AMP step failure error - response (2) by Sun_shine_jgd

$
0
0

is it an express edition of TD ? (1 AMP)

Repeatability of random sampling - forum topic by ChrisAL

$
0
0

We use SAMPLE RANDOMIZED ALLOCATION to generate random samples for a monthly survey that we operate.
Our auditor has asked us if we have the ability to reproduce the sample if required - I think this would usually be done by capturing and reusing the random seed value that was initially used, but I can't find any mention of such a capability in the Teradata manuals.
 
Could anyone cast any light on this subject please?
 
Thank you

Forums: 

Repeatability of random sampling - response (1) by dnoeth

$
0
0

There's no random seed, if there's only a single row inserted/deleted/updated it would be impossible to repeat that sample.
The only way is materializing the result of the sample select in a table.

Numeric overflow issue - response (4) by krishaneesh

$
0
0

is Col3 populated by doing a substraction from col1 and col2? if so there might be a value in either col1 or Col2 which upon doing a minus gives a decimal which is greater than Decimal(3,0) and less than Decimal(5,0). Define Col3 as Decimal(5,0) and verify.

Cursor in Dynamic SQL - response (1) by cmedved

$
0
0

I believe it should work. Could you post the whole loop? Preferably in a code block :) (there is a code button).

Profiles and Workloads - response (3) by cmedved

$
0
0

Sorry, I am not aware of any other solution. We are using TD 13.10. They may have changed the data model... no idea.
 
The main reason to join to the classify order table was to make it easier to determine which rules get evaluated first. Presumably, that value is somewhere else now.
 
If RuleDefs and RuleQualifyCriteria exist, you can get the PROFILE->WDID mapping without the classification order.

Partition effectiveness - forum topic by levinra

$
0
0

All of our tables have effective start and end date columns (EFF_STRT_DT, EFF_END_DT).  We want to create date partitions on some of our larger tables, and our fist instinct is to create the partition on EFF_END_DT, because we set that date to '9999-21-31' to represent "active" rows in our data warehouse.
Most of the time, we will actually be doing a BETWEEN comparison similar to the following

select * from fpdw_bkup.pty_pi
where '2014-03-31' between EFF_STRT_DT and EFF_END_DT;

The table in the code snippet is defined with a partition statement of
PARTITION BY RANGE_N(EFF_END_DT  BETWEEN DATE '2012-12-31' AND DATE '9999-12-31' EACH INTERVAL '7' DAY , NO RANGE, UNKNOWN)

 

and the SQL in the snippet shows this in the EXPLAIN plan:

 

  3) We do an all-AMPs RETRIEVE step from 416678 partitions of

     fpdw_bkup.pty_pi with a condition of (

     "(fpdw_bkup.pty_pi.EFF_STRT_DT <= DATE '2014-03-31') AND

     (fpdw_bkup.pty_pi.EFF_END_DT >= DATE '2014-03-31')") into Spool 1

     (group_amps), which is built locally on the AMPs. 

 

What I'm trying to determine is whether the partition I had in mind is worth it, given that we don't often use equi-joins with these date columns.  Or is there a different way to do the partition or the SQL statement that would help me?

 

Thanks,

 

Robin

Forums: 
Viewing all 14773 articles
Browse latest View live


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