You are on page 1of 11

Things to Remember

=======================

$ipconfig ( unix command to see the IPAddress of Host Machine )

$service network restart ( unix command to see the IP Addr of Host Machine )

$env | grep -i forms [[ At root directory in Apps user , this command gives
complete url of ur application ]]

$f60gen ( apps Utility ) ( converts .fmb to .fmx) .fmx to .fmb ??

ADMIN SERVER ( apps)


===============

it is only for Upgradation purpose, it contains files containing Metadata (like


.ldt files) .drv( driver files etc

--> note:: .ldt files contain metadata, By using SQL we can Enable .ldt files.

Discoverer Server (apps)---> its Optional


===========================

You have to enable it by applying some patches, it is used to customize the


reports

NOTE:: APPL_TOP contains all the 197 products in its file system.

--> IMP Note ::


==============
In a Typical Multi Node Installation, we have form & Admin server on One Node.

Report, Concurrent and Database in One NOde, and also we can have multiple Forms
server for Load balancing.

But, Remember FileSystem ( APPL_TOP) should be there on each and every node.

Because APPL_TOP should be present on each node, In Genpact we have DBTier


APPL_TOP & APPS_TIER Appl_top on both DBtier
and APPS Tier

DOubt--> How do we know which server( forms,db,concurrrent server etc)is on which


node.
======

Doubt--> While Installation which server to be installed on which Node. i,e how do
we know which server to be installed
========
on which node.

===> Installation log files r stored in 2 types a) DB logfiles & b) APPS log files
a) DB log files are stored in $ORACLE_HOME/appsutil/<context name>

b) APPLication Log files are stored in $APPL_TOP/admin/<context name>/log

--> For production APps installatio 60 gb space is required.

--> For Vision (demo) 80 Gb space is Required.

--> For Dump or Stage --> 18 Gb is required.

------> When u install 11.5.9 all the 197 products gets installed, but if u want to
enable specified products, u can

enable only specified products. eg u can enable 2,3, 4 products depending


on requirements.

oraInst.loc
==============

--> For getting info about fresh installation go to /etc/oraInst.loc , There u'll
find one path
/oraInventory/<context>XMl/Inventory.xml in Inventory.xml u'll find user info
i,e who is DB user name,

what is apps user name, ask sysadmin about pwds

---->(Apps) In $<SID>_ora/iAS/Apache/modplsql/cfg/wdbsvr.app (OR)


$IAS_ORACLE_HOME/Apache/modplsql/cfg/wdbsvrapp

in wdbsvr.app file, ur apps pwd is hardcoded.

---->(Apps) In <IAS_O_H>/apache/Apache/conf/httpd.conf ( WE can find Apache port


no. )

----->sql/apps===>select release_name from fnd_product_groups; (here u'll get


release no. of ur Application)

DOUBT==> the above table and v$tables etc can be accessed as Apps or system users
only ??
=====

DB
----> thru v$instance we can find Dbversion and dbname ( u can find it using any
user)

---> Note: v$ tables can be accessed by any use, but some fnd tables can be
accessed by only Apps.
===========

APPS---> TO know apache port no. go to the following location.

$IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf ( in httpd.conf u'll have apache


port no. )

