R12_CALL_SQL_FILE_AS REQUEST
R12_CALL_SQL_FILE_AS REQUEST
How to Run an .sql Script as Concurrent Request in E-Business Suite (Doc ID 1575955.1)
In this Document
Goal
Solution
1) Copy the script into the source ($PRODUCT_TOP/sql) directory
2) Modify script_name.sql script
3) Create a new Executable (SCRIPT_SQL)
4) Define a new Concurrent Program (Data Collection Script)
5) Add the new Script Program to the Responsibility's Request Group.
6) Submit a new 'Data Collection Script' Concurrent Request and Verify the output.
APPLIES TO:
GOAL
What are the steps to register and configure an sql script to be executed as a standard Concurrent Request from Oracle
Applications.
Manual execution of the existing script requires a System Administrator or DBA user with access to SQL*Plus and
Applications Owner (APPS) password. The creation of the Concurrent Request needs to be performed by a System
Administrator; however, this will be a one time task. Once installed, end users with the proper Responsibility will have the
ability to execute the script as a single request, or schedule periodically without the need of SQL access or the Applications
Owner (APPS) password.
So instead of using:
SOLUTION
For the purpose of registering an SQL*Plus program, you can use any PRODUCT_TOP.
For example if it related to Human Resources you can use $PER_TOP (Human Resources). If the script is related to Fixed
Assets, you can use $FA_TOP.
The same steps can be followed to create and register a SQL*Plus program in custom top as well.
Please review " Using the Custom Library" Chapter in Oracle Applications Developer's Guide for more details.
1 of 6 03/11/2021, 13:19
Document 1575955.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state...
Logon to the Middle Tier as the applmgr account (or any user that has permissions on the Application files),
and put the .sql file.
$ cd $PRODUCT_TOP/sql
$ ls -lart script_name.sql
-rw-r--r-- 1 <SID> dba 105788 Aug 1 07:57 script_name.sql
From:
SPOOL &spoolFile
To:
ie spool command should be commented out for Concurrent program to generate the output file.
Logon to Oracle Applications as System Administrator Responsibility and navigate to Concurrent >
Program > Executable
Executable SCRIPT_SQL
Application depending on the usage, for example Human Resources (Use the LOV)
2 of 6 03/11/2021, 13:19
Document 1575955.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state...
Enabled Checked
Shortname SCRIPT_SQL
Executable Section
Name SCRIPT_SQL
Method SQL*Plus
Output Section
3 of 6 03/11/2021, 13:19
Document 1575955.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state...
Seq 10 20
Display
20 20
Size
In the list of requests section, click to add a new row to the record as per following :
Type Program
4 of 6 03/11/2021, 13:19
Document 1575955.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state...
6) Submit a new 'Data Collection Script' Concurrent Request and Verify the output.
As the responsibility used, for example XX HRMS Manager Responsibility, navigate to Process and Reports
> Submit Processes and Reports
Click to Find the Concurrent Program 'Data Collection Script' and submit.
5 of 6 03/11/2021, 13:19
Document 1575955.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state...
Once the request completes click on View Output and verify you can see the output.
6 of 6 03/11/2021, 13:19