Академический Документы
Профессиональный Документы
Культура Документы
Concurrent Program
Document Content
S.N
o
Index
Page
3
4
3
6
Logical Database
A logical database is a set of logically related data stored in one or more ORACLE IDs.
Concurrent managers use logical databases to determine the scope of concurrent program
compatibilities. When you define a concurrent program, you specify what programs are
incompatible with this program and cannot run together with this program in the same logical
database. A user in a logical database submits a concurrent request to run a concurrent
program. If a concurrent manager that can process your request finds that there are no
incompatible programs currently running in the users logical database, then the concurrent
manager processes the concurrent request. Concurrent managers use logical databases to
ensure that incompatible programs do not run together.
The following illustration depicts the relationship between the application, concurrent
program, and executable code:
Oracle Applications
Concurrent Program
Param
eters
Execut
able
If you want your users to submit your program through Standard Request Submission, you
must check theUse in SRS check box and register your program parameters when you
define your concurrent program.
When a user submits a concurrent request, the request waits in the queue of each concurrent
manager defined to be able to run the users concurrent request. Use Oracle System
Administration to set the priority of requests that a user submits and change the priority of
individual requests. The requests priority affects the requests position in the queues.
User Action
System maintains
Concurrent Managers
Read applicable
to
requests
RequestsList of requests
Concurrent
Start Concurrent
And start concurrent
Program programprograms
Multiple Concurrent programs
Request
Table
Reques
Concur
to Start
RunMay run simultaneously
Progra
t to run
rent
progra
mX
progra
Manag
mX
Started
m
er
Typical Concurrent Process Flow
Typical Concurrent Process flow
The first available concurrent manager that can process the users request looks at predefined
or system administratordefined data groups in Oracle Application Object Library tables.
The data group assigned the users responsibility contains a list of application names and
their corresponding ORACLE IDs. The concurrent manager automatically uses the ORACLE
ID associated with the concurrent programs application to run the program.
If no concurrent manager is currently running an incompatible program in the same logical
database as the users concurrent request, the concurrent manager removes the users
concurrent request from any other queues and runs your concurrent program. Your concurrent
program writes to a report output file and a log file. The concurrent manager automatically
prints the report output if you defined your program to print output.
If the program is submitted using Standard Request Submission, the user can specify printing
and submission information at runtime.
You can write different types of concurrent programs: Oracle Tool programs written in
SQL*Plus, PL/SQL, SQL*Loader, or Oracle Reports; programs written in C or Pro*C, or
host language programs.