APps ---> $env |grep -i appl ( run this at unix prompt, it will show the locations
containing appl or appl_top

APPS--> apperp@schd004# env |grep -i forms ( will give URL of front end and
locations containing forms item

O/p
-----
APPLFRM=forms
FORMS60_OAM_FRD=OFF
FORMS60_WEB_CONFIG_FILE=/apl40/d002/app/applmgr/gpsore40/comn/html/bin/appsweb_gpso
re40_schd004.cfg
FORMS60_BLOCKING_LONGLIST=FALSE
FORMS60_FORCE_MENU_MNEMONICS=0
CLASSPATH=/apl40/d002/app/applmgr/gpsore40/comn/util/jre/1.1.8/lib/rt.jar:/apl40/d0
02/app/applmgr/gpsore40/comn/util/jre/1.1.8/lib/0
FORMS60_DISABLE_UNPAD_LOV=FALSE
FORMS60_TRACE_PATH=/apl40/d002/app/applmgr/gpsore40/comn/admin/log/gpsore40_schd004
FORMS60_MESSAGE_ENCRYPTION=TRUE
AF_CLASSPATH=/apl40/d002/app/applmgr/gpsore40/comn/util/jre/1.1.8/lib/dt.jar:/apl40
/d002/app/applmgr/gpsore40/comn/util/jre/1.1.8/la
FORMS60_CATCHTERM=1
FORMS60_REJECT_GO_DISABLED_ITEM=0
FORMS60_LOV_INITIAL=5000
FORMS60_MAPPING=http://schd004.sch.ge.com:8025/OA_TEMP ---------------------> here
is the complete url of Front End 8025 is apache port no.
FORMS60_RTI_DIR=/apl40/d002/app/applmgr/gpsore40/comn/admin/log/gpsore40_schd004
FORMS60_APPSLIBS=APPCORE FNDSQF APPDAYPK APPFLDR GLCORE HR_GEN HR_SPEC ARXCOVER
FORMS60_SESSION=TRUE
FORMS60_OUTPUT=/apl40/d002/app/applmgr/gpsore40/comn/temp
FORMS60_TIMEOUT=5
FORMS60_PATH=/apl40/d002/app/applmgr/gpsore40/appl/au/11.5.0/resource:/apl40/d002/a
pp/applmgr/gpsore40/appl/au/11.5.0/resource/stub
FORMS60_RESTRICT_ENTER_QUERY=TRUE

APPS---> Port Pool is Specified at the time of APPS INSTALLATION


================================================================
IF PORT POOL =0 ( the following db and apache port comes automatically for port
pool 0)

DB port = 1521
Apache port or Apps tier port = 8000

IF PORT POOL = 1 ( the following db and apache port comes automatically for port
pool 1)

DB port = 1522
Apache port or Apps tier port = 8001

and so on ......

APPS--> What is the significance of runninf .env files


=========
Sol:: If u run the .env files , environment variables are set or sourced. Eg.
APPL_TOP,COMN_TOP, ORACLE_HOME etc
-------

So that u can easily go to their locations.

APPS--> where are the .env files are located.


========

for DBTier .env files are stored in $ORACLE_HOME/ <conttext_name>.env ie


<sid_hostname>.env

for AppsTier .env files are stored in $APPL_TOP/as <cotext_name>.env

[oracle schd001c] $ which java ( shows path of java if it's set) ( u'll get same
o/p in both Apps & DbTier)
o/p
----
/usr/bin/java

[oracle schd001c] $ java -version ( to see java version ) ( u'll get same o/p in
both Apps & DbTier)
o/p
------
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

Starting of DB and Apps services


=====================================

-->Before u start the Apps (i,e Apps services) First start the DB & before starting
Db start the Db listener.( or u can start
the DB first and then listener also) then u can Start the Apps services. using
adstrtall.sh apps/apps command

this command is located under $COMN_top/admin/scripts/<context_name> or


$APPLCSF/scripts/<context_name>

example:
--------
apperp@schd004# pwd
/apl40/d002/app/applmgr/gpsore40/comn/admin/scripts/gpsore40_schd004

apperp@schd004# ls -ltr
total 256
-rwx------ 1 applmgr oracle 13444 Aug 30 09:52 adpreclone.pl
-rwx------ 1 applmgr oracle 4299 Aug 30 09:52 adstrtal.sh
-rwx------ 1 applmgr oracle 4206 Aug 30 09:52 adstpall.sh
-rwx------ 1 applmgr oracle 1008 Aug 30 09:52 adautocfg.sh
-rwx------ 1 applmgr oracle 5079 Aug 30 09:52 adalnctl.sh
-rwx------ 1 applmgr oracle 5601 Aug 30 09:52 adtcfctl.sh
-rwx------ 1 applmgr oracle 8037 Aug 30 09:52 adfrmctl.sh
-rwx------ 1 applmgr oracle 6728 Aug 30 09:52 adfmcctl.sh
-rwx------ 1 applmgr oracle 22361 Aug 30 09:52 adapcctl.sh
-rwx------ 1 applmgr oracle 5818 Aug 30 09:52 adfmsctl.sh
-rwx------ 1 applmgr oracle 8979 Aug 30 09:52 adaprstctl.sh
-rwx------ 1 applmgr oracle 2575 Aug 30 09:52 gsmstart.sh
-rwx------ 1 applmgr oracle 6848 Aug 30 09:52 addisctl.sh
-rwx------ 1 applmgr oracle 3434 Aug 30 09:54 jtffmctl.sh
-rw-rw-r-- 1 applmgr oracle 0 Aug 30 11:46 aferror.log

unix---> etc/hosts [ this file contains entry of host i,e IP address of host]
========
3.72.76.210 schd001c.sch.ge.com schd001c loghost

[oracle schd001c] $ uname -a ( gives info about os, ie its name, version, node
name)

o/p
===
SunOS schd001c 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire-15000

( in the above o/p , it's SUn OS 5.8 version )

[oracle schd001c] $ uname -r ( gives only version)


5.8

[oracle schd001c] $ uname -X (Prints expanded system information, one


information)

o/p
=====

System = SunOS
Node = schd001c
Release = 5.8
KernelID = Generic_117350-28
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 16 ( no. of CPU's are Displayed)

APPS---> loG and OUT FILE LOCATIONS OF AD UTILITIES.( like, Adpatch,adadmin etc)
======= =========================================

$APPL_TOP/admin/<sid>/log

$APPL_TOP/admin/<sid>/out

$APPL_TOP/admin/<sid>/restart ---> contains temporary files, created by


adpatch etc

APPs--> CONCURRENT MANAGER LOG AND OUT FILES LOCATIONS ARE;


===============================================================

$APPLCSF/$APPLLOG

$APPLCSF = $COMMON_TOP/admin

$APPLLOG = log/$TWO_TASK

SQL> desc dba_tab_privs


Name Null? Type
----------------------------------------- -------- ----------------------------
GRANTEE NOT NULL VARCHAR2(30)
OWNER NOT NULL VARCHAR2(30)
TABLE_NAME NOT NULL VARCHAR2(30)
GRANTOR NOT NULL VARCHAR2(30)
PRIVILEGE NOT NULL VARCHAR2(40)
GRANTABLE VARCHAR2(3)
HIERARCHY VARCHAR2(3)

SQL> desc dba_sys_privs


Name Null? Type
----------------------------------------- -------- ----------------------------
GRANTEE NOT NULL VARCHAR2(30)
PRIVILEGE NOT NULL VARCHAR2(40)
ADMIN_OPTION VARCHAR2(3)

Db / APPS :: Location of listener.ora and tnsnames.ora


========= ============================================

oransd@schd001c # echo $TNS_ADMIN ( it is at both sides, APPS TIER & DB Tier, and
Both the files are different)

/schchx85/d001/app/oracle/schchx85/9.2.0/network/admin/schchx85_schd001c

oransd@schd001c # cd $TNS_ADMIN

oransd@schd001c # ls -ltr
total 12
-rw-r--r-- 1 orachx85 dbachx85 1403 Jun 1 2005 listener.ora
-rw-r--r-- 1 orachx85 dbachx85 2 Jul 5 2005 sqlnet_ifile.ora.org
-rw-r--r-- 1 orachx85 dbachx85 752 Jul 5 2005 sqlnet.ora.org
-rw-r--r-- 1 orachx85 dbachx85 1476 Aug 25 2005 tnsnames.ora

oransd@schd001c # lsnrctl status schchx85 ( here schchx85 is an instance name,


this will show status of listener )

( U can execute this command from both DB and APPS Tier from Any location )

LSNRCTL for Solaris: Version 9.2.0.5.0 - Production on 04-SEP-2006 03:13:34

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCschchx85))
STATUS of the LISTENER
------------------------
Alias schchx85
Version TNSLSNR for Solaris: Version 9.2.0.5.0 - Production
Start Date 01-SEP-2006 20:57:34
Uptime 2 days 6 hr. 15 min. 59 sec
Trace Level off
Security OFF
SNMP OFF
Listener Log File
/schchx85/d001/app/oracle/schchx85/9.2.0/network/admin/schchx85.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROCschchx85)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=schd001c.sch.ge.com)(PORT=25500)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "schchx85" has 1 instance(s).
Instance "schchx85", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

===========================================================================

$ tnsping <SID or TNSNAME> ( Give this command at cmd prompt to check whether tns
entry is correct or not)

$ ping <url of server> -t ( to check whether network connection is fine or not, use
"run" or cmd prompt of unix)

APPS---> To START CONCURRENT MANAGER


========================================
-> go to scripts location APPLCSF/scripts/<context_name>

$ adcmctl.sh start apps/<apps pwd> ( to start CM - concurrent manager)

-->APPS==> $AD_TOP/sql contains .sql files one of them is is adutconf.sql which


helps in

Application Information Gathering.when u run adutconf.sql it will create


adutconf.lst which gives info like

instance name,installed products info,multi_org enabled or not, Registered


Data Groups, Base language and other Installed languages info

NLS Settings info like below info.

NLS_NCHAR_CHARACTERSET: UTF8

NLS_CHARACTERSET......: UTF8

NLS_DATE_FORMAT.......: DD-MON-RR

NLS_NUMERIC_CHARACTERS: .,

NLS_LANGUAGE..........: AMERICAN

NLS_SORT..............: BINARY
--> Product Database Configuration info , like as given below.

Product Schema DB Status Inst Grp Size% Main TS Index TS

-------- ------------ ------------- -------- ------ ------------ ------------

ABM ABM Installed 0 100 ABMD ABMX

