Tomorrow will be a work day for me =(. Colls, i need that sql script wait an end of sql*loader work in my -bash script. Is it right code below?:
#!/bin/bash
echo -------- uploader.sh v 0.1 --------
# @echo;
export NLS_LANG=russian_cis.ru8pc866
export NLS_NUMERIC_CHARACTERS='.'
ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1/bin
export ORACLE_HOME
PATH=$ORACLE_HOME
export PATH
sqlldr userid=myscheme/0611@TEST_DB control=control_file.ctl LOG=test_log.log errors=100
wait #here i want to wait sqlloader executing
sqlplus userid=myscheme/0611@TEST_DB 10.33.19.13/test/DATA_UPLOAD/mysql_script.sql
I've read about wait function here.