Sie sind auf Seite 1von 31

Satyam

CONCURRENT PROCESSING Objectives .

A O L T R A I N I N G

To Understand .

Overview of Concurrent Processing Defining Concurrent Programs Coding Oracle Tools Concurrent Programs

Over view Of Concurrent Processing Major Features

A O L T R A I N I N G

Online Requests Automatic Scheduling Concurrent Processing Options Online Request Review Concurrent Managers Simultaneous Queuing

Concurrent Processing Overview


A O L T R A I N I N G

Concurrent processing simultaneously executes programs running in the background with online operations Purpose of concurrent processing: Take advantage of multitasking,parallel processing and distributed processing Give system administration flexibility to set up concurrent processing to fit the needs of their site and users

Concurrent Processing Overview


A O L T R A I N I N G

Benefits of concurrent processing:


Consistent response time Use all the capacity of your hardware by executing many process at once Control the number of processes that run on each node On-line file review Portable interface to your concurrent program

Over view Of Concurrent Processing Definitions

A O L T R A I N I N G

Concurrent Program Concurrent Program Executable Concurrent Request Concurrent Process Concurrent Manager Concurrent Queue

Concurrent Processing Definitions


A O L T R A I N I N G

Concurrent Program
An instance of an execution file,along with parameter definitions and incompatibilities.Several concurrent programs may use the same execution file to perform their specific tasks,each having different parameter defaults and incompatibilities.

Concurrent Program Executables


An executable file that performs a specific task.The file may be a program written in a standard language,a reporting tool or an operating system language.

Concurrent Processing Definitionscontd


A O L T R A I N I N G

Concurrent Request
A request to run a concurrent program as a concurrent process

Concurrent Process
An instance of a running concurrent program that runs simultaneously with other concurrent process

Concurrent Manager
A program that processes users requests and runs concurrent programs.System Administrators define concurrent managers to run different kinds of requests.

Overview Of Designing Concurrent Programs


A O L T R A I N I N G
Any Program or any portion of a Form that can be separately constructed to be non-interactive could potentially be run as a concurrent process.

Creating Concurrent Programs. 1. Write Your program execution file and place it in the location for your Operating System. 2.Define the concurrent program executable with AOL to specify an execution file and an execution method for your program. 3.Define the a)Concurrent program with AOL b)Define program parameters c)Define any incompatibilities with other concurrent programs. 4)Request your program from the Run reports form

Designing Concurrent Programs


A O L T R A I N I N G
Concurrent Program Parameters

The Concurrent manager processes up to 100 arguments for a


concurrent program

Handling System Failures


Sometimes the concurrent managers fail in the middle of the program(or the database goes down,or the system crashes) The concurrent managers restart programs when the system goes up again Write your program so that it can restart and run again without problems-plan to commit at the very end of the program

Designing Concurrent Programs


A O L T R A I N I N G
Writing Concurrent Programs
Use Oracle Tools,PL/SQL Procedures to create execution files Stored Procedure Concurrent Programs
You can implement your concurrent program as a stored procedure.Stored procedure concurrent programs accept input parameters only and are submitted with the FND_REQUEST package.

Submitting a Concurrent Request


Your PL/SQL procedures can submit a request to run a program as a concurrent process by FND_REQUEST.SUBMIT_REQUEST.

Implementing A Concurrent Program


A O L T R A I N I N G Steps to follow when defining a concurrent program 1.Design a concurrent program
Why do you need a concurrent program?What does it do?

2.Write the program


Choose the appropriate programming language or tool

3.Put the program where Oracle Applications can read it


Place the program in your custom application directory

4.Define your concurrent program executable


Tell Oracle Applications that your program exists

Implementing A Concurrent Programcontd


A O L T R A I N I N G

5.Define your concurrent programs Define the specific parameters of your program Add program to a request group Assign request group to a responsibility 6.Submit your concurrent program Either use standard request submission or submit your program from a procedure or a form

Write The Program Executables


A O L

Oracle Tool Concurrent Programs


Oracle Reports programs are powerful T SQL*Plus,PL/SQL,SQL*Loader programs are simple R to write A I PL/SQL Stored Procedures N Appropriate for frequently executed concurrent I programs(including those you develop to replace N immediately concurrent programs from prior releases of G Oracle Applications) When your application has a simple background program that does not require any file I/O,you can implement it as a stored procedure concurrent program

Move Your Program File


A O L T R A I N I N G

Oracle Applications looks for executables based on their execution method Application

SRW BIN LIB RPT SQL LOG FORMS LANG OUT MESG PL/SQL

Define The Concurrent Program Executable


A O L T R A I N I N G

Identify your concurrent program to Oracle Application Object Library Concurrent Program Executables

Locating Your File


Provide the actual file name of your program file Provide the application that determines where to look for the file Provide the execution method

Define the Concurrent Program Executablecontd


A O L T R A I N I N G
Field Help

Executable In the concurrent programs form,you assign this name to a concurrent program to associate your concurrent program with your executable logic Application

The concurrent managers use the application to determine in which directory structure to look for your execution file

