What is Host Program in Oracle
What is Host Program?
and
How to create Host Program?
and
What is .Prog file?
To run a unix based shell script as a concurrent program, the
executable of the concurrent program should be registered as a ‘Host’ program.
The execution file name of the host program should end
with .prog extension and a soft link should
be created for the .prog file.
Here is an example of creation of host program with one parameter:
Step 1:
Create a prog file XX_HOST_PROGRAM.prog as shown below
Step 1:
Create a prog file XX_HOST_PROGRAM.prog as shown below
###############################################################################
# Copyright (c) Oracle Shooter. All rights reserved.
###############################################################################
###############################################################################
# Application : XXSD #
# Program Name : XX Host Program #
# Version # : 1.0 #
# Title : XX_HOST_PROGRAM #
# Remarks : Shell Script #
# Created by : Oracle shooter #
# Creation Date : 25-May-2020 #
# #
# Description : Use Shell script for Print Message #
# #
#=============================================================================#
# Date | Name | Remarks #
#=============================================================================#
# 25-05-2020 | MANOJ KUMAR | Initial Draft #
###############################################################################
# These 5 are system Defines Parameters #
###############################################################################
V_SUBJECT0=${0}
V_SUBJECT1=${1}
V_SUBJECT2=${2}
V_SUBJECT3=${3}
V_SUBJECT4=${4}
echo "***********************************************************"
echo " SYSTEM PARAMETERS Details "
echo "***********************************************************"
echo " "
echo "Parameter 0 :- Shell script name along with Path : " $V_SUBJECT0
#echo "Parameter 1 :- Oracle Apps User Name and Password : " $V_SUBJECT1
echo "Parameter 2 :- Application user_id from FND_USER : " $V_SUBJECT2
echo "Parameter 3 :- Application user_name from FND_USER : " $V_SUBJECT3
echo "Parameter 4 :- Concurrent Program Request ID : " $V_SUBJECT4
###############################################################################
# Defined Parameters and assign values in other variables #
# Concurrent Program Parameter start from 5 #
###############################################################################
V_MESSAGE=${5}
echo "***********************************************************"
echo " INPUT PARAMETERS Details "
echo "***********************************************************"
echo " "
echo "Parameter 5 :- Your Message : " $V_MESSAGE
echo " "
|
Step 2:
Upload the .prog file to the bin folder of rexspective application top and give necessary file permissions
Step 3: Go to respective location :-
/u01/appluat/UAT/apps/apps_st/appl/xxsd/12.0.0/bin
Create Soft Link:- Then run this script for creating the soft link
ln -s $FND_TOP/bin/fndcpesr XX_HOST_PROGRAM
Soft link will be created against fndcpesr so that concurrent
manager will recoganize as host program.
Step 4:
Create Executable and Concurrent Program
OUTPUT:-
*********************************************************** SYSTEM PARAMETERS Details *********************************************************** Parameter 0 :- Shell script name along with Path : /u01/appluat/UAT/apps/apps_st/appl/xxsd/12.0.0/bin/XX_HOST_PROGRAM.prog Parameter 1 :- Oracle Apps User Name and Password : APPS/Ap912323223#t Parameter 2 :- Application user_id from FND_USER : 0 Parameter 3 :- Application user_name from FND_USER : SYSADMIN Parameter 4 :- Concurrent Program Request ID : 1539961064 *********************************************************** INPUT PARAMETERS Details *********************************************************** Parameter 5 :- Your Message : Oracle Shooter
Comments
Post a Comment