Solved

Parallel updates

Posted on 2003-11-10
2
512 Views
Last Modified: 2012-08-14
How do U invoke calls to stored procedures from unix shell scripts parallely?

ie. executing many stored procedures to query many tables paralelly?

Thanks
0
Comment
Question by:garimellan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 9713296
You may have to run multiple script simultaneously...

each script doing a job !!!
0
 
LVL 6

Accepted Solution

by:
morphman earned 35 total points
ID: 9717314
use dbms_job package to submit multiple jobs from within a single session.

You may need to dynamically set init.ora parameters

JOB_QUEUE_PROCESSES

and

JOB_QUEUE_INTERVAL

But you can do this via an

alter system set job_queue_processes = 10;

command.

Look up the dbms_job in the oracle index for syntax on submitting jobs.

JOB_QUEUE_INTERVAL is measured in seconds.
JOB_QUEUE_PROCESSES - how many  background servers will execute jobs in the job_queue.

You can see submitted jobs from user_jobs view.

You will need to use DBMS_JOB.SUBMIT(parameters) to submit the job.

Good luck.

Also, you can use /*+ append_parallel(table_alias,number_of_parallel_processes) */ oracle hint in sql queries to run inserts in parallel.

selects will run in parallel with the /*+ parallel(table_alias,number_or_processes) */ hint on the select statement.

For inserts you will need to run a
alter session enable parallel dml;

command.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question