AD APPLSYS Installed 0 100 APPLSYSD APPLSYSX

AHL AHL Installed 1 100 AHLD AHLX

*APPS===> How TO CLEAR UR APPLICATION CACHE OR Apache


=====================================================

First, bring down the apache server by using "adapcctl.sh stop" which is
under APPLCSF/scripts/<context_name>

Then go to $common_top here u'll find _pages dir , remove or move -pages
directory.

then make the directory (mkdir _pages) give 777 permissions i,e chmod 777 -pages

now start apache server using "adapcctl.sh start"

NOTE :: Before 11.5.9 _pages was there in $OA_HTML/pages

ORA_TOP = IS A Combination of $IAS_ORACLE_HOME and 8.0.6 oracle home (a.k.a


$ORACLE_HOME)

$IAS_ORACLE_HOME/ Cntains Apache,Jserv directories

ie $IAS_ORACLE_HOME/Apache & $IAS_ORACLE_HOME/Jserv

and $IAS_ORACLE_HOME/Apache inturn contains again Apache and modplsql

i,e $IAS_ORACLE_HOME/Apache/Apache and $IAS_ORACLE_HOME/Apache/modplsql

$IAS_ORACLE_HOME/Apache/Apache contains conf & logs dirs

$IAS_ORACLE_HOME/Apache/Apache/conf contains httpd.conf file ( this is a Main


Apache server config file)

eg:

appnsd@schd007# pwd
/gpsemd40/d002/app/applmgr/gpsemd40/iAS/Apache/Apache/conf

====>forms.properties and zone.properties files are under


=============================================================

$IAS_ORACLE_HOME/appsutil/out/<$two_task> and
$IAS_ORACLE_HOME/appsutil/template/Apache/Jserv/etc
=====
==>APPS===> httpd.pid & access_log.<number> files are stored in
"$IAS_O_H/Apache/Apache/logs
------------

==> APPS ==> jserv.log & mod_jserv.log are stored in $IAS_O_H/Apache/Jserv/logs

SQL> select created from v$database; ( this gives you date when ur Db was created
or Cloned )

CREATED
---------------
08-APR-06

UNIX==> with top command u can see the size of RAm,The load on CPU and %of CPU used
by the Command.

[oraes gpsd025f] $ top


