Quantcast
Channel: Teradata Forums - All forums
Viewing all 27759 articles
Browse latest View live

CALLing a dynamically created SP name. - forum topic by boriscb

$
0
0

Hi ,
I have a situation where I need to execute a series of "manufactured" SP names in a loop.
This is the scenario:
From my LANDING database I need to ETL a series of tables to the WAREHOUSE database. Each table has its own transformation requirements.
This is what I am trying to achieve:
 

  1. Look up the tablenames in a specific sequence from a control table.
  2. Makeup the SP name from the tablename e.g.: SET SPNAME = 'sp_load'||tablename;
  3. CALL SPNAME .... I have tried ...
    • CALL(:SPNAME); or (SPNAME)
    • EXECUTE IMMEDIATE (:SPNAME); or (SPNAME)
    • CALL DBC.SysExecSQL (:SPNAME); or (SPNAME)

Nothing seems to work for me.
Is there a specific way in Teradata to CALL a dynamic SQL statement that consists of an SP name ?...
Any suggestion please !....
Thank you for your time.
 
Boris.
 

Forums: 

Teradata DB connection using ODBC Thru IBM Information Server DataStage - response (10) by islanderman

$
0
0

Followed steps but getting this error on:
 
Enter Data Source Name: testdsn

Enter UserID: jf3579

Enter Password:

 

Connecting with SQLConnect(DSN=testdsn,UID=jf3579,PWD=*)...

 

adhoc: (SQL Diagnostics) STATE=HY000, CODE=0, MSG=[Teradata][ODBC Teradata Driver] Major Status=0x04bd Minor Status=0xe000000f-[terasso]Cannot load TDGSS library.

 

ODBC connection closed.

 
 
This was the output from the install of TeraGSS.  It was installed into a custom directory so that is the reason for some of these warnings.  However, maybe i"m missing a link or an environmental variable?  I put the teragss lib into the 'LD_LIBRARY_PATH', /home/mechid/teradata/teragss/linux-x8664/14.10.00.06/lib.
 

Preparing...                ########################################### [100%]

   1:TeraGSS_linux_x64      ########################################### [100%]

: WARNING : Unable to create /opt/teradata/teragss/site/linux-i386 directory

: WARNING : Unable to create /opt/teradata/teragss/site/linux-x8664 directory

: WARNING : Unable to create /opt/teradata/teragss/site directory

: WARNING : Unable to copy TdgssUserConfigFile.xml

WARNING: Error creating symbolic link /opt/teradata/teragss/linux-i386/client

: WARNING : Unable to create /opt/teradata/teragss/site/linux-i386 directory

: WARNING : Unable to create /opt/teradata/teragss/site/linux-x8664 directory

: WARNING : Unable to create /opt/teradata/teragss/site directory

: WARNING : Unable to copy TdgssUserConfigFile.xml

WARNING: Error creating symbolic link /opt/teradata/teragss/linux-x8664/client

/var/tmp/rpm-tmp.13329: line 127: /opt/teradata/teragss/linux-i386/14.10.00.06/version: No such file or directory

/var/tmp/rpm-tmp.13329: line 129: /opt/teradata/teragss/linux-x8664/14.10.00.06/version: No such file or directory

ls: /usr/teragss: No such file or directory

WARNING: Unable to remove directory "/usr/teragss".\n

 Older client programs may not work correctly.

 

Problems while adding node to activate cluster - forum topic by RedRobin

$
0
0

Hi All,
I am facing an issue when I add a worker node to the Aster cluster. The Add node operation is successful, but it seems like the node enters into the 'cleaning' mode forever. And instructions say that I need to wait until the node enters into prepared state to activate the cluster.
I tried restarting both queen and worker, deleted worker node and added back, but nothing seems to be working.
Can someone help?
Thanks,
RedRobin
 

Forums: 

TPT Error using DATACONNECTOR PRODUCER Operator - response (8) by feinholz

$
0
0

Well, I cannot show you an example because the data is in binary.
Our supported record formats are well documented.
Please refer to the TPT documentation.
The record format called "FORMATTED" consists of:
2-byte record length indicator ("n")
"n" bytes of data
end-of-record marker (1-byte or 2-bytes depending on the platform)
 

