LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 08-11-2006, 05:39 AM   #1
ancys
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Rep: Reputation: Disabled
Sqlldr


hi
I wrote a shell script(bash) for reading the text file and store into database
sample.sh
#!bin/sh
var="test.txt"
sqlldr uname/pwd@dbname control=crl.ctl

Load data infile '/sai/test.txt' into table employee fields terminated by "#" trailing nullcols(Col1,col2,col3)
But her the Delimiter can be anything(like # r |) so delimiter i m storing in variable

I created the control.template is mentioned below
Load data infile '/REPLACE_ME/' into table employee fields terminated by "#" trailing nullcols(Col1,col2,col
For REPLACE_ME
sed "s@REPLACE_ME@$input@" control.template > crlfilename.ctl
its going to replace path/file name
is dere anything like this 4 delimiter

I m posoting it again because i have not given more details in my previous thread I 4got the thread title to modify
 
Old 08-11-2006, 10:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Could you please stop starting new threads on the same topic all the
time and stick with the ones you're already running? Consider this
an official moderator warning.

Responses other than the closure notice that the mod of this forum
will have to write please go to
http://www.linuxquestions.org/questi...d.php?t=470710


Cheers,
Tink
 
Old 08-11-2006, 11:39 PM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
closed. Follow disucssion with link above.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding sqlldr ancys Programming 6 08-10-2006 08:02 AM
sqlldr ancys Programming 1 08-05-2006 09:32 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration