The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sqlldr end of file raippl Shell Programming and Scripting 2 01-28-2008 05:55 AM
Rsh & Sqlldr epall Shell Programming and Scripting 8 01-02-2008 03:40 AM
how to know sqlldr error? DILEEP410 UNIX for Dummies Questions & Answers 3 12-17-2007 07:14 AM
value too large for column : sqlldr DILEEP410 UNIX for Dummies Questions & Answers 1 12-13-2007 10:31 AM
help getting records loaded from sqlldr log ecupirate1998 Shell Programming and Scripting 0 07-28-2005 10:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-23-2007
systemsb systemsb is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 23
sqlldr help

1.The below script works perfectly fine in dev. However, i have been told that i cannot hardcode the password into the file during production impementation. Is their way i could ask the user to enter the password when the script is executed

2. I have seven different files each of which needs to be loaded to a different table.
eg
file table
a 845
b 123

( i am just making this up )

Like that there are seven differnt file and tables

If i have to use control file, sql ldr to load data, i would have to have a ctrl file,data file and a shell script shown below. which means 7*3 = 21 files in total

Is there a way i could use just one shell script that has all the ctrl files info and data file location to process all the files ?


SHELL SCRIPT


export USERID=schema@username/password

export CTRL_FILE_HOME=/SrcFiles/
export DATA_FILE_HOME=/SrcFiles/

#************ Load Data Elements info ******************************

export CTRL_FILE_NAME=DEA.CTL
export DATA_FILE_NAME=DEA.DEL

sqlldr control=$CTRL_FILE_HOME$CTRL_FILE_NAME userid=$USERID skip=0 ERRORS=20000 data=$DATA_FILE_HOME$DATA_FILE_NAME
  #2 (permalink)  
Old 05-24-2007
Unbeliever Unbeliever is offline
Registered User
  
 

Join Date: Jul 2005
Location: England
Posts: 183
Check the manual for your shell for the 'read' command. If you need to turn off echoing of characters when the user puts in the password it can be turned off and on using the 'stty' command.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0