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

off line amp comes to online perform backup. - forum topic by maheshteradata

$
0
0

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.
 
 

Forums: 

off line amp comes to online perform backup. - response (1) by maheshteradata

$
0
0

 
sorry for the mistake.
Rebuild amp 3 (db), all data, primary data;

Variables in TD? - response (2) by Nikhil_Teradata

Transposing Columns to Rows with parent child hierarchy - forum topic by keyabhatt@yahoo.com

$
0
0

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 

Forums: 

Partition Access Count - response (1) by dins2k2

$
0
0

Hi,
Can someone answer this question? 
Thanks,
Dinesh

How to convert the flat procedure to set logic? - response (5) by dnoeth

$
0
0

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

$
0
0

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

$
0
0

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

$
0
0

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.

Forums: 

creating a view on a SQL query starting with "WITH" clause - response (8) by jrgchip

How to convert the flat procedure to set logic? - response (6) by vincent_dd

$
0
0

I see the light of dawn.
Thank you very much Dieter.

HEX string to Binary bits - response (1) by CarlosAL

$
0
0

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

$
0
0

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.
 
 
 

Forums: 

Collect stats taking long time - response (7) by Srichakra

$
0
0

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


query CPU cycle on different series of Teradata node - forum topic by meet_as

$
0
0

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
 
 
 

Forums: 

Teradata DBQL logging setup and maintanence document for TD 15 - response (1) by dnarva

$
0
0

Seconding Eric's question... interested in TD 15.0 docs for DBQL.
Thanks,
Dan

TO_DATE in "IN" clause - response (2) by tdreturn

$
0
0

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

$
0
0

Hi Velu,
Thanks for the link. I will take a look at it.

Collect stats taking long time - response (8) by dnoeth

$
0
0

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...

Viewing all 14773 articles
Browse latest View live


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