Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL*Loader

Status
Not open for further replies.

nithin97

Programmer
Oct 23, 2002
25
US
Hi,
i'm using SQL*Loader to load oracle tables.. can i please know whether I can use shell scripting inside a .ctl file 'coz the infile name will be always changing every 15 minutes. So i need to dynamically create the infile name which I can do it in shell scripting. Given below is what i'm trying to do... i dont think this is right.. :) ur help appreciated...

#!/bin/csh

set filename = xyz_20021001_0000

LOAD DATA

INFILE $filename
INTO TABLE pixel_temp
WHEN (01:05) = 'xyz' TRAILING NULLCOLS
(
TSDatetime POSITION(9:19)
"to_date:)TSDatetime,'MMDDYY_HH24MI')"
)
 
Use the shell script outside of the control file to rename your "changing" file names to something standard. Then use this standard name in the control file.

L
 
THanks lmorgansky.. i'll try ur concept and let u know.. thanks for the help...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top