SET table to Multiset Table - response (1) by Raja_KT

$
0
0

I think you mean to say thus(example):
Create multiset table dbname.multiset_table_name as dbname.set_tbl with data;
It works. Why dont you try??

Teradata DB connection using ODBC Thru IBM Information Server DataStage - response (11) by islanderman

$
0
0

I saw you had asked for this in a previous thread:
 

=> ldd /home/mechid/teradata/teragss/linux-x8664/14.10.00.06/lib/libtdgss.so

        linux-vdso.so.1 =>  (0x00007fff1b5fd000)

        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b3d8ad54000)

        libdl.so.2 => /lib64/libdl.so.2 (0x00002b3d8af70000)

        libc.so.6 => /lib64/libc.so.6 (0x00002b3d8b174000)

        libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b3d8b4cc000)

        /lib64/ld-linux-x86-64.so.2 (0x000000379ac00000)

 

Run Derived table query - forum topic by manjubabu80

$
0
0

Hi,
I am using Microstrategy for my reporting purpose.. I usually run the sql genertated in MSTR against Teradata Sql assitant.
When I run the whole query, it runs but when I run the part of it then it throws an error like Select failed (3706).
 
My query goes like this..
 
Select x1, x2, x3 from( (Select y1, y2, Y3 from t11) a11 join (select z1, z2, z3 from t21) a12 on join conditions) left outer join ..join condition
 
I am trying to run 
( (Select y1, y2, Y3 from t11) a11 join (select z1, z2, z3 from t21) a12 on join conditions) in teradata
Thanks,
Manju

Forums: 

End of Record marker with TPT - response (9) by tstrick4

$
0
0

Thank you, I will perform the upgrade and test again.  If I still have issues I'll send you the log data this weekend.


Run Derived table query - response (1) by manjubabu80

$
0
0

This is my exact query..
 
 
select    a13.product_id  product_id,
                a15.ProductName  ProductName,
                pa11.CRTNO  CRTNO,
                pa12.product_id  product_id0,
                pa12.version_id  version_id,
                a13.VersionName  VersionName,
                pa11.DedID  DedID,
                pa11.RevisionNo  RevisionNo,
                pa11.DedID0  DedID0,
                pa11.RevisionNo0  RevisionNo0,
                pa11.DedLineNo  DedLineNo,
                pa11.WJXBFS1  WJXBFS1,
                pa11.WJXBFS2  WJXBFS2,
                pa12.WJXBFS1  WJXBFS3