last pid: 2103; load averages: 6.12, 6.34, 7.05
04:49:45
738 processes: 467 sleeping, 41 zombie, 223 stopped, 7 on cpu
CPU states: 20.7% idle, 62.3% user, 15.4% kernel, 1.7% iowait, 0.0% swap ==> In
this line CPU states show % cpu USage, here 62.3% is used by user and 15.4% used by
Kernel i,e total 79.3 % used and 20.7% used.
Memory: 16G real, 11G free, 1092M swap in use, 18G swap free ====> In this
line 16G real is a RAM size,

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
14156 ngg756t 12 0 0 7496K 1032K cpu/33 9104.2 12.18% srsproxy
1809 oraes 1 0 19 1808K 1336K cpu/34 1:59 12.17% compress
1927 oraes 1 0 19 1808K 1336K cpu/66 1:13 11.71% compress
1931 oraes 1 0 19 1808K 1336K cpu/64 1:04 11.40% compress
1945 oraes 1 0 19 1808K 1336K cpu/65 0:54 11.00% compress
2069 oraes 1 0 19 1808K 1336K cpu/32 0:10 4.93% compress
2292 root 1 23 0 15M 12M sleep 121.3H 0.51% PatrolAgent
2070 oraes 1 46 0 3600K 2376K cpu/67 0:00 0.18% top
1835 pat340 1 21 10 7680K 3288K sleep 18.6H 0.09% bgscollect
1260 root 1 6 10 12M 10M sleep 30.6H 0.06% PatrolAgent
25859 root 18 50 0 7456K 3320K sleep 716:05 0.04% cstd.agt
2103 pat340 1 16 10 1496K 1168K sleep 0:00 0.03% sadc
2102 pat340 1 6 10 1440K 1192K sleep 0:00 0.03% sar
728 root 17 59 0 4264K 2328K sleep 491:07 0.01% nscd
1819 pat340 1 29 10 11M 6232K sleep 61:18 0.01% dcm

apps
=====>Under AD_top/bin u have various Ad Utilities like
Adpatch.adadmin,adclone,adrelink,adident etc
note :: U can run these adUtlities from any directory from Apps user, becuse it
path is set (probably by .env files)
-----

ADADMIN
=======

(main menu)

1. Generate Application File.

--> a) Relink APplication Program :: Whenever we install new product or new Tech
Stack component u need to Relink it
=========================
i,e making consistent with the existing application.

(My own Understanding of AdRelink or Relinking) --> since apps is a collection of


various modules like AR,AP,GL,INV etc i,e

Apps is a collection of different business modules which are interlinked together


to facilitate sharing of business info.

when u make some changes or appls patch to one or some of the modules they become
Inconsistent with rest of the
Apps/modueles. Inorder to make them consistent Relinking is used.

2. Maintain Application Database objects ::


======================================

3. Compile Apps Schema ==> It will try to remove invalid objects count after or
Decreases Invalid objects. generally done
=====================

After patch is applied. i,e we take invalid objects count before application of
patch and after application of patch

if invalid objects count increases, then we need to compile apps schema.


"compile Apps Schema" is done on DBTier as

ApplMgr user.Internally it calls "utlrp.sql" .U can run AdAdmin as ApplMgr user


only on DBtier.

Some companies do not allow u to "compile Apps Schema" using Adadmin, In that
case u need to run utlrp.sql which

is located under $ORACLE_HOME/rdbms/admin. u ca run utlrp.sql as apps or sys


user. this will also compile invalid Objects

i,e removes invalid objects.

===> Select object_name,status from dba_objects where status = 'inalid';

or

===> Select count(*) from dba_objects where status = 'Invalid' ( query to find
Invalid objects count)
NOTE:: Before every DB Activity u need to check this Invalid count & After every
DB Activity u need to check this Invalid
=======

Object count. if Both are same its OK , Else Compile APPS Schema Using AdaDmin 2-
2 option or Utlrp.sql.

Note: Patching,cloning are Db Activitiees because they affect DB.

--> Adadmin log files are stored in $APPL_top/admin/<sid>/Log/<file_name>.log

--> CONTEXT EDITOR---->(it is a utility) it uses <context_name>.xml file


================== =

--> Startup nomount ( used when we are creating a new database & When we are
creating & Recreating the

control files. In These scenarious we start a DB in NoMount Stage.

You might also like