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

  • SEARCH
  • Home
  • 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 7947299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:23:32+00:00 2026-06-04T01:23:32+00:00

I wrote a .sh script which should upload data from file by sql*loader and

  • 0

I wrote a .sh script which should upload data from file by sql*loader and then run stored procedure which should proceed uploaded data.

#!/bin/bash
ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin
export PATH
export ORACLE_SID=RSK

sqlldr userid=MY_SCHEME/PASS@MY_SID control=!_control_file.ctl LOG=upload.log errors=100

# SQl procedures start  
sqlplus -s MY_SCHEME@RSK/PASS<<end
# Procedure which transport data from stage tables to table_procedure_1
execute MY_SCHEME.procedure_1();
commit;
execute MY_SCHEME.procedure_2(); 
commit;
end

#exit from .sh script
exit; 

As a result i have uploaded data, but MY_SCHEME.procedure_1() doesn’t proceed uploaded data. It seems that there was not data commiting after uploading. Please, help me coorect my scipt. Thank you.

p.s. when i run procedure using sql*plus (not from .sh scirpt) it works fine.

It works coorectly:

sqlplus scheme/pass@database<<end
SET SERVEROUTPUT ON                       
begin                                     
  dbms_output.put_line ('Running procedure 1');
  proc1();
  COMMIT; 
  dbms_output.put_line('procedure completed');
end;
/ 
exit
end

Thanks to everybody!!!

  • 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-04T01:23:33+00:00Added an answer on June 4, 2026 at 1:23 am

    Your problem is probably with sqlplus command line. You use sqlplus -s user@schema/password when it is required to use sqlplus user/password@schema .
    Of course the -s switch that turns sqlplus completely silent does not really help.

    Also, you should include an EXIT command inside the SQLplus script (before the eof line).

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

Sidebar

Related Questions

I wrote a script (.js) which should copy all text from one file to
Colls, I wrote a script which should: copy a file from C:\PR\DataFiles\Input\CL_CH5\+k+\ext_028042012.dat to C:\PR\DataFiles\Input\ext_028042012.dat
I have a script that I wrote in PHP which scrapes data from a
I wrote this script which counts occurrences of particular pattern in a given file.
I wrote a script against SQL 2008 which worked fine: INSERT INTO ITEM_TABLE VALUES((SELECT
I recently wrote a script which queries PyPI and downloads a package; however, the
I wrote a batch script which recursively updates my source code against the company's
I wrote a perl script a while ago which logged into my online banking
I wrote the following script, which generates a SyntaxError : #!/usr/bin/python print Enter the
I want to write a script which cleans the 'run' dialogue automatically every log

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.