sql - Teradata client on Unix Solaris -


i deploy .bteq , .sql scripts on teradata database. doing this, use client on desktop called bteqwin version 13.10.0.03.

i .bteq/.sql version control pvcs/svn etc , once files in workspace folder (from version control tool), drag , drop files windows browser bteqwin client (which connect database prior drag/drop running scripts).

now, have automate whole process in unix.

i have written shell ksh/bash script getting .bteq/.sql tag/label in version control tool given unix folder. now, need pass these files 1 one (i'll take care of order) teradata client.

my ? - client need tell unix admin team install on unix server - can run below:

someteradatacommand -u username -p password -h hostname -d database -f filenametoexectue | tee output_filename.log

where, someteradatacommand client / executable - let me run teradata scripts (like doing using bteqwin on desktop - gui session). other parameters can username, password, database connect on server , file run or make file passed command using "<" operator @ command line.

any idea? - client ?

assuming complete teradata tools , utilities package installed on unix server (which have connectivity tools talk teradata), should have access bteq command line. this:

bteq < script_file > output_file 

your script file should contain .logon statement establish connection:

.logon yourtdpid/your_account,your_pw 

you might need use other commands set default database or non-default session values.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -