Professional Documents
Culture Documents
Getting error as Updated one row and inserted one row in collect statistics we
need to add the following line in front of collect statistics query
/*PTE IGNORE ALL TEXT BEGIN*/
month
Mar
dr
1724
50
Apr
1812
69
desc
temporal
related
Plan directive
setup
DR Test Tag
************
REGRTESTNEEDED - DR unit test is related to SQL but test case is not available
in PTE (Regression Test Needed).
TEST-NOTE
******************************************************
TEST-TAG: REGRTESTADDED
Test Area: DR2015Q3
Test Abbrev/Prefix: DR2015Q3
Tests: Same as DR Number - drxxxxx
Tool: PTE
Directory: /ptehome/pte_dev/td151000/dr2015q3/network
2. When you get Failure 9843 Query resulting in mixing of ANSI
temporal syntax and Tera data temporal syntax is not allowed.
Do the following in dbscontrol
Enter a command, HELP, or QUIT:
m g 88=0
The TemporalBehavior field has been modified from 1 to 0.
NOTE: This change will become effective after the DBS Control Record
has been written.
Plan
directive
setup
need to be
run in pte
While developing test-cases please follow the below steps for creation of Users/Databases.
5.
6.
7.
8.
9.
vi /var/log/messages ( to see the log messages after executing any test case)
tail -f /var/log/messages ( to see last lines of the var log messages)
grep -Ril "_qcd" . (to search for a key word in entire directory)
upgrade_td_efix -sysinit force (to run sysinit
Sysinit dip command
a. upgrade_td_linux -build 16t.00.00.108 -sysinit force
command
build
command comnand
10./ptehome/linux_client/ttu160/bteq < temp.bteq > temp.out 2>&1
11.
Run Plan directive in PTE with machine ip or machine name
without cleanup for plan directive drs
12.dbscontrol -i | grep -i 'EnableXMLContextCaching' ( to find the label number of
a particular tag in dbs)
13.create table t3 as t1 with data or with no data; copying table with data
14.search for a string in a directory in linux
grep -Ril "text-to-find-here" /
l stands for "show the file name, not the result itself".
15.To ignore expected mis matches add the following statement before the
query
ALTER INDEX
20. We generally come across a need to change/alter the index to address storage in AMPs/data
fecth(SQL Performance) issues in any database.
In teradata, we cannot alter a primary index once it is created and the data is loaded into that
table. So, to alter primary index, we would need another copy of the original table and then drop
the actual table and recreate with required primary index.
OR
Delete the data in the original table (If needed take the back up first). And use below statement to
alter the index.
In general the syntax for altering an index is:
alter table <Table_Name> modify
primary index Index_Name(Inde_Col1, ..Index_columnn);