Professional Documents
Culture Documents
DWH
DWH
DWH
Cron
Jobs
SLJM is a basic
Utility Which lets
BTEQ SLJM Shell
Script
you manage
Loading jobs and
schedule them
according to your
business needs.
1. Cron Jobs
Fastload 2. Shell Scripting
3. BTEQ
4. FASTLOAD
CronJobs
• "Cron" is a time-based job scheduler in Unix-like operating
systems (Linux, FreeBSD, Mac OS etc...). And these jobs or
tasks are referred to as "Cron Jobs".
• There is a cron "daemon" that runs on these systems. A
daemon is a program that runs in the background all the
time, usually initiated by the system. This cron daemon is
responsible for launching these cron jobs on schedule.
• The schedule resides in a configuration file named
"crontab". That's where all the tasks and their timers are
listed.
Why use Cron Jobs
• If you have a membership site, where accounts have expiration dates, you can schedule cron jobs to
regularly deactivate or delete accounts that are past their expiration dates.
• You can send out daily newsletter e-mails.
• If you have summary tables (or materialized views) in your database, they can be regularly updated with a
cron job. For example you may store every web page hit in a table, but another summary table may contain
daily traffic summaries.
• You can expire and erase cached data files in a certain interval.
• You can auto-check your website content for broken links and have a report e-mailed to yourself regularly.
• You can schedule long-running tasks to run from a command line script, rather than running it from a web
script. Like encoding videos, or sending out mass e-mails.
• You can even perform something as simple as fetching your most recent Tweets, to be cached in a text file.
GUI and command based Syntax
Cronjobs Syntax: GUI Cron jobs
10 * * * * /usr/bin/php
/www/virtual/username/cron.php > /dev/null 2>&1
BTEQ
BTEQ utility is a powerful utility in Teradata that can be used in both batch and interactive mode.
It can be used to run any DDL statement, DML statement, create Macros and stored procedures.
BTEQ can be used to import data into Teradata tables from flat file and it can also be used to
extract data from tables into files or reports.
BTEQ TERMS AND RUN COMMAND