RECRUITMENT SERVER CONFIGURATION

RECRUITMENT SERVER CONFIGURATION

Oracle E-Business Suite Release 12 Configuration in a DMZ
Terminology
Below are definitions of some of the terms that are used in this document:
Firewall
Firewalls control access between the internet and a corporation's internal network or intranet. Firewalls define which internet communications will be permitted into the corporate network, and which will be blocked. A well-designed firewall can foil many common internet-based security attacks.
DMZ
The DMZ, which stands for DeMilitarized Zone consists of the portions of a corporate network that are between the corporate intranet and the Internet. The DMZ can be a simple one segment LAN or it can be broken down into multiple regions as shown in Figure F2. The main benefit of a properly-configured DMZ is better security: in the event of a security breach, only the area contained within the DMZ is exposed to potential damage, while the corporate intranet remains somewhat protected.
Load Balancer
Load balancers distribute an application's load over many identically configured servers. This distribution ensures consistent application availability even when one or more servers fail.
Service
A service is a functional set of Oracle E-Business Suite application processes running on one or more nodes.
Node
A node is referred to as a server that runs a set of E-Business Suite R12 application processes or database processes. In a single node installation of Oracle E-Business Suite, all the application processes including the database processes run on one node whereas in a multi node installation, the processes run on multiple nodes.
Internal Applications Middle Tier
The internal applications middle tier is the server configured for internal users to access Oracle E-Business Suite. It runs the following major application services:
  • Web and Forms Services
  • Administration and Concurrent Manager Services
  • Reports and Discoverer Services

External Applications Web Tier
The external applications web tier is the server configured for external users for accessing Oracle E-Business Suite. It runs the following application service:
  • Web server
URL Firewall
URL Firewall contains a white list of URLs, for the externally exposed E-Business Suite Modules, that may be accessed from the Internet. You can find more information on URL Firewall and how to configure it in appendix E. Configuring the URL Firewall of this document. (Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1])

Points to be noted for the Network configuration as per Oracle’s recommendations are as
under:

1. Ensure that network firewalls are configured correctly

2. Ensure that the network firewall rules have been defined correctly and are permitting authorized E-Business Suite traffic between all network segments:

3. Verify that access between intranet-based desktop clients and the internal Application web tier is permitted and working

4. Verify that access between the internal Application web tier and the Applications database server is permitted and working

5. Communication between Internet-based desktop clients and the external web tier servers must be permitted and working.

6. Verify that access between the Applications external web tier servers to the Applications database server is permitted and working.

IRECRUITMENT SERVER CONFIGURATION

  1. Server details for the PROD configuration is as listed in the following table:

  Server                                           Name Domain Server Type Remarks
erpdb01 oracle.ae        Database Node 01 1st  DB node in the RAC environment
erpdb02 oracle.ae        Database Node 02 2nd  DB node in the RAC environment
erpap01 oracle.ae        Appl Node 01 1st  APPL node with HW load balancer
erpap02 oracle.ae        Appl Node 02 2nd  APPL node with HW load balancer
careers oracle.ae         IRecruitement  Node Only 01 server in the external domain
erpPROD oracle.ae           HW load balancer HW load balancer for Application load balancer.


The iRecruitment server is hosted on careers.oracle.ae. This server is hosted in the DMZ and
this will have only the Web services configured for the Irecruitment access for the external
candidates and visitors.

Deployment Architecture:







The deployment architecture of the external web server being used for the iRecruitment server
is illustrated in the above figure.

 As is evident the External web server CAREERS is behind the firewall in DMZ. Any external access coming through internet first pass through the Oracle govt. firewall and then reach to the CAREERS server. The CAREERS server in turn connects to the enterprise database using the JDBC connectivity. The services to the external server are restricted with the iRec external candidate responsibility and features.
IREC external Web Server configuration Details:

All the steps for the configuration of the iREC server in the external domain are listed
in the following table. Please refer Oracle Metalink note ID 380490.1 for complete
details.

 STEPS
                                                DESCRIPTION