from      (select  a11.JournalNo  JournalNo,
                                a11.DocumentNo  SalesCode,
                                a11.CRTNO  CRTNO,
                                a12.DedID  DedID,
                                a12.RevisionNo  RevisionNo,
                                sum(a11.SalesInt)  WJXBFS1,
                                sum(a11.SalesLocal)  WJXBFS2
                from      DST_VMBI.Fact1              a11
                                left outer join    DST_VMBI.Dim11            a12
                                  on         (a11.CRTNO = a12.CRTNO and
                                a11.LineNo = a12.LineNo and
                                a11.SectionID = a12.SectionID)
                where   (a12.DedID = 809 and a12.RevisionNo = 17)
                group by              a11.JournalNo  JournalNo,
                                a11.DocumentNo  SalesCode,
                                a11.CRTNO  CRTNO,
                                a12.DedID  DedID,
                                a12.RevisionNo  RevisionNo        )              pa11
                join        (select  a12.DedID  DedID,
                                a12.RevisionNo  RevisionNo,
                                a12.product_id  product_id,
                                a12.version_id  version_id,
                                sum(a11.PriceTotal)  WJXBFS1
                from      DST_VMBI.Facta11          a11
                                left outer join    DST_VMBI.Fct112            a12
                                  on         (a11.RTID = a12.RTID)
                where   ((a12.DedID = 809 and a12.RevisionNo = 17)
                                group by                              a12.DedID  DedID,
                                a12.RevisionNo  RevisionNo,
                                a12.product_id  product_id,
                                a12.version_id  version_id,
                )              pa12
                  on         (pa11.DedID0 = pa12.DedID and
                pa11.DedLineNo = pa12.DedLineNo and
                pa11.RevisionNo0 = pa12.RevisionNo)
                left outer join    DST_VMBI.Dim22            a13
                  on         (pa12.product_id = a13.product_id and
                pa12.version_id = a13.version_id)
                left outer join    DST_VMBI.Dim23            a14
                  on         (pa11.LicenseeID = a14.LicenseeID)
                left outer join    DST_VMBI.Dim24            a15
                  on         (a13.product_id = a15.product_id)
 
I want run pa11 join pa12 in teradata
Thanks,
Manju

TPT (TTU 14.10) - Compatibility for CentOS and Order of Installation - forum topic by sandeepganga

$
0
0

Hi Experts,
 
I would like to know the below info to figure out TPT instllation on different platforms.

1.  Compatibility of TPT (TTU 14.10) packages for below Operating systems.  Please provide info on any libraries or components that are required.

       CentOs 6.3 64 Bit
       Linux 6.2  64 Bit
       Redhat 2.6.32 64 Bit.

2.  Order of Installation of packages for TPT (TTU 14.10) on Linux, Redhat Linux and CentOS operating systems
 
Thanks in advance,
 
regards,
sandeep.

Forums: 

Run Derived table query - response (2) by krishaneesh

$
0
0
    sel    col list 
        from 
            (
                Select   x1, x2, x3 
                    from (
                                (
                                    Select   y1, y2, Y3 
                                        from t11) a11 
                                       join
                                  (
                                       select   z1, z2, z3 
                                        from t21) a12 
                                on 
                                join conditions
                               ) a13
                    left outer join
                    a14 
                    on a13.xxx=a14.xxx
               )a15

 

TPT load to table which contains special characters in name and column names - response (3) by feinholz

$
0
0

Yes, you can have special characters in database object names, as long as you enclose them in double-quotes, which you have.
You will have to obtain the syntax information from the Teradata SQL manuals (maybe one of those characters in the quotes is not allowed, I do not know all of the rules by heart).
TPTAPI does not parse SQL.
Whatever your application gives to us, we send to Teradata.
I have to assume, then, that the error you are getting is from Teradata.
 

Error handling when inserting records - response (5) by Tnewbee

Need training in teradata - forum topic by maddy007

Nexus Query Chameleon - response (2) by chillerm


Teradata DB connection using ODBC Thru IBM Information Server DataStage - response (12) by islanderman

$
0
0

I used strace to find out that the system was trying to load gss from either /usr/teragss or /opt/teradata/teragss even though I installed the code into a custom directory.  Once I had the system administrator create a link from those to the custom directory it is now working.

 

 

Enter Data Source Name: testdsn

Enter UserID: jf3579

Enter Password:

 

Connecting with SQLConnect(DSN=testdsn,UID=jf3579,PWD=*)...

 

.....ODBC connection successful.

 

ODBC version        = -03.52.0000-

DBMS name           = -Teradata-

DBMS version        = -13.10.0726  13.10.07.26-

Driver name         = -tdata.so-

Driver version      = -14.10.00.00-

Driver ODBC version = -03.51-

 

(type quit to terminate adhoc)

Enter SQL string :

 

Dependancies on DBC for Data Processing - response (1) by Raja_KT

$
0
0

Other Databases that I know and work are using metadata  in conjunction with scripting ( say unix). Automation scripts to serve a business purpose are necessary. Product companies do not cover the entire business cases totally. That is one of the reasons why Service companies are eating up their budget :).
My thought :).

BTEQ Import Invalid Date Issue - forum topic by taruntrehan

$
0
0

Hi All,
I am trying to port data from a flat file to TD via BTEQ.
The table definition is :

CREATE MULTISET TABLE _module_execution_log 
     (
      system_id INTEGER,
      process_id INTEGER,
      module_id INTEGER,
      julian_dt INTEGER,
      referral_dt DATE FORMAT 'YYYY-MM-DD',
      start_dt_tm TIMESTAMP(6),
      end_dt_tm TIMESTAMP(6),
      ref_s_cnt INTEGER,
      ref_d_cnt INTEGER)
