SQL Loader in .csh file (KSH)
594614Oct 29 2008 — edited Oct 29 2008Hi,
We have some scripts (.sh and .csh) in on our UNIX boxes, Oracle 10G. To load data in tables we call sqlldr. Interestingly our .sh files are working fine but not .csh script. If we set SID manually .csh script runs correctly. How do i set SID for .csh files. Here is the sample code that i have
setenv ORACLE_HOME /folder/oracle/product/10.2.0
setenv PATH {$PATH}:{$ORACLE_HOME/bin}
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
setenv TNS_ADMIN $work_root/common
here is the call
sqlldr $DB_LOGIN data=$PRCS_FILE control=$CTL_FILE log=$SQL_LDR_LOG
$DB_LOGIN contains db credentials in form username/password and same is accepted in .sh scripts. Let me know if you need more info.