Run maintain snapshot Information in the PROD system (ERPAPP01)

1. Login as user applprod in erpapp01 server and set the application environment
2. Run ADADMIN and Update the current View Snapshot
NOTE – This is the recommended step.
Run  adpreclone
On application
Tier (ERPAPP01)

1. Login to the Application Server (ERPAPP01) as user applprod, set the
application environment and shudown the application services as under:
$ cd $INST_TOP/admin/scripts
$ adstpall.sh apps/PASSWORD
Wait for 15 minutes and check that all the services are closed.
2. Run the PRECLONE script at the Application Tier
$cd $INST_TOP/ admin/scripts
$perl adpreclone.pl appsTier.
copy the  source application tier to target application tier.
1. Copy the application top file system (Complete) to target node CAREERS using  SCP
Create OS user name on Target node
For application
file and copy the
filesystem to
server CAREERS
Create the same os user name for (application) on target node like source node. For an
example applprod: dba
1. Create a mount point like /u01/oracle/PROD and copy 02 folders apps and inst from
the SOURCE (ERPAPP01) to CAREERS. Change the ownership of /u01/oracle
to applprod: dba as user root on CAREERS server as under:
# cd /
# chown –R applprod:dba u01.
Run CLONE steps on target node CAREERS

1. Login as user applprod and remove the environment file from .bash_profile if
exist and then again relogin to ensure that the environment of previous one is
unset:
2. Go to the following path and run the adcfgclone.pl
$ cd $COMMON_TOP/ clone/ bin
$ perl adcfgclone.pl appsTier
Following are the values which are to be passed specifically while cloning rest other values as per normal CLONE process:
enable Root Service Group [enabled] [enabled]: enabled
enable Web Entry Point Services [enabled] [enabled] enabled
enable Web Application Services [enabled] [enabled]: enabled
enable Batch Processing Services [enabled] [disabled]:disabled
Other Service Group [disabled] [disabled]: disabled
Add the new
application
tier

1. Before adding the new nodes please check if the CAREERS server is already
added. Please login to SQLPLUS as user apps and run the following commands:
SQL> select node_name, status, server_address from fnd_nodes;
SQL> select NAME, PATH from fnd_appl_tops;
SQL> select NAME, ACTIVE_FLAG, DESCRIPTION from ad_appl_tops
where name='careers';
2. If the entry for the server CAREERS exists then no need to perform this step. If
not then please follow the commands as under from CAREERS server as user
applprod
$ cd $COMMON_TOP/ clone/ bin
$ perl adaddnod.pl
Change the
Hierarchy
type for the
list of profile
values

1. Login to the Application Server ERPAPP01 as under applprod, set the
application environment and run the following command
sqlplus apps/apps @$FND_TOP/patch/115/sql/txkChangeProfH.sql SERVRESP
2. Run the AUTOCONFIG after this to ensure that this change is affected.
$cd $INST_TOP/ admin/scripts
$ adautocfg.sh
Provide the password for user APPS when prompted.



Update NODE_TRUST_LEVEL profile value for the SERVER and Responsibility Trust Level for iRecruitment External Candidate as shown below
System Administrator> Profile> System>  Responsibility to make the below updates:





Only iRecruitment External Candidate is the responsibility which will be accessed through External web server


 Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1]

Install Oracle grid agent in Silent mode

1. Download Oracle gridcontrol agent software.
2. Unzip oracle_home/sysman/agent_download/11.1.0.1.0. If patch not there create new folder.
3. Rename agent_download.rsp_bkp to agent_download.rsp.
4. Edit that file and add below informations.


s_OMSHost=acdf
s_OMSPort=7799
OMS_HOST=acdf.qataridiar.com
OMS_PORT=4889
AGENT_REGISTRATION_PASSWORD=
INSTALL_UPDATES_SELECTION="skip"
ORACLE_AGENT_HOME_LOCATION=/u01/agent11g/oemhome
FROM_LOCATION=/u01/appl/oracle/PROD/db/sysman/agent_download/11.1.0.1.0/linux_x64/agent/stage/products.xml



SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=

5. Go to runinstaller path and run below .

./runInstaller -silent -responseFile /u01/app/oracle/product/11.2.0/sysman/agent_download/11.1.0.1.0/agent_download.rsp

When access custom form we got following error message "Function not available to this responsibility".



The reason for this issue is that, missing entry for CUSTOM_TOP under default.env file. In R12, CUSTOM_TOP should be defined under default.env in $INST_TOP/ora/10.1.2/forms/server directory.

After cloning or Autoconfig this issue happend. In Apps R12 undaer $INST_TOP/ora/10.1.2/forms/server/default.env is there. Just add the custom top in that file.
Other wise add the same in XML files permentally.


Solution
1. Login apps user

2. cd $INST_TOP/ora/10.1.2/forms/server directory.

3. Cofirm that your CUSTOM_TOP's are registered in the default.env file.

This means that, you should create an entry for environment variable CUSTOM_TOP (which contains physical path to your custom directory) like below in default.env file present under location $INST_TOP/ora/10.1.2/forms/server directory.

Like,
XXCUS_TOP=/u02/oracle/apps/apps_st/appl/xxcus/12.0.0
XXCONV_TOP=/u02/oracle/apps/apps_st/appl/xxconv/12.0.0

or

Add below entry in XML files, So that automatically this patch registerd to default.env.

   /u02/oracle/apps/apps_st/appl/xxcus/12.0.0
   /u02/oracle/apps/apps_st/appl/xxconv/12.0.0


4. Not required restart any services

5. Close the login page and again try.

Oracle APPS Releated Queries

AD Patches Tables

AD_APPLIED_PATCHES
AD_PATCH_DRIVERS
AD_PATCH_RUNS
AD_APPL_TOPS
AD_RELEASES
AD_FILES
AD_FILE_VERSIONS
AD_PATCH_RUN_BUGS
AD_BUGS
AD_PATCH_COMMON_ACTIONS
AD_PATCH_RUN_BUG_ACTIONS
ad_comprising_patches

FND Tables


FND_APPL_TOPS
FND_LOGINS
FND_USER
FND_DM_NODES
FND_TNS_ALIASES
FND_NODES
FND_RESPONSIBILITY
FND_DATABASES
FND_UNSUCCESSFUL_LOGINS
FND_LANGUAGES
FND_APPLICATION
FND_PROFILE_OPTION_VALUES


To know which driver patch has been applied:
select DRIVER_FILE_NAME from AD_PATCH_DRIVERS;
select DRIVER_FILE_NAME from AD_PATCH_DRIVERS where DRIVER_FILE_NAME like '%2408149%';


To check if multicurrency is present:

select MULTI_CURRENCY_FLAG from fnd_product_groups;
M
-
Y

