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

TPT: system variables with result count - response (7) by teradata12

$
0
0

Yes Tony, everytime i get the above error. Please  find the script and log below:
 
efine job file_update
description 'loading of two teradata tables from a file'
(
 define schema Trans_n_acct_schema
 (
  acct_number  varchar(50),
  number       varchar(50),
  street  varchar(50),
  city  varchar(50),
  state  varchar(50),
  zip_code varchar(50),
  balance_fwd varchar(50),
  balance_cur varchar(50),
  trans_number varchar(50),
  trans_dt varchar(50),
  trans_id varchar(50),
  trans_amt  varchar(50)
 );
 
 define operator file_reader
 type dataconnector producer
 schema Trans_n_acct_schema
 attributes
 (
  varchar privatelogname  ='pvt_dataconnectorlog',
  varchar directorypath  ='D:\Users\subhedas\Cpg\CoE\TPT\Script',
  varchar filename  ='trans_account.txt',
  integer skiprows  =1,
  varchar format  ='Delimited',
  varchar openmode  ='Read',
  varchar TextDelimiter   ='|',
  varchar tracelevel  ='all'
 );
 
 define operator update_operator
 type update
 schema *
 attributes
 (
  varchar tpdid  ='**.**.**.**', /*the exact value of TPDID, userid and password has been replaced with * ...*/
  varchar username  ='****',
  varchar userpassword  ='****',
  varchar logtable  ='TD_BIM_FR_TRNG_DB.LG_acct_n_trans',
  varchar array targettable =['TD_BIM_FR_TRNG_DB.Trans_TPT','TD_BIM_FR_TRNG_DB.Accounts_TPT']
     
 );
 
 apply ('insert into TD_BIM_FR_TRNG_DB.Trans_TPT(Trans_Number,
       Trans_Date,
       Account_Number,
       Trans_ID,
       Trans_Amount )
       VALUES(:Trans_Number,
       :Trans_Dt,
       :Account_Number,
       :Trans_ID,
       :Trans_Amt);'),
  ('UPDATE TD_BIM_FR_TRNG_DB.Accounts_TPT
       SET Number = :Number,
       Street = :Street,
       City = :City,
       State = :State,
       Zip_Code = :Zip_Code,
       Balance_Forward = :Balance_fwd,
       Balance_Current = :Balance_cur
       WHERE Account_Number = :Account_Number;',
  'INSERT INTO TD_BIM_FR_TRNG_DB.Accounts_TPT (Account_Number,
       Number,
       Street,
       City,
       State,
       Zip_Code,
       Balance_Forward,
       Balance_Current)
       VALUES (:Account_Number,
       :Number,
       :Street,
       :City,
       :State,
       :Zip_Code,
       :Balance_fwd,
       :Balance_cur);')
  ignore duplicate update rows
  insert for missing update rows
  ignore missing update rows
  
  
  to operator (update_operator[2])
  select * from operator (file_reader[2]);
);

run log of  the above script:
........................
........................
     ===================================================================
     =                                                                 =
     =                  TERADATA PARALLEL TRANSPORTER                  =
     =                                                                 =
     =             UPDATE OPERATOR     VERSION 13.10.00.02             =
     =                                                                 =
     =          OPERATOR SUPPORT LIBRARY VERSION 13.10.00.02           =
     =                                                                 =
     = COPYRIGHT 2001-2010, TERADATA CORPORATION. ALL RIGHTS RESERVED. =
     =                                                                 =
     ===================================================================
**** 15:12:05 Processing starting at: Mon Jun 03 15:12:05 2013
     ===================================================================
     =                                                                 =
     =                      Module Identification                      =
     =                                                                 =
     ===================================================================
     Update Operator for Windows on DIN41001458
     UpdateMain : 13.10.00.06
     UpdateCLI  : 13.10.00.06
     UpdateUtil : 13.00.00.01
     PcomCLI    : 13.10.00.12
     PcomMBCS   : 13.00.00.02
     PcomMsgs   : 13.01.00.07
     PcomNtfy   : 13.00.00.03
     PcomPx     : 13.10.00.11
     PcomUtil   : 13.10.00.07
     PXICU      : 13.10.00.02
     TDICU      : 13.10.00.01
file_reader: TPT19012 No files assigned to instance 2.  This instance will be in
active.
file_reader: TPT19222 Operator instance 1 processing file 'D:\Users\subhedas\Cpg
\CoE\TPT\Script\trans_account.txt'.
update_operator: TPT10378: Error 2 in allocating memory for TdpId buffer
**** 15:12:05 TPT10378: Error 2 in allocating memory for TdpId buffer
TPT_INFRA: TPT02242: Error: Operator synchronization error, status = Fatal Error
TPT_INFRA: TPT02255: Message Buffers Sent/Received = 0, Total Rows Received = 0,
 Total Rows Sent = 0
     ===================================================================
     =                                                                 =
     =                        Logoff/Disconnect                        =
     =                                                                 =
     ===================================================================

              Instance      Cpu Time
              ========  ================
                   1        0.27 Seconds
                   2        0.00 Seconds
**** 15:12:08 Total processor time used = '0.265202 Second(s)'
.        Start : Mon Jun 03 15:12:05 2013
.        End   : Mon Jun 03 15:12:08 2013
.        Highest return code encountered = '12'.
update_operator: Total processor time used = '0.265202 Second(s)'
update_operator: Start : Mon Jun 03 15:12:05 2013
update_operator: End   : Mon Jun 03 15:12:08 2013
**** 15:12:08 This job terminated
TPT_INFRA: TPT02255: Message Buffers Sent/Received = 0, Total Rows Received = 0,
 Total Rows Sent = 0
TPT_INFRA: TPT02255: Message Buffers Sent/Received = 0, Total Rows Received = 0,
 Total Rows Sent = 0
file_reader: TPT19221 Total files processed: 0.
Job step MAIN_STEP terminated (status 8)
Job subhedas terminated (status 8)
Total available memory:          10000000
Largest allocable area:          10000000
Memory use high water mark:         63592
Free map size:                       1024
Free map use high water mark:          22
Free list use high water mark:          0


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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