Define the Concurrent Program Executablecontd


A O L T R A I N I N G
Field Help Execution Method
The method determines in which directory the concurrent managers look for your execution file -FlexRpt:The execution file is written using the FlexReportAPI -FlexSql: The execution file is written using the FlexSql API -Host:The execution file is a host script -Oracle Reports -PL/SQL Stored Procedures -SQL*Loader:The execution file is a SQL script -SQL*Plus -Sql*Report -Spawned:The execution file is a C or PRO*C program -Immediate:The execution file is a program written to run as a subroutine of the concurrent manager.We recommend against defining new immediate concurrent programs and suggest you use either a PL/SQL stored procedure or a spawned C program instead

Define the Concurrent Program Executablecontd


A O L T R A I N I N G
Field Help

Execution File Name


Enter the operating system name of your execution file.Some operating systems are case sensitive,so the name entered here should match the file name exactly

Subroutine Name
Enter the name of your C or PRO*C program subroutine here.Do not use spaces or periods(.) in this field.

Define The Concurrent Program Executable


A O L T R A I N I N G

Define the concurrent program that user submit as a concurrent request

Define your Concurrent Programscontd


A O L T R A I N I N G

Identify the Program


Users select the program when submitting a request Applications pass the short name to the concurrent manager Applications can determine which oracle ID to use Disabling the program removes it from user access

Executable
Specify the name of the concurrent program executable you defined Provide options as necessary (oracle reports can specify binary mode ,page size and page orientation) Customize your queues with program level priority

Define your Concurrent Programscontd


A O L T R A I N I N G

Request
Concurrent managers can select requests based on request type SRS programs can use the submit request form You can choose whether to use values marked as disabled Run Alone programs hold up all other concurrent programs while running

Output
If the output is not saved ,online report viewing is impossible Define the minimum columns and rows needed by your program Users cannot override printer specification

Define Your Concurrent Programs contd


A O L T R A I N I N G
Parameter Information Sets up Submit Request Parameter Window Only Standard Request Submission programs use parameter windows Define a value set for each argument

Use the Concurrent Program Parameter window to enter detailed information about your parameters

Define your Concurrent Programscontd


A O L T R A I N I N G

Field Help
Sequence:Choose the sequence numbers that specify the order in which your program receives parameter values from the concurrent manager Disabled parameters do not display at request submission time and are not passed to your execution file

Validation
Value Set:Enter the name of the value set you want your parameter to use for validation.you can only select from independent,table,and non-validated value sets with 240 characters or less Default Type:If you want to set a default value for this parameter, identify the type of value you need Default Value:You can enter a default value for the parameter based on your default type

Define your Concurrent Programscontd


A O L T R A I N I N G

Validation
Required:If the program executable file requires an argument,you should require it for your concurrent program Range:Choose either low or high if you want to validate your parameter value against the value of another parameter in this structure

Display Characteristics
Display Size:Enter the field length in characters for this parameter.The users sees and fills in the field in the parameters window of the submit request window Prompt:A user sees the prompt instead of the parameter name Token:For a parameter in an Oracle Reports program,the keyword or parameter appears here.The value is case sensitive

Define Your Concurrent Programs contd


A O L T R A I N I N G
Use with Logical Databases List the concurrent programs that interfere with your program

Use the Incompatible Programs window

Define your Concurrent Programscontd


A O L T R A I N I N G

Field Help
Application:Although the default for this field is the application of your concurrent program,you can enter any valid application name Name:Your list displays the user-friendly name of the program,the short name,and the description of the program Scope:Enter set or program only to specify whether your concurrent program is incompatible with this program and all its child requests(set) or only with this program(program only)

Submit Your Concurrent Program


A O L T R A I N I N G
Submit your program either through SRS,from a form,or from a procedure

Use FND_REQUEST.SUBMIT_REQUEST(Client or Server)


Any PL/SQL procedure you develop-whether it runs on the client or on the server as a stored procedure or a database trigger-can submit a concurrent request to run a concurrent program Function FND_REQUEST.SUBMIT REQUEST( application IN varchar2 default NULL, program IN varchar2 default NULL, description IN varchar2 default NULL, start_time IN varchar2 default NULL, sub_request IN boolean default False, argument1, argument2, . . argument100)return number;

Submit Your Concurrent Programcontd


A O L T R A I N I N G
Submit your program either through SRS,from a form,or from a procedure

Use FND_REQUEST.SUBMIT_REQUEST(Client or Server)


The function returns the concurrent request ID,or 0 if it fails to submit your request Set options before calling FND_REQUEST.SUBMIT_REQUEST -FND_REQUEST.SET_OPTIONS(Client or Server) -FND_REQUEST.SET_REPEAT_OPTIONS(Client or Server) -FND_REQUEST.SET_PRINT_OPTIONS(Client or Server)

Submit Your Concurrent Programs contd


A O L T R A I N I N G
Add your program to a request group Your type is program Identify the name and application of your concurrent program

Include your concurrent program in a request group to make it available on the submit request window

A O L T R A I N I N G

End

Das könnte Ihnen auch gefallen