PRIMARY INDEX ( module_id );

Following are 2 sample records that i am trying to load in the table :

1|1|30|2007073|Mar 14 2007 12:00:00:000AM|Mar 15 2007  1:27:00:000PM|Mar 15 2007  1:41:08:686PM|0|0
1|1|26|2007073|Mar 14 2007 12:00:00:000AM|Mar 15 2007  1:27:00:000PM|Mar 15 2007  1:59:40:620PM|0|0

Snippet for my BTEQ script :

USING 
	(   system_id INTEGER
    	,process_id INTEGER
    	,module_id INTEGER
    	,julian_dt INTEGER
    	,referral_dt DATE FORMAT 'YYYY-MM-DD'
    	,start_dt_tm TIMESTAMP
    	,end_dt_tm TIMESTAMP
    	,ref_s_cnt INTEGER
    	,ref_d_cnt INTEGER
	)        

	INSERT INTO _module_execution_log
    ( 	system_id
     	,process_id
     	,module_id
     	,julian_dt
     	,referral_dt
     	,start_dt_tm
     	,end_dt_tm
     	,ref_s_cnt
     	,ref_d_cnt
    )
	VALUES ( 
		:system_id
    	,:process_id
    	,:module_id
    	,:julian_dt
    	,:referral_dt
    	,:start_dt_tm
    	,:end_dt_tm
    	,:ref_s_cnt
    	,:ref_d_cnt);

I get the following error during import :

 *** Failure 2665 Invalid date.
                Statement# 1, Info =5

 *** Failure 2665 Invalid date.
                Statement# 1, Info =5

I tried the following to avoid the error :

cast(cast(substr(:referral_dt,1,11) as date format 'MMMBDDBYYYY') as date format 'YYYY-MM-DD')

However, it is still failing with the same error.
Appreciate any inputs to accomplish this task.
Thanks.
 

Forums: 

TPT : Infrastructure Setup Errors - forum topic by taruntrehan

$
0
0

Hi All,
I am trying to run a TPT script and facing the following series of errors :


TPT_INFRA: TPT01155: Error: Infrastructure setup for the Parallel Task Manager failed
TPT_INFRA: TPT02057: Error: PTM status 10: IPC initialization problem; Check Teradata Parallel Transporter file config.ini
TPT Return Code: 12
Tbuild errors: TPT_INFRA: TPT01008: Error: Failed to Initialize necessary IPC resources to run this job
TPT_INFRA: TPT01006: Error: Failed to setup Parallel Task Manager Infrastructure to run this job
TPT_INFRA: TPT02429: Error: PX_Node::Bind() [Node spdma544] - Failed with status 10

I am new to TPT and not able to understand why this error is showing up on script execution.

Appreciate any inputs in this regard.

Let me know if more inputs are required here.

 

Forums: 

No more room in DBC - response (2) by bo

$
0
0

Hi Masters,  
Need your help.
We are having the same error, but don't feel we have DBC space issue. We are on TD 13.10.
When an all AMP backup is running for database AAA, a Mload Delete with ET table on database XYZ failed with "No more room in database DBC". This job doesn't always fail, only some times. We checked other jobs runing at the same time. They don't take space from DBC, espetially not from TransientJournal. Mload Delete doesn't keep transient jourmal as we understand. Our DBC has following information:
MaxPerm: 4.3 TB
CurrentPerm: 107 GB
TransientJournal: CurrentPerm 10 GB, PeakPerm 500 GB, skew 15
Accessrights: 0.5 GB, skew 85
Resusage tables: 40 GB, skew 18
DBQL tables: data copied to other database and then deleted.
 
We fell that there is a connection between the backup and the Mload for the failure. Correct me if I am wrong below.
All AMP backup puts a read lock on the dictionary table dbc.errortbls.  When Mload creates ET table, system will  insert a record in dbc.errortbls and should encounter the read lock from backup user.
We are just wondering what is the system's behavious now? Any help would be appreciated! 
 
Bo
 

Viewing all 27759 articles
Browse latest View live


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