Hi feinholz,
Can u pls help me out for below erros that i m getting while running TPT script to load data from oracle table to teradata table.I am not able to figure out the root cause behind these errors.
Errors:
Teradata Parallel Transporter Version 13.10.00.04
TPT_INFRA: Semantic error at or near line 64 of Job Script File '/teradata/test.txt':
TPT_INFRA: TPT03107: Operator 'LOAD_OPERATOR' has explicit input schema. Restricted APPLY
statement allows only deferred schema for consumer operators.
TPT_INFRA: Semantic error at or near line 64 of Job Script File '/teradata/test.txt':
TPT_INFRA: TPT03111: Rule: Restricted APPLY Statement
Compilation failed due to errors. Execution Plan was not generated.
Job script compilation failed.
Job terminated with status 8.
$
TPT Script:
DEFINE JOB ODBC_LOAD
DESCRIPTION 'Read From Oracle Using ODBC Operator'
(
DEFINE SCHEMA test_ashish
DESCRIPTION 'test SCHEMA'
(
ROW_WID DECIMAL(10,0),
FINANCIER_NAME VARCHAR(100),
ETL_PROC_WID DECIMAL(10,0),
BU_ID VARCHAR(30) ,
MERGED_INTO_WID DECIMAL(10,0) ,
MARKET_TYPE_CD VARCHAR(30)
);
DEFINE OPERATOR ODBC_Operator
DESCRIPTION 'TPT ODBC Operator'
TYPE ODBC
SCHEMA test_ashish
ATTRIBUTES
(
VARCHAR PrivateLogName = 'odbc_log',
VARCHAR DSNName = @var_OraId,
VARCHAR UserName = @var_OraUserName,
VARCHAR UserPassword = @var_OraPassword,
VARCHAR SelectStmt = 'SELECT ROW_WID,FINANCIER_NAME,ETL_PROC_WID,BU_ID,MERGED_INTO_WID,MARKET_TYPE_CD FROM test_ashish;'
);
DEFINE OPERATOR LOAD_OPERATOR
TYPE LOAD
SCHEMA test_ashish
ATTRIBUTES
(
VARCHAR PrivateLogName = 'load_log',
VARCHAR TdpId = @var_tdpid,
VARCHAR UserName = @var_username,
VARCHAR UserPassword = @var_password,
VARCHAR TargetTable = 'test_ashish',
VARCHAR LogTable = 'odbc_test_log',
VARCHAR ErrorTable1 = 'odbc_test_error1',
VARCHAR ErrorTable2 = 'odbc_test_error2'
);
APPLY
'INSERT INTO TD_DEV.test_ashish
(:ROW_WID
,:FINANCIER_NAME
,:ETL_PROC_WID
,:BU_ID
,:MERGED_INTO_WID
,:MARKET_TYPE_CD
)
;'
TO OPERATOR (LOAD_OPERATOR)
);
Ragards,
Ashish
↧