Purging timing information for prior sessions.
sqlplus -s APPS/***** @$AD_TOP/admin/sql/adtpurge.sql 10 1000

Snapshot sql
sqlplus -s &un_apps/***** @$AD_TOP/patch/115/sql/adbkflsn.sql 111

Maintenance mode
$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
FND_PROFILE.VALUE('APPS_MAINTENANCE_MODE')
--------------------------------------------------------------------------------
MAINT


to check the product is registered
select * from applsys.fnd_application where application_short_name='BNE';


adutconf.sql --- script used to generate Oracle Applications Database Configuration Report
Location : $AD_TOP/sql/adutconf.sql
Output : $AD_TOP/sql/adutconf.lst

PRODUCT VERSIONS (AD,PO,....)
select patch_level from fnd_product_installations where patch_level like '%&PRODUCT_NAME%';
select PATCH_LEVEL from fnd_product_installations where PATCH_LEVEL like '%AD%';
select PATCH_LEVEL,status from fnd_product_installations where PATCH_LEVEL like '%ICX%';

applying opatch without inventory
opatch apply -no_inventory
$ORACLE_HOME/cfgtoollogs/opatch/opatch-2009_Oct_29_22-33-37-CST_Thu.log --> opatch log location


To find opatch version:
/OPatch/
./opatch version


opatch options:

$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./9352164
opatch apply -local: apply patch only on local node in clusterdatabase environment
opatch apply -jdktop : if opatch could not find the path of jdk
opatch apply -no_inventory : Apply patch without updating inventory

to find the opatch that are installed
cd /OPatch/.patch_storage

OR cd /unioac/oracle/product/920/OPatch/
./opatch lsinventory
If it fails please check the path is correct in /etc/oraInst.loc or /var/opt/oracle/oraInst.loc



To know which services are running on what nodes:

select SUPPORT_CP,SUPPORT_FORMS,SUPPORT_WEB,SUPPORT_ADMIN from fnd_nodes;


To Know All the Drivers (NLS) language applied to Instance?

col PATCH_NAME format a10
col PATCH_TYPE format a10
col DRIVER_FILE_NAME format a15
col PLATFORM format a10
select AP.PATCH_NAME, AP.PATCH_TYPE, AD.DRIVER_FILE_NAME, AD.CREATION_DATE, AD.PLATFORM,AL.LANGUAGE
from AD_APPLIED_PATCHES AP, AD_PATCH_DRIVERS AD, AD_PATCH_DRIVER_LANGS AL
where AP.APPLIED_PATCH_ID = AD.APPLIED_PATCH_ID
and AD.PATCH_DRIVER_ID = AL.PATCH_DRIVER_ID
and AP.PATCH_NAME = '&No';"

select aap.patch_name,count(*) from AD_patch_driver_langs apdl, ad_applied_patches aap, AD_PATCH_DRIVERS apd
where apdl.patch_driver_id=apd.patch_driver_id and
aap.applied_patch_id=apd.applied_patch_id and
apdl.language <>'US'
group by aap.patch_name
having count(*) > 0 and count(*)<10 -- Changed from 9 to 10
order by patch_name"

To see NLS patches applied:

select language,driver_file_name from AD_PATCH_DRIVERS adp,AD_PATCH_DRIVER_LANGS adpl where adp.patch_driver_id = adpl.patch_driver_id
and driver_file_name like '%&a%' order by 1;

Script for Patch Log Analysis :

@$AD_TOP/patch/115/sql/adphrept.sql 1 ALL ALL 03/01/2004 07/05/2004 ALL ALL ALL ALL ALL N N N N N sample.txt


To knowd all the patdhes applied from 01-Sep-2005 to 28-Jan-2006. i.e b/w 2 dates use
$AD_TOP/patch/115/sql/adpchlst.sql

To check to make sure the correct data was installed run the following script this script can also be used to check if data installer was run successfully:

select application_short_name, Legislation_code, status, action, last_update_date
from hr_legislation_installations
where application_short_name in ('PER','PAY');

To check if DB version is 32 or 64 bit:

a.) conn to sqlplus if it is 64 ,then will show
b.)select address from v$sql where rownum<2;
c.)go to ORACLE_HOME/bin
do a file oracle.

Commands useful during Patch analysis

select bug_number from ad_bugs where bug_number='&t';
select to_char(CREATION_DATE,'dd-mon-yyyy hh24:mi:ss') from ad_bugs where bug_number=’&t’;
select to_char(LAST_UPDATE_DATE,'dd-mon-yyyy hh24:mi:ss')from ad_bugs where bug_number='&t’;
select patch_level from fnd_product_installations where patch_level like '&p';
select release_name from fnd_product_groups;
select DRIVER_FILE_NAME from ad_patch_drivers where DRIVER_FILE_NAME like '%3117672%';


For querying the MERGED PATCHES you can use the following script which will show which merged patches are applied for which language

select a.PATCH_DRIVER_ID,DRIVER_FILE_NAME,c.bug_id,d.language
from ad_patch_drivers a,AD_COMPRISING_PATCHES b, ad_bugs
c,AD_PATCH_DRIVER_LANGS d
where c.bug_number = '&no'
and c.bug_id = b.bug_id
and a.PATCH_DRIVER_ID = b.patch_driver_id
and a.patch_driver_id = d.patch_driver_id;

we can querry the ad_bugs for the US language version patches



To check if specific bug fix is applied, you need to query the AD_BUGS table only. This table contains all patches and all superseded patches ever applied:


select ab.bug_number, ab.creation_date
from ad_bugs ab
where ab.bug_number = '&BugNumber';

Retrieve basic information regarding patch applied, useful when you need to know when and where (node) you applied specific patch:
select aap.patch_name, aat.name, apr.end_date
from ad_applied_patches aap,
ad_patch_drivers apd,
ad_patch_runs apr,
ad_appl_tops aat
where aap.applied_patch_id = apd.applied_patch_id
and apd.patch_driver_id = apr.patch_driver_id
and aat.appl_top_id = apr.appl_top_id
and aap.patch_name = '&PatchName';

Run the following query, it will show you all modules affected by specific patch in one click :

select distinct aprb.application_short_name as "Affected Modules"
from ad_applied_patches aap,
ad_patch_drivers apd,
ad_patch_runs apr,
ad_patch_run_bugs aprb
where aap.applied_patch_id = apd.applied_patch_id
and apd.patch_driver_id = apr.patch_driver_id
and apr.patch_run_id = aprb.patch_run_id
and aprb.applied_flag = 'Y'
and aap.patch_name = '&PatchName';

One of the ways to find out the exact patchset that was applied to your database successfully, is you can query from props$ table. This table is owner by sys. Logon as system or sys and select from props$ table. This table has fields like name, values and comments. The name columne NLS_RDBMS_VERSION has the value equilent to the patchset applied to that database.

SQL> select name, value$ from props$;
NAME VALUE$
NLS_RDBMS_VERSION 7.3.4.3.1

Query to find languages installed or not:


Select distinct NLS_LANGUAGE, LANGUAGE_CODE,NLS_TERRITORY,INSTALLED_FLAG
from fnd_languages
where INSTALLED_FLAG = 'I' or INSTALLED_FLAG = 'B'
ORDER BY NLS_LANGUAGE

Select distinct NLS_LANGUAGE, LANGUAGE_CODE,NLS_TERRITORY,INSTALLED_FLAG
from fnd_languages
ORDER BY NLS_LANGUAGE


To find localization patches are applied.select * from jai_applied_patches where patch_number = 123456;

How to check whether the product is install,shared and Not installed in Apps.

select t.application_name
, t.application_id
, i.patch_level
, decode(i.status,’I',’Fully Installed’,
‘N’,'Not Installed’,'S’,'Shared’,'Undetermined’) status
from fnd_product_installations i
, fnd_application_vl t
where i.application_id = t.application_id
order by t.application_id;


/* To find the latest application version */

select ARU_RELEASE_NAME||'.'||MINOR_VERSION||'.'||TAPE_VERSION version, START_DATE_ACTIVE updated,ROW_SOURCE_COMMENTS "how it is done", BASE_RELEASE_FLAG "Base version" FROM AD_RELEASES where END_DATE_ACTIVE IS NULL


/* to find the base application version */

select ARU_RELEASE_NAME||'.'||MINOR_VERSION||'.'||TAPE_VERSION version, START_DATE_ACTIVE when updated, ROW_SOURCE_COMMENTS "how it is done" from AD_RELEASES where BASE_RELEASE_FLAG = 'Y'


/* To find all available application version */

select ARU_RELEASE_NAME||'.'||MINOR_VERSION||'.'||TAPE_VERSION version, START_DATE_ACTIVE when updated, END_DATE_ACTIVE "when lasted", CASE WHEN BASE_RELEASE_FLAG = 'Y' Then 'BASE VERSION' ELSE 'Upgrade' END "BASE/UPGRADE", ROW_SOURCE_COMMENTS "how it is done" from AD_RELEASES