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

Propagate row data until next date is encountered - response (4) by Harry...

Dieter: I'd not heard of the PERIOD data type or the EXPAND ON, that's beautiful, thank you very much.  I'll decompose this and run it in bits to understand what it's doing.  Thanks.

View Article


Negative maxperm DBC - forum topic by 47shailesh

We recently did complete database restore to a new machine. We excuted restore couple of times as in previous restore we missed few objects. We are still trying to restore but recently start getting...

View Article


INSERT query of view column data types - forum topic by Nolan Madson

I know that Dieter and others talked about how to identify the data type of a view in the thread...

View Article

5738 Partition Violation Error occurs while am trying to insert data - forum...

Hi All, Please help me to fix the partition violation error. When am tring to load datas into my target table, am getting 5728 partition violation error. Partition range mentioned below, PRIMARY INDEX...

View Article

Looping in Teradata sql - response (2) by prateek.saxena

Dieter, I was using this snippet of code for the purpose of bucketing. There are 20 different buckets and I have to perform 20 different actions for them based on some conditions.  Thanks

View Article


MONITORQUERYBAND Open API Issue - response (1) by dnoeth

The RunVProcNo parameter must be an existing PE number, but neither NULL nor 0 exist. Remove the offending NULL: WHERE RunVprocNo IS NOT NULL or use COALESCE(RunVprocNo ,LogonPENo)  Dieter

View Article

5738 Partition Violation Error occurs while am trying to insert data -...

There's probably a NULL in your data and there's no UNKNOWN partition.  Dieter

View Article

INSERT query of view column data types - response (1) by dnoeth

Hi Nolan, you can try to resolve the view down to the base table, e.g.  http://developer.teradata.com/blog/ulrich/2011/11/extract-and-analyse-database-object-dependencies but this is a huge overhead...

View Article


QUERY REWRITE - response (3) by ashikmh

Thanks Dnoeth and Kartik :-) I tried every thing, but still i am getting product join. So we are planning to change the data model. 

View Article


Statistics Gathering / Stats Collection -- Generic Solution - forum topic by...

Hello,  I've been looking at a generic way of controling stats gathering.  Something along the lines of a table that holds all the stats we want to gather:      TABLE_NAME     :     GATHER_TYPE     :...

View Article

volatile table as select..with data - not loading data - response (25) by Gauz

@MSB:  In the syntax of Create table with data you haven't specified the alias column names in select query. Try to run the below query and see if it works:  CREATE TABLE TWM_SANDBOX.tbl1_frm_qry1 AS (...

View Article

DBC maintenance - forum topic by SHF

Are there any standard TD scripts that I can reuse/ download for maintaining DBC history? I found scripts for DBQL. But am looking for maintenance for the following: ResUsage: Acctg or AMPUsage: Any...

View Article

Propagate row data until next date is encountered - response (6) by Harry...

This was working, but I've managed to break it.  Now generating the following error when creating the last table, TRAVEL_DAILY_OS_RESERVES. Invalid Period value constructor. The beginning bound must be...

View Article


Propagate row data until next date is encountered - response (7) by dnoeth

Hi Harry, there's an event_dt equal to current_date and the basic rule for periods is: end > begin. You might have to change the COALESCE to CURRENT_DATE + 1.  Dieter

View Article

Propagate row data until next date is encountered - response (8) by Harry...

Thanks Dieter, but I've checked that, max(event_dt) is 2013-08-26, i.e. one day before current_date. Still perplexed....

View Article


Propagate row data until next date is encountered - response (9) by Harry...

And there's no null event_dt values.  I tried current_date+1000000 and still got the 9103 error.  Could it be a data type issue, timestamp vs date or something weird ?   I've since run this in SQL...

View Article

Negative maxperm DBC - response (1) by 47shailesh

I did sysinit followed by dipall to reset and initiate database. Before running restore permspace were +ve after restore finished it asked to run post_dbc_restore. But before running post_dbc_restore I...

View Article


Negative maxperm DBC - response (2) by mikesteeves

This can occur when your restore after a sysinit with a backup from a system that has a larger configuration than the system being retored.  For example, you restored a DBC restore from your production...

View Article

Negative maxperm DBC - response (3) by 47shailesh

+---------+---------+---------+---------+---------+---------+---------+---- SELECT DATABASENAME ,SUM(MAXPERM) MAX_PERM ,SUM(CURRENTPERM) CURRENT_PERM F ROM DBC.DISKSPACE GROUP BY 1; *** Query...

View Article

Negative maxperm DBC - response (4) by 47shailesh

my bad, sorry about the previous post, I got the mistake

View Article
Browsing all 14773 articles
Browse latest View live


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