FASTLOAD SCRIPT ISSUE - response (5) by Gans
Teradata Wallet - forum topic by Cesco
Hello!
I'm trying to use teradata wallet for encrypt user password on some script.
I have insert an item named PWD_SSF_DEV and then I've crete the script deptquery.txt.
This is the source code:
.logon 11.51.71.141/US_FND_SSF_DEV,$tdwallet(PWD_SSF_DEV)
.logoff
.exit
If I run BTEQ < deptquery.txt , work correctly, but I would like to use the wallet also in a script bash like this:
#!/bin/bash
[...]
bteq <<EOF
.logon 11.51.71.141/US_FND_SSF_DEV,"$tdwallet(PWD_SSF_DEV)";
[...]
.quit
EOF
( where US_FND_SSF_DEV is the user whose password is defined in the wallet item )
unfortunately , this script returns this error:
.logon 11.51.71.141/US_FND_SSF_DEV,
*** Error: Logon failed!
*** Total elapsed time was 1 second.
Thank you for helping!
FASTLOAD SCRIPT ISSUE - response (6) by ThomasNguyen
Currently, FastLoad supports NULLIF character value up to 80 bytes.
FASTLOAD SCRIPT ISSUE - response (7) by feinholz
As indicated above, the match has to be exact (in content and length).
With VARCHARs that is difficult because each row may have a different length for that field.
Thus, the NULLIF feature does not work well with VARCHAR fields.
FASTLOAD SCRIPT ISSUE - response (8) by Gans
Thanks Thomas and feinholz. This really helps.
FASTLOAD SCRIPT ISSUE - response (9) by Divyag
Fast export script issue :
I have to export a file having more than a crore records. whem am running the fast export script i am getting below error. Kindly advice.
UTY4014 : Access module error '34' received during 'write operation: 'pmunxWBuf; fell error ( system error message dectectd : 27 )
Error attempting to write file
FASTLOAD SCRIPT ISSUE - response (10) by sgarlapa
Is this error after writing some data on to file or initiatlly even before starting the export.
Ensure you didn't keep this file open before you start your fastexport.
BTEQ in Windows Environment - forum topic by john.cantu
Hello all. First time poster.
What components (i.e. software, drivers) would I need if I want to run BTEQ scripts in a Windows environment?
Your feedback is greatly appreciated.
FASTLOAD SCRIPT ISSUE - response (11) by krishaneesh
Has this error occured when a restart of the job was done. if so clean out the error tables, restart log table and do a fresh restart.
Teradata Wallet - response (2) by MaxG
I suspect you are using the quotes incorrectly. You should quote "EOF"
bteq << "EOF"
not the $tdwallet keyword.
TPT 14.10 error with fifo input files - response (1) by datamo
Hi,
Problem solved!!
This appear to be a known problem, JIRA TPT-18991, exposed in version 14.10.00.02-1 and fixed in version 14.10.00.04-1.
So if someone are using TPT 14.10.00.02-1 and have the same problem, can solve it upgrading to the latest TPT version available (as of today TPT 14.10.00.04-1).
Good Luck!
TPT 14.10 error with fifo input files - response (2) by feinholz
what does the "-1" mean in your version numbers (e.g. 14.10.00.04-1)?
Teradata Wallet - response (3) by Cesco
I change my script in
#!/bin/bash
[...]
bteq <<EOF
.logon 11.51.71.141/US_FND_SSF_DEV,$tdwallet(PWD_SSF_DEV);
[...]
.quit
EOF
... with the same result :-(
Why should I use the quote "EOF" ?
FASTLOAD SCRIPT ISSUE - response (12) by Divyag
Thanks for your response Krishaneesh/sgarlapa.
Around 70 lakh records got exported to file.. but in log file i can see the above error. Is this because of space constraints in UNIX ? or script issue.? Please advice.
BTEQ in Windows Environment - response (1) by Fred
Depending on how you are installing the software and what version, these components / dependencies may be handled more or less automatically.
Shared ICU Libraries for Teradata (typically bundled with driver downloads)
Teradata GSS client (typically bundled with driver downloads)
Teradata CLIv2 (driver itself)
Teradata Data Connector (local file access)
Teradata BTEQ
TerradataParallelTransporter-Load error - forum topic by chinthucs
Error occured during Initiate
loadop.dll) instance(1): INITIATE method failed with status = Not Found
Type: 0
Driver Terminated with status 3
Deleting objects
*** Load Complete ***
The above error occurs when we execute loadoperation using terradataparallel transporter.
We use jni to connect with c++ below is the source which is used to execute load operation.
TD_PT_OPERATOR='TD_LOAD'\n"+
"TARGET.ATTRIBUTES.UserName = 'dbc'\n"+
"TARGET.ATTRIBUTES.UserPassword = 'dbc'\n"+
"TARGET.ATTRIBUTES.LogTable = 'TiaraDB.Employeeinformation_log'\n"+
"TARGET.ATTRIBUTES.TargetTable = 'TiaraDB.Employeeinformation'\n"+
"TARGET.ATTRIBUTES.TdpId = 'localtd'\n"+
"DML.STATEMENT='INSERT INTO TiaraDB.Employeeinformation (empid,empname,empdesig,empsalary,empmail,empaddress,empzip,empcity,empstate,empcountry) VALUES (:empid,:empname,:empdesig,:empsalary,:empmail,:empaddress,:empzip,:empcity,:empstate,:empcountry);'\n"+
"SOURCE.SCHEMA='EmpId VARCHAR(5),EmpName VARCHAR(30),EmpDesig VARCHAR(10),EmpSalary VARCHAR(50),empmail VARCHAR(50),EmpAddress VARCHAR(50),EmpZip VARCHAR(50),EmpCity VARCHAR(50),EmpState VARCHAR(50),EmpCountry VARCHAR(50))'\n"+
"SOURCE.ATTRIBUTES.FileName = 'TDExportData.txt'\n"+
"SOURCE.ATTRIBUTES.Format = 'FORMATTED'\n"+
"SOURCE.ATTRIBUTES.OpenMode = 'Read'\n"+
"SOURCE.ATTRIBUTES.DirectoryPath = 'C:\\eclipse'\n"+
"SOURCE.ATTRIBUTES.IndicatorMode = 'N'\n"+
"SOURCE.ATTRIBUTES.TextDelimiter = ','";
Teradata Wallet - response (4) by Cesco
The solution is to use the escape char (\) before the command $tdwallet, so this is my script
#!/bin/bash
[...]
bteq <<EOF
.logon 11.51.71.141/US_FND_SSF_DEV,\$tdwallet(PWD_SSF_DEV)
[...]
.quit
EOF
TerradataParallelTransporter-Load error - response (1) by Fred
I haven't used this JNI / C++ approach, but I suspect backslashes will still need to be doubled within in the resulting script; you may need to enter four in a row in DirectoryPath.
Teradata Parallel Transporter Wizard 14.10 Issue - response (6) by Alexander K
Issue solved.
First, use a command window to:
1) check your Java version:
% java -version
2) check Java environmental variable:
% echo %JAVA_PATH%
3) check your Windows path:
% echo %PATH%
In my case, the latter two were not set to include the Java path, and the first would return nothing. So where did the Java path come from in the TPT wizard?
It turns out my existing Windows PATH has a subpath ;%SystemRoot%\system32 =
= C:\Windows\System32 wherein Java executables had been installed during Java installation and were being selected by default: Keep an eye on future Java updates; the problem might come back! As soon as these were removed and the above variables set, the issue was resolved.
For the following, let us assume you have JRE 7 on your PC, possibly both the x86 and the x64 versions installed. To set the environmental variables accordingly, go to
[Control Panel]\[System]
then launch [Advanced System Settings]\[Environmental Variables]
and set:
JAVA_HOME as C:\Program Files\Java\jre7\bin
Also, edit PATH and append:
;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Java\jre7\bin
Log out and back in, or restart for the changes to take effect.
DEFINE SCHEMA target_schema FROM TABLE - response (26) by rajesh_loke
thank you
Thanks feinholz. It really works.. One problem is i do have some columns which has more 127 '*' loading to varchar(127).
I tried using 127 '*' in NULLIF statement.
Got the error :"Nullif value too long for column: "
Is this can be solved ?