SQLPlus Concurrent Program in Oracle Apps
SQLPlus Concurrent Program in Oracle Apps
SQL* Plus is one of the executable method available while defining a concurrent
program in Oracle Apps. It allows running SQL* Plus script against the Oracle ERP
database under Oracle Apps Environment following all security and access control.
This method helps to create some ad-hoc script as a concurrent program. Ideally,
convert this standalone script as a database object and define PL SQL Concurrent
Program on it.
One warning here, this script executes with the privilege of Apps user when you
submit it through a concurrent program, so be careful. Test the script thoroughly.
A simple mistake in a script may wipe out/corrupt data in the instance.
SQL*Plus is an interactive and batch query tool. It installs with every Oracle
Database installation. It has a command-line user interface, a Windows Graphical
User Interface (GUI). There iSQL*Plus web-based user interface is also available.
Table of Contents
Pre-requisite
Step 1 � Create SQL Script (. sql)
Step 2 � FTP .sql script to $XXCUSTOM_TOP/sql path
Step 3 � Define Concurrent Program Executable
Step 4 � Define Concurrent Program
Step 5 � Add Concurrent Program to Responsibility
Run the Program
Pre-requisite
Basic working knowledge of Oracle Apps and knowledge of SQL* Plus commands.
Software/Hardware environment
ERROR at line 7:
ORA-00904: �APPS�: invalid identifier
SET HEADING ON
SELECT owner
, object_name
, object_type
, status
FROM dba_objects
where rownum <5
and owner ='&1';
COLUMN command formats heading and display length. Please note, usage of SET
HEADING ON command. This is to display heading for the columns in output as by
default Oracle Concurrent Manager turn it off.
One point to note here, for SQL*Plus programs, the concurrent manager automatically
inserts the following prologue (set) of commands into your SQL*Plus script.
SQL*Plus Prologue
The concurrent manager also inserts a command into your SQL*Plus script to set
LINESIZE according to the print style of the script. If you want SQL*Plus script to
continue after a SQL error, you must insert the following line into your SQL*Plus
script.
WHENEVER SQLERROR CONTINUE � This instructs the concurrent manager to continue even
there is an error in the script.
SET TERMOUT OFF suppresses the display so that you can spool output from a script
without seeing it on the screen.
SET PAUSE OFF Displays the specified text then waits for the user to press RETURN.
SET HEADING OFF suppresses column headings.
SET FEEDBACK OFF also turns off the statement confirmation messages such as �Table
created� and �PL/SQL procedure successfully completed� that are displayed after
successful SQL or PL/SQL statements
SET ECHO OFF Turns command output on or off. This command only affects output being
displayed in a script or using the spool mode.
SET VERIFY OFF The VERIFY setting controls whether or not SQL*Plus displays before
and after images of each line that contains a substitution variable.
WHENEVER SQLERROR EXIT FAILURE � Performs the specified action (exits SQL*Plus by
default) if a SQL command or PL/SQL block generates an error.
Step 2 � FTP .sql script to $XXCUSTOM_TOP/sql path
Copy/FTP .sql script /sql path to Oracle Apps Unix Server. Use WinSCP or FileZilla.
Make sure to move it to respective top of the application where executable is
registered.
e.g copy it to $PO_TOP/sql if you are going to register executable under Purchasing
Application.
Note:- Copy this script on all the node if you have a multi-node instance.
Define parameter as shown below. Script has only one parameter. This will be passed
as &1 to script.
cUtilRevGe
chmentWrit
APPS /11183808_Attributes JAVA CLASS VALID
Points to remember,
Share This:
FacebookTwitterWhatsAppShare0
Related posts:
Sandi
I am Oracle Certified Associate(OCA) working in Oracle Domain since last 15 Years.
Started this blog to share knowledge about different Technologies mostly focussing
on Oracle.
FacebookTwitterWhatsAppShare0
Search
Recent Posts
Installing Apache and PHP on CentOS 8
SQL vs NoSQL
The Linux curl command
How to Install Apache and PHP on OpenSUSE 15.1
Main new features of Ubuntu 20.04
Affiliate Disclosure
This website contains Affiliate Links. We get small commission for purchases made
through affiliate links (at no extra cost to you)