Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7856603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:45:31+00:00 2026-06-02T20:45:31+00:00

Tomorrow will be a work day for me =(. Colls, i need that sql

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:45:33+00:00Added an answer on June 2, 2026 at 8:45 pm

    Shell scripts, by default, only execute commands after the previous command has completed. The only exception to this is when you execute something in a background thread using &. So executing

    sqlldr userid=myscheme/0611@TEST_DB control=control_file.ctl LOG=test_log.log errors=100
    sqlplus userid=myscheme/0611@TEST_DB 10.33.19.13/test/DATA_UPLOAD/mysql_script.sql
    

    will already do what you want.

    However, if you want to use a separate thread so you can continue execution in the main thread, you can use

    sqlldr userid=myscheme/0611@TEST_DB control=control_file.ctl LOG=test_log.log errors=100 &
    pid=$!
    #do other stuff
    wait $pid
    sqlplus userid=myscheme/0611@TEST_DB 10.33.19.13/test/DATA_UPLOAD/mysql_script.sql
    

    That will allow you to do other stuff while the sqlldr command finishes. The program would then wait for the sqlldr command to complete before calling sqlplus.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am going for an interview day after tomorrow where i will be asked
I have an interview tomorrow morning and just found out that I will also
I'm trying to build an Activity that will serve as a Calendar Day View.
Tomorrow I have planed to do some IDispatch related work, and I will have
I have the following code to determine the unix timestamp of midnight tomorrow. It
I have an emergent bug that I've got to track down tomorrow. I know
I have a problem with a deadline. And that deadline is tomorrow :S Luckily
Tomorrow I will kick off a new project, a line of business application for
Hi I am really struggling making code for a function that 'returns an array
I need to create a recurring payment that should process only twice. First, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.