Hi,
I want to check weather it correct process or Not.
First we check Status using Vprocmanager utility. (Example: Off line AMP is 3)
Find off line amp. Next we perform Table rebuild
Rebuild amp (db) all data, primary data;
next we do recovery the data from that amp;
ARCHIVE NO FALLBACK TABLES (DB) ALL,
AMP=3,
EXCLUDE (DBC),
RELEASE LOCK,
FILE=ARCHIVE;
LOGOFF;
Thanks,
Mahesh.
Please advice me. if not correct.
off line amp comes to online perform backup. - forum topic by maheshteradata
off line amp comes to online perform backup. - response (1) by maheshteradata
Variables in TD? - response (2) by Nikhil_Teradata
Thank you Fred.
Transposing Columns to Rows with parent child hierarchy - forum topic by keyabhatt@yahoo.com
Hi,
Question for Transposing the data from Columns to Row and long with that keep its parent child relationship with ids eg
Emp_Name Manger_Name Director_name
'aa' 'bb' 'cc'
'xx' 'yy' 'zz'
Now the new table would be
Emp_information
Emp_id Emp_name reporting_person_id level
1 'zz' Null 1
2 'cc' null 1
3 'yy' 1 2
4 'bb' 2 2
5 'aa' 4 3
6 'xx' 3 3
Many thanks in advance
Partition Access Count - response (1) by dins2k2
Hi,
Can someone answer this question?
Thanks,
Dinesh
How to convert the flat procedure to set logic? - response (5) by dnoeth
Hi Vincent,
your cursor/loop logic can be replaced by a single cross join, you just need a table with numbers from 1 to the maximum possible value of "multiplier".
CREATE TABLE numbers (i INT NOT NULL PRIMARY KEY); INSERT INTO numbers SELECT day_of_calendar AS i FROM sys_calendar.CALENDAR WHERE day_of_calendar <= 30; CREATE TABLE tab(col1 INT,effective_Date DATE,Term INT); INSERT INTO tab(819559512, DATE '2015-01-30', 1); SELECT t.* ,ADD_MONTHS(effective_Date,CAST(Term AS INT)*i) AS RenewDate FROM tab AS t CROSS JOIN numbers WHERE i < MONTHS_BETWEEN(CURRENT_DATE, effective_Date)/Term + 1
TO_DATE in "IN" clause - response (1) by dnoeth
Don't ask me why, but Teradata doesn't allow any kind of calculation or function within IN.
Determine new table skew for a different PI - response (6) by teradatauser2
Hi Dieter,
using your 2nd query above, how much of skewfactor and SkewFactor_WINDDI is accpetable ? i have it for a table as 1.50 and 33.
Thanks !
Samir
HEX string to Binary bits - forum topic by samsterling
We have a HEX value and we need to parse it to a binary string.
I was looking at GETBIT and TO_NUMBER and FROM_BYTES, but I don't seem to be able to figure this out. One of the errors I get is Conversion from BYTE and other data types is illegal.
We could do this as a UDF, but it seems that there should already be a function something like HEX_TO_BITS.
Any suggestions would be welcome.
creating a view on a SQL query starting with "WITH" clause - response (8) by jrgchip
Regarding the first question ... about using WITH in a CREATE VIEW ...
The v14.00 doc for CREATE VIEW says it is valid ...
http://www.info.teradata.com/HTMLPubs/DB_TTU_14_00/index.html#page/SQL_Reference/B035_1144_111A/Create_Transform-Syntax.025.78.html#ww16763403
But I get the same error as sarvesh.
I agree with Ulrich's comment ... but that specifically says DML, not DDL.
Therefore, I believe it should work.
How to convert the flat procedure to set logic? - response (6) by vincent_dd
I see the light of dawn.
Thank you very much Dieter.
HEX string to Binary bits - response (1) by CarlosAL
Hi:
If your HEX value is in a string (VARCHAR, CLOB) and yoy need a VARBYTE or BLOB as output, maybe TO_BYTES() is what you're looking for.
HTH.
Cheers.
Carlos.
error 3658 : rollback/rollforward table specifitions are invalid. - forum topic by maheshteradata
Hi,
Unfortunely, i'm updated a table with wrong assumption. Table was archive yesterday with checkpoint(testdb), with save, named chkpt1;
rollback operation failed.
Rollback(testdb.emp),
to chkpt1,118,primary data,
release lock, abort,
use current journal;
Please help me.
Thanks,
mahesh.
Collect stats taking long time - response (7) by Srichakra
Thanks dnoeth for your quick response.
I just want to know the roles and responsibilities of a person in IT industry with respective of Teradata Collect stats..
As a developer I am just using Collect stats on **** Syntax from my end ,what about the DBA responsibility on it..Teradata by default refresh and store the stats information into data dictionaries or any manual process.. In my case my DBA completely working on dbadmin_procs.Stats_Log only,What exactly it is..I tried to access it but don't have access on it..What to do..Can anyone expalin breifly or send any links for this.
Teradata User defined methods - forum topic by Bala_E
Can you give example for User defined functions/methods without external? How methods can be used for UDTs?
query CPU cycle on different series of Teradata node - forum topic by meet_as
Hi,
Please let me know the CPU cycle of a query remain same on different series of Teradata node (say 6x and 1x) or not.
Let's assume I run a query on 6x series. for e.g.
sel * from tab1;
Total CPU (AMPcpu + parseCPU)=100 sec(say)
If I run the same query on 1x series (assume other things are constant like size of table, indexing,skew,ppi,compression, etc.). Will the total cpu cycle be same i.e. 100 sec.
I understand on 6x (powerful machine) the elpased time will be less than 1x.
Regards,
meet_as
Teradata DBQL logging setup and maintanence document for TD 15 - response (1) by dnarva
Seconding Eric's question... interested in TD 15.0 docs for DBQL.
Thanks,
Dan
TO_DATE in "IN" clause - response (2) by tdreturn
Thanks Dieter. Technically is allows the calculation for one value but not for multiple. Hopefully they will fix it soon
How to get ununsed column list from table. - response (3) by raghu1124
Hi Velu,
Thanks for the link. I will take a look at it.
Collect stats taking long time - response (8) by dnoeth
Re-collecting stats is not done automatically, there's usually an automated process for it.
In your case this seems to be done based on "dbadmin_procs.Stats_Log" which is not provided by Teradata...
sorry for the mistake.
Rebuild amp 3 (db), all data, primary data;