R12/11i APPS Command



                             OS Level Command

[root@sonu ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

[root@sonu ~]# cat /proc/version
Linux version 2.6.18-164.el5 (mockbuild@x86-002.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:54 EDT 2009

[root@sonu ~]# getconf LONG_BIT
32

[root@sonu ~]# uname -a
Linux sonu.oracle.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux

sysdba SQL command:-(11g database)

[oracle@r0469 ~]$ cd /oracle/VIS/db/tech_st/11.1.0/
[oracle@r0469 11.1.0]$ . VIS_r0469.env
[oracle@r0469 11.1.0]$ sqlplus

SQL*Plus: Release 11.1.0.7.0 - Production on Wed Sep 19 11:35:19 2012

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

Enter user-name: sys as sysdba
Enter password: sys

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
CORE    11.1.0.7.0      Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production

SQL> select
INST_ID,
INSTANCE_NUMBER ,
INSTANCE_NAME ,
HOST_NAME ,
VERSION ,
STATUS ,
PARALLEL ,
THREAD#
from gv$instance ; 

INST_ID INSTANCE_NUMBER INSTANCE_NAME HOST_NAME  VERSION   STATUS PAR    THREAD#
1        1                VIS   r0469.oracle.com 11.1.0.7.0 OPEN  NO        1


SQL> select version from orasso.wwc_version$;

VERSION
--------------------------------------------------------------------------------
10.1.2.0.2

APPS User SQL COMMAND:-(R12.1.1)

[oracle@ebs602 scripts]$ sqlplus

SQL*Plus: Release 10.1.0.5.0 - Production on Sun Apr 19 11:27:04 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Enter user-name: apps
Enter password: apps

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select release_name from apps.fnd_product_groups;

RELEASE_NAME
--------------------------------------------------
12.1.1

PROMPT MAJOR TABLE LIST

select owner, table_name, num_rows, LAST_ANALYZED
From dba_tables
where table_name in (
'AP_INVOICES_ALL', 'AP_INVOICE_DISTRIBUTIONS_ALL', 'AR_PAYMENT_SCHEDULES_ALL',
'RA_CUSTOMER_TRX_ALL', 'RA_CUSTOMER_TRX_LINES_ALL' ,
'HZ_PARTIES', 'HZ_CUST_ACCOUNTS',
'AS_SALES_LEADS', 'AS_ACCESSES_ALL_ALL',
'BOM_STRUCTURES_B', 'BOM_COMPONENTS_B',
'CS_INCIDENTS_ALL_B',
'FA_ADJUSTMENTS', 'FA_DEPRN_DETAIL', 'FA_DEPRN_SUMMARY',
'FND_USERS',
'GL_JE_HEADERS', 'GL_JE_LINES',
'MRP_GROSS_REQUIREMENTS', 'MRP_RECOMMENDATIONS', 'MRP_FULL_PEGGING',
'MRP_BOM_COMPONENTS', 'MTL_MATERIAL_TRANSACTIONS',
'MTL_TRANSACTION_ACCOUNTS', 'MTL_SYSTEM_ITEMS_B',
'HR_ORGANIZATION_INFORMATION', 'HR_OPERATING_UNITS',
'MTL_PARAMETERS',
'OE_ORDER_HEADERS_ALL', 'OE_ORDER_LINES_ALL',
'PO_HEADERS_ALL', 'PO_LINES_ALL', 'PO_VENDORS',
'WF_ITEM_ACTIVITY_STATUSES', 'WF_ITEM_ATRIBUTE_VALUES',
'WF_NOTIFICATIONS', 'WF_NOTIFICATION_ATTRIBUTES' ,
'WSH_DELIVERY_DETAILS' , 'WSH_DELIVERY_ASSIGNMENTS',
'WSH_NEW_DELIVERIES', 'WSH_DELIVERY_LEGS',
'WSH_TRIP_STOPS', 'WSH_TRIPS' )
order by table_name ;

PROMPT number of daily concurrent requests.

SQL> SELECT trunc(REQUESTED_START_DATE), count(*)
FROM FND_CONCURRENT_REQUESTS
WHERE REQUESTED_START_DATE BETWEEN sysdate-30 AND sysdate
group by rollup(trunc(REQUESTED_START_DATE)) ;

PROMPT Applications versions and family pack versions.

COL APPLICATION_NAME FORMAT A60
COL SHT_NAME FORMAT A10
col PATCH_LEVEL FORMAT A20
SELECT A.APPLICATION_SHORT_NAME SHT_NAME,T.APPLICATION_NAME, I.STATUS,
NVL(I.PATCH_LEVEL, 'n/a') PATCH_LEVEL, I.DB_STATUS
FROM FND_PRODUCT_INSTALLATIONS I,
FND_APPLICATION A,
FND_APPLICATION_TL T
WHERE A.APPLICATION_ID = I.APPLICATION_ID
AND A.APPLICATION_ID = T.APPLICATION_ID
AND T.LANGUAGE = USERENV('LANG')
ORDER BY 1 ;

PROMPT Multi-org being used.
SQL> select MULTI_ORG_FLAG org, MULTI_LINGUAL_FLAG lingual, MULTI_CURRENCY_FLAG currency
from FND_PRODUCT_GROUPS ;   2 
 O L C
- - -
Y   Y

PROMPT DB size with Tablespace

set head on
set pagesize 30
select NVL(tablespace_name,'** Total **') "Tablespace Name",
sum("allocated") "Allocated(M)",
sum("used") "Used(M)",
sum("free") "Free(M)",
sum(df_cnt) "#(File)"
from
(
select a.tablespace_name, trunc(b.assigned/1048576) "allocated",
trunc((b.assigned-a.free)/1048576) "used",
trunc(a.free/1048576) "free",
df_cnt
from
(
select tablespace_name, sum(bytes) free
from dba_free_space
group by tablespace_name ) a,
(
select tablespace_name, sum(bytes) assigned, count(*) df_cnt
from dba_data_files
group by tablespace_name ) b
where a.tablespace_name = b.tablespace_name
UNION ALL
SELECT tablespace_name||'[TMP]', trunc(sum(bytes)/1048576), null, null, count(*) df_cnt
from dba_temp_files
group by tablespace_name
)
group by rollup(tablespace_name) ;

Switch SQL promt to command promt:-
SQL> !
[oracle@ebs602 scripts]$

SQL> exit
[oracle@ebs602 scripts]$

Startup Applications (R12.1.1)

1. Start Database first:-
[oracle@r0469 scripts]$ cd /oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_r0469/
[oracle@r0469 VIS_r0469]$ ./addbctl.sh start

Connected to an idle instance.
ORACLE instance started.
Total System Global Area 1071333376 bytes
Fixed Size                  1318172 bytes
Variable Size             427819748 bytes
Database Buffers          629145600 bytes
Redo Buffers               13049856 bytes
Database mounted.
Database opened.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 addbctl.sh: exiting with status 0

2. Start Listener:-
[oracle@r0469 scripts]$ cd /oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_r0469/
[oracle@r0469 VIS_r0469]$ ./addlnctl.sh start VIS
Starting listener process VIS ...

 addlnctl.sh: exiting with status 0

3. Start Applications:-
[oracle@r0469 ~]$ cd /oracle/VIS/apps/apps_st/appl/
[oracle@r0469 appl]$ . APPSVIS_r0469.env
[oracle@r0469 appl]$ cd $ADMIN_SCRIPTS_HOME
[oracle@r0469 scripts]$ ./adstrtal.sh apps/apps

All enabled services for this node are started.
adstrtal.sh: Exiting with status 0
adstrtal.sh: check the logfile /oracle/VIS/inst/apps/VIS_r0469/logs/appl/admin/log/adstrtal.log for more information ...

NOTE:- Open web page enter <IP Address:port pool>
URL :- 192.16.1.354:8000
open Application Login page...

Down Applications (R12.1.1)

1. Down Application Tier:-
[oracle@r0469 ~]$ cd /oracle/VIS/apps/apps_st/appl/
[oracle@r0469 appl]$ . APPSVIS_r0469.env
[oracle@r0469 appl]$ cd $ADMIN_SCRIPTS_HOME
[oracle@r0469 scripts]$ ./adstpall.sh apps/apps
All enabled services on this node are stopped.
 adstpall.sh:Exiting with status 0

adstpall.sh: check the logfile /oracle/VIS/inst/apps/VIS_r0469/logs/appl/admin/log/adstpall.log for more information ... 

 2. Down Listener:-
[oracle@r0469 scripts]$ cd /oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_r0469/
[oracle@r0469 VIS_r0469]$ ./addlnctl.sh stop VIS

You are running addlnctl.sh version 120.1.12010000.2

Logfile: /oracle/VIS/db/tech_st/11.1.0/appsutil/log/VIS_r0469/addlnctl.txt

Shutting down listener process VIS ...
addlnctl.sh: exiting with status 0

3. Down database Tier:-

[oracle@r0469 scripts]$ cd /oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_r0469/
[oracle@r0469 VIS_r0469]$ ./addbctl.sh stop immediate
Connected.
Database closed.
Database dismounted.
ORACLE instance shut down.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 addbctl.sh: exiting with status 0

***********************************END*****************************
       How to check Database & Application UP & Running:-

Check how many Database UP & Down:-
[oracle@r0469 ~]$ ps -ef | grep pmon
oracle   22862     1  0 12:19 ?        00:00:00 ora_pmon_VIS
oracle   24395 20422  0 12:27 pts/0    00:00:00 grep pmon

Hear only one database UP (VIS)

Check Listener UP  & Down:-
[oracle@r0469 ~]$ ps -ef | grep tns
oracle   22952     1  0 12:21 ?        00:00:00 /oracle/VIS/db/tech_st/11.1.0/bin/tnslsnr VIS -inherit
oracle   23123     1  0 12:22 ?        00:00:00 /oracle/VIS/apps/tech_st/10.1.2/bin/tnslsnr APPS_VIS -inherit
oracle   24399 20422  0 12:27 pts/0    00:00:00 grep tns
 Hear Listener Up & Running

Check Application UP & Down:-
[oracle@r0469 ~]$ ps -ef | grep FNDLIBR
oracle   23557 23524  0 12:23 pts/0    00:00:00 FNDLIBR                                                                                                                                     
oracle   23851 23730  0 12:24 ?        00:00:00 FNDLIBR                                                                                                                                                                                                                                       
oracle   23854 23730  0 12:24 ?        00:00:00 FNDLIBR                                                                                                                                                                                                                                       
oracle   23855 23730  0 12:24 ?        00:00:00 FNDLIBR                                                                                                                                                                                                                                       
oracle   23860 23730  0 12:24 ?        00:00:00 FNDLIBR                                                                                                                                                                                                                                        
oracle   24404 20422  0 12:28 pts/0    00:00:00 grep FNDLIBR

[oracle@r0469 ~]$ ps -ef | grep FNDLIBR |wc -l
6

Hear Application Up & Running....


count concurrent_users in Oracle apps:-

SQL> select count(distinct d.user_name) from apps.fnd_logins a,
v$session b, v$process c, apps.fnd_user d
where b.paddr = c.addr
and a.pid=c.pid
and a.spid = b.process
and d.user_id = a.user_id
and (d.user_name = 'USER_NAME' OR 1=1);

 COUNT(DISTINCTD.USER_NAME)
--------------------------
                         3
This will give the number of users on the system in the past 1 hour:-
SQL> select count(distinct user_id) "users" from icx_sessions where  last_connect > sysdate - 1/24 and user_id != '-1';
  users
----------
         4
This will give the number of users on the system in the past 1 day:-
SQL> select count(distinct user_id) "users" from icx_sessions where  last_connect > sysdate - 1 and user_id != '-1';
   users
----------
        12
This will show the activity in the last 15 minutes:-
SQL> select limit_time, limit_connects, to_char(last_connect, 'DD-MON-RR HH:MI:SS') "Last Connection time", user_id, disabled_flag from icx_sessions where  last_connect > sysdate - 1/96;

 LIMIT_TIME LIMIT_CONNECTS Last Connection time           USER_ID D
---------- -------------- --------------------------- ---------- -
       999           9000 19-SEP-12 02:25:37             1013630               N
       999           9000 19-SEP-12 02:12:50             1013691               Y
       999           9000 19-SEP-12 02:12:58                   6                     N
       999           9000 19-SEP-12 02:25:23             1013555               N

Total size of Database:-
SQL> SELECT ROUND(SUM(bytes/1024/1024/1024)) FROM dba_data_files;


ROUND(SUM(BYTES/1024/1024/1024))
--------------------------------
                             184

Free size of database:-
SQL> SELECT /*+ FIRST_ROWS*/ROUND(SUM(bytes/1024/1024/1024)) FROM dba_free_space;

 ROUND(SUM(BYTES/1024/1024/1024))
--------------------------------
                              38

All Invalid objects in database:-
SQL> SELECT COUNT(*) FROM all_objects WHERE Status = 'INVALID';

 COUNT(*)
----------
       641

Total Blocking Session:-
SQL> SELECT count(*) FROM v$lock WHERE BLOCK='1';

 COUNT(*)
----------
         0

Total Locked objects:-
SQL> SELECT COUNT(*) FROM v$locked_object;

 COUNT(*)
----------
         1
Total no of session :-
 SQL> SELECT count(*) FROM v$session;
COUNT(*)
----------
       105
Total no of concurrent Process:-
SQL> SELECT COUNT(*) FROM apps.fnd_concurrent_processes;
 COUNT(*)
----------
       672

Total no of concurrent request:-
SQL> SELECT COUNT(*) FROM apps.fnd_concurrent_requests;
COUNT(*)
----------
     21681

Running Concurrent Requests and scheduled Concurrent Requests:-
SQL> SELECT phase_code,COUNT(*) FROM apps.fnd_concurrent_requests WHERE phase_code IN('P','R') GROUP BY phase_code ORDER BY 1 DESC;
P   COUNT(*)
- ----------
P          4

Last day total no. of concurrent requests:-
SQL> SELECT sysdate -1 , count(*) FROM apps.fnd_concurrent_requests WHERE to_char(actual_completion_date,'YYYYMMDD') =(SELECT to_char(sysdate -1,'YYYYMMDD') FROM dual);

SYSDATE-1            COUNT(*)
------------------ ----------
18-SEP-12                 218

Database Size:-
SQL> select tablespace_name,sum(bytes/1024/1024) from dba_data_files group by tablespace_name order by 1;

TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
APPS_CALCLIP                                   4770
APPS_OMO                                       1150
APPS_TS_ARCHIVE                                1101
APPS_TS_DISCO                                   856
APPS_TS_DISCO_OLAP                             1350
APPS_TS_INTERFACE                              2404
APPS_TS_MEDIA                               5211.25
APPS_TS_NOLOGGING                               575
APPS_TS_QUEUES                                 4299
APPS_TS_SEED                                   3803
APPS_TS_SUMMARY                               22369


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
APPS_TS_TX_DATA                            62692.25
APPS_TS_TX_IDX                                32471
B2B_DT                                           68
B2B_IDX                                          16
B2B_LOB                                          12
B2B_RT                                           42
BAM                                               8
BIA_RTL                                        1000
CTXSYS                                           79
CUST                                             20
CWMLITE                                          23


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
DATA                                           7200
DCM                                             198
DEMANTRA                                       5400
DISCO_PTM5_CACHE                                108
DISCO_PTM5_META                                   3
DSGATEWAY_TAB                                     7
DW_AGGREGATE_IDX                                100
DW_AGGREGATE_TBS                                100
DW_BASE_IDX                                     100
DW_BASE_TBS                                     100
DW_DERIVED_IDX                                  100


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
DW_DERIVED_TBS                                  100
DW_DM_TBS                                       100
DW_LOOKUP_TBS                                   100
DW_MVLOG_TBS                                    100
DW_REFERENCE_IDX                                100
DW_REFERENCE_TBS                           133.9375
GEOR_TBS                                       2136
HTMLDB                                          287
IAS_META                                        221
MTR                                               4
OCATS                                             3


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
ODM_DATA                                         40
OLAP_BAAD                                      1500
OLTS_ATTRSTORE                                   15
OLTS_BATTRSTORE                                  15
OLTS_CT_STORE                                     8
OLTS_DEFAULT                                      3
OLTS_SVRMGSTORE                                   3
OPMOR                                             6
ORABPEL                                          12
OWAPUB                                           10
PERFSTAT_TS                                     500


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
RBS_MIG                                          43
RE                                                8
SYNCSERVER                                       54
SYSAUX                                         1327
SYSTEM                                        19297
TS_DP                                            50
TS_SALES_DATA                                    50
TS_SALES_DATA_ENGINE                             50
TS_SALES_DATA_ENGINE_X                           50
TS_SALES_DATA_X                                  50
TS_SIM                                           50


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
TS_SIM_X                                         50
UDDISYS_TS                                       21
UNDO_TBS                                 3686.40625
USERS                                            10
WCRSYS_TS                                         3
XDB                                              61


72 rows selected.

 Database free Size:-
SQL> select tablespace_name,sum(bytes/1024/1024) from dba_free_space group by tablespace_name order by 1;

TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
APPS_CALCLIP                                1543.75
APPS_OMO                                    511.875
APPS_TS_ARCHIVE                             197.375
APPS_TS_DISCO                                86.125
APPS_TS_DISCO_OLAP                         1333.875
APPS_TS_INTERFACE                           220.125
APPS_TS_MEDIA                                495.75
APPS_TS_NOLOGGING                            285.25
APPS_TS_QUEUES                                  610
APPS_TS_SEED                                 420.75
APPS_TS_SUMMARY                             2208.75


TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
APPS_TS_TX_DATA                                6836
APPS_TS_TX_IDX                             3728.875
B2B_DT                                        7.125
B2B_IDX                                      1.6875
B2B_LOB                                      1.3125
B2B_RT                                            4
BAM                                          1.6875
BIA_RTL                                    999.9375
CTXSYS                                         29.5
CUST                                             19
CWMLITE                                        1.75

TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
DATA                                      7199.6875
DCM                                           19.75
DEMANTRA                                    5399.75
DISCO_PTM5_CACHE                               10.5
DISCO_PTM5_META                              1.0625
DSGATEWAY_TAB                                   1.5
DW_AGGREGATE_IDX                            99.9375
DW_AGGREGATE_TBS                            99.9375
DW_BASE_IDX                                 99.9375
DW_BASE_TBS                                 99.9375
DW_DERIVED_IDX                              99.9375

TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
DW_DERIVED_TBS                              99.9375
DW_DM_TBS                                   99.9375
DW_LOOKUP_TBS                               99.9375
DW_MVLOG_TBS                                99.9375
DW_REFERENCE_IDX                            99.9375
DW_REFERENCE_TBS                            133.875
GEOR_TBS                                     214.25
HTMLDB                                       28.625
IAS_META                                     21.875
MTR                                          2.3125
OCATS                                          1.25
 
TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
ODM_DATA                                     9.5625
OLAP_BAAD                                 1499.8125
OLTS_ATTRSTORE                              14.6875
OLTS_BATTRSTORE                             14.6875
OLTS_CT_STORE                                 .8125
OLTS_DEFAULT                                 1.4375
OLTS_SVRMGSTORE                               .8125
OPMOR                                         1.375
ORABPEL                                          .5
OWAPUB                                       9.9375
PERFSTAT_TS                                  347.25

TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
RBS_MIG                                      3.9375
RE                                           1.4375
SYNCSERVER                                5.2265625
SYSAUX                                        80.25
SYSTEM                                   1862.41406
TS_DP                                       49.9375
TS_SALES_DATA                               49.9375
TS_SALES_DATA_ENGINE                        49.9375
TS_SALES_DATA_ENGINE_X                      49.9375
TS_SALES_DATA_X                             49.9375
TS_SIM                                      49.9375

 TABLESPACE_NAME                SUM(BYTES/1024/1024)
------------------------------ --------------------
TS_SIM_X                                    49.9375
UDDISYS_TS                                    1.875
UNDO_TBS                                    1176.25
USERS                                        1.9375
WCRSYS_TS                                    1.3125
XDB                                          6.1875

72 rows selected.

                              O/S level observation

1.Average Cpu Utilization (Percentage):-

[oracle@r0469 ~]$ top
top - 14:54:01 up 19 days,  2:40,  2 users,  load average: 0.13, 0.09, 0.09
Tasks: 277 total,   1 running, 275 sleeping,   1 stopped,   0 zombie
Cpu(s):  9.6%us,  1.5%sy,  0.0%ni, 88.2%id,  0.5%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   4081424k total,  3907568k used,   173856k free,    39372k buffers
Swap:  8193140k total,    33848k used,  8159292k free,  2351040k cached


  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                       
24483 oracle    15   0  111m  66m  16m S 15.3  1.7   2:03.81 frmweb                                         
23176 oracle    16   0 45524 7720 4920 S  3.3  0.2   0:30.07 httpd                                         
24487 oracle    15   0 1194m 488m 476m S  1.7 12.3   1:18.22 oracle                                        
26519 oracle    15   0  2360 1164  800 R  0.7  0.0   0:00.27 top                                           
23850 oracle    17   0 1159m  90m  86m S  0.3  2.3   0:02.34 oracle                                        
24080 oracle    17   0 1158m  54m  51m S  0.3  1.4   0:01.02 oracle   

2. No of apps form process on os level:-
[oracle@r0469 ~]$ ps -ef | grep f60webmx
oracle   26535 26486  0 14:54 pts/0    00:00:00 grep f60webmx

[oracle@r0469 ~]$ ps -ef | grep frmweb
oracle   24483 23292  1 12:30 ?        00:02:05 /oracle/VIS/apps/tech_st/10.1.2/bin/frmweb server webfile=HTTP-0,0,1,default,172.16.3.4
oracle   26371 23292  0 14:43 ?        00:00:04 /oracle/VIS/apps/tech_st/10.1.2/bin/frmweb server webfile=HTTP-0,0,1,default,172.16.3.19
oracle   26537 26486  0 14:54 pts/0    00:00:00 grep frmweb

3. Size of Archive-logs (in GB):-
 du -sh /apps/archive

 4. Alert log Checking:-
 vi alert log file and check last one hour error.

5. Total size and free size on apps mount point (All Servers):-
 [oracle@r0469 ~]$ df -h
Filesystem            Size      Used     Avail   Use%     Mounted on
/dev/sda5             434G     358G     54G       87%        /
/dev/sda2             9.5G     151M     8.9G       2%          /tmp
/dev/sda1             965M   23M       893M     3%         /boot
tmpfs                   2.0G     3.0M      2.0G       1%         /dev/shm



How to Find version in Oracle Apps

How to find Apps Version (11i/R12/12i)

Connect to database as user apps

 SQL> select release_name from apps.fnd_product_groups;
Output like 12.0.4 or 11.5.10.2
Web Server/Apache or Application Server in Apps 11i/R12 >> Log in as Application user, set environment variable and run below query $IAS_ORACLE_HOME/Apache/Apache/bin/httpd -version
Output for 11i should be like
Server version: Oracle HTTP Server Powered by Apache/1.3.19 (Unix)
Server built: Jan 26 2005 11:06:44 (iAS 1.0.2.2.2 rollup 5)
Output for R12 should be like
Server version: Oracle-Application-Server-10g/10.1.3.0.0Oracle-HTTP-Server
Server built: Dec 4 2006 14:44:38
Forms & Report version (aka developer 6i) in 11i >> Log in as Application user, set environment variable and run below query
$ORACLE_HOME/bin/f60run | grep Version | grep Forms
output like
Forms 6.0 (Forms Runtime) Version 6.0.8.25.2 (Production)
Check fourth character in version 25 which means Forms 6i patchset 16 (25-9)

Forms & Report version in R12/12i >> Log in as Application user, set environment variable and run below query
$ORACLE_HOME/bin/rwrun | grep Release
Output should be like
Report Builder: Release 10.1.2.2.0
You can safely ignore warnings
Mostly the above one wont work Please try below
[as1.dev.nec.com]/app/oracle/DEV/apps/tech_st/10.1.2/bin#$ORACLE_HOME/bin/rwrun | grep Release
REP-0503: You did not specify the name of a report.

Report Builder: Release 10.1.2.0.2 – Production on Wed May 19 11:01:17 2010
you have mail in /usr/spool/mail/asdev
[as1.dev.nec.com]/app/oracle/DEV/apps/tech_st/10.1.2/bin#
Oracle Jinitiator in 11i/R12/12i >>
Log in as Application user, set environment variable and run below query
grep jinit_ver_comma $CONTEXT_FILE
(Default is Java Plug-In for R12/12i )
Oracle Java Plug-in in 11i/R12/12i >>
Log in as Application user, set environment variable and run below query
grep plugin $CONTEXT_FILE
File Version on file system >>
adident Header
or
strings | grep Header
Here adident is AD Utility (Oracle Apps) and strings is Unix utility
Version of pld file >>
*.pld are source code of *.pll which are inturn source of *.plx. *.pll is in $AU_TOP/resource and to find its version check
adident Header $AU_TOP/resource/.pll
IGSAU012.pll:
$Header IGSAU012.pld 115.1.115100.1 2004/04/01 05:40:18 appldev ship $
or
strings $AU_TOP/resource/.pll | grep -i header
FDRCSID(’$Header: IGSAU012.pld 115.1.115100.1 2004/04/01 05:40:18 appldev ship $’);
OA Framework Version >> http:// hostname.domainName:port/OA_HTML/OAInfo.jsp (Only for 11i); Log in as Application user, set environment variable and run below query
adident Header $FND_TOP/html/OA.jsp
adident Header $OA_HTML/OA.jsp
output for both should look like
$Header OA.jsp 115.60 2006/03/31 00:47:28 atgops1 noship $
120.21 means OA Framework Version (coming soon..)
115.60 means OA Framework Version (coming soon..)
115.56 means OA Framework Version (coming soon..)
115.36 means OA Framework Version 5.7
115.27 means OA Framework Version 5.6E
115.26 means OA Framework Version 5.5.2E
Discoverer Version for 11i (3i or 4i)

 Log in as Application user, set environment variable and run below query
$ORACLE_HOME/bin/disc4ws | grep -i Version
Discoverer Version for 11i or R12 (10g AS) >> Check under Application Server Section as 10g AS Discoverer is on standalone
Workflow Version with Apps >> Connect to Database as apps user
SQL> select TEXT Version from WF_RESOURCES where NAME = ‘WF_VERSION’;
Output like 2.6.0 means workflow version 2.6.0
Oracle Single Sign On >>
Connect to database which holds SSO repository
SQL>select version from orasso.wwc_version$;
Oracle Internet Directory >>
There are two component in OID (Software/binaries & Schema/database)

To find software/binary version
$ORACLE_HOME/bin/oidldapd -version
output should look like
oidldapd: Release 10.1.4.0.1 – Production on thu sep 11 11:08:12 2008
Copyright (c) 1982, 2006 Oracle. All rights reserved.

To find Schema Version/ database use
ldapsearch -h -p -D “cn=orcladmin” -w “” -b “” \
-s base “objectclass=*” orcldirectoryversion
and output should be like
version: 1
dn:
orcldirectoryversion: OID 10.1.4.0.1
or run following query in database
SQL> select attrval from ods.ds_attrstore where entryid = 1 and attrname = ‘orcldirectoryversion’;
Output should be like OID 10.1.4.0.1
Application Server >> Oracle Application Server (Prior to Oracle WebLogic Server)
If application server is registered in database (Portal, Discoverer) check from database
SQL> select * from ias_versions;
or
SQL>select * from INTERNET_APPSERVER_REGISTRY.SCHEMA_VERSIONS;
AOC4J (Oracle Container for J2EE)
Set ORACLE_HOME
cd $ORACLE_HOME/j2ee/home
java -jar oc4j.jar -version

Oracle Portal
SQL> select version from portal.wwc_version$;
Database Component
I) Oracle Database
To find database version
SQL> select * from v$version;
or
All component version in database
$ORACLE_HOME/OPatch/opatch lsinventory -detail
Oracle Enterprise Manager >>
Metalink Note 605398.1 How to to find the version of the main EM components
Unix Operating System
Solaris -> cat /etc/release
Red Hat Linux -> cat /etc/redhat-release

 **********************************END**************************************

How to reset Oracle Apps frontend User ID Password

Oracle Apps front-end User ID Password

DECLARE flag_value BOOLEAN; BEGIN flag_value := fnd_user_pkg.changepassword(username=> ‘sujeet‘ ,newpassword => ‘jha‘); IF flag_value THEN DBMS_OUTPUT.PUT_LINE(‘The password reset successfully’); ELSE DBMS_OUTPUT.PUT_LINE(‘The password reset has failed’); END IF; END; / COMMIT;

11i/R12 Common Topics

Topic is quite important and I recommend you to go through this thoroughly.
How to find version of Oracle Components
APPS Patching
Change APPS Password
Context/XML or Autoconfig File
Autoconfig
Cloning Internals
Logs in $APPLCSF
Diff APPS 11i/R12
Start/Stop Apps 11i
Advaned Start/Stop Apps 12
Patching Basics
Cloning
Step by Step Apps Cloning
Hot backup Cloning


First Let’s discuss terminology which you will encounter here & in most of Oracle Documentation.
Server – is a process or group of processes and provides a particular functionality/service For example, Database Server listen and process database requests, similarly Web Server listens for and processes HTTP requests.
Tier – is a logical grouping of services, may be on single machine or spread across more than one physical machine. For Example, Middle Tier in Oracle apps consist Form,Web,Report…Services. Forms & Report can be one machine 1 & Web Server can be on machine 2, still they will be part of same tier called as Application Tier or Middle Tier.
Node – is referred as Machine, Each tier may consist of one or more node and each node can potentially have more than one tier.
Desktop Tier – Oracle Applications/E-Business Suite is built on three tier Architecture with first Desktop Tier ic client machines accessing applications via browser(HTML based Self service applications) or Java Applet(Jinitiator) for Form based interface.
Application/Middle Tier – Second is Application Tier also called as middle tier consists of WebServer Forms, Reports, Concurrent processing, Discoverer and Admin Server. I suppose its known as Middle tier because it lies between our desktop & third tier called database tier.
Database Tier – Third is Database Tier contain Orale database server which store all your application data. I am sure if you are DBA you know it.



Difference between Application R12 and 11i

Applications R12 and 11i , I decided to dedicate this post to outline few major technical difference.

Database:
Database Version in 11i (11.5.9 & 11.5.10) was 9i Rel 2 where as in Release 12 its 10g R2 (10.2.0.2)

Application Tier:
Tech Stack in Application Tier consist of iAS(1.0.2.2.2) & Developer 6i (Forms & Reports 8.0.6) but in Applications R12 it is build on Fusion Middleware (10g Web Server and 10g Forms & Reports)

Sub component in Application Tier
A) HTTP Server or Web Server in R12 is Version 10.1.3 which is built on Apache version 1.3.34. In apps 11i it is Version 1.0.2.2.2 built on Apache Version 1.3.19
B) Jserv in apps 11i is replaced by OC4J (mod_jserv is replaced by mod_oc4j)
C) Forms Version 6i in Apps 11i is replaced by Forms 10.1.2.0.2 in R12
D) Reports Version 6i in Apps 11i is replaced by Reports 10.1.2.0.2 in R12
E) JDBC version is changed from version 9 in apps 11i to version 10.2.0 in Apps R12
F) modplsql or mod_pls is removed from Apps R12 (What will happen to my mod plsql applications- coming soon* )
G) Java processes use JDK/JRE version 1.5.0 in R12 against JDK version 1.3.1 or 1.4.2 in Apps 11i
H) For various environment variable changes check below picture




I) New top INSTANCE_TOP added in Release 12 for configuration and log files.



How To check inactive form sessions

select distinct b.sid,b.serial# ,b.status,b.program,b.username,b.action,b.module,
to_char( b.logon_time, ‘dd-MON-yyyy hh24:mi:ss’ ) logon_time,
trunc( sysdate-b.logon_time ) “Dy”,
trunc( mod( (sysdate-b.logon_time)*24, 24 ) ) “Hr”,
trunc( mod( (sysdate-b.logon_time)*24*60, 60 ) ) “Mi”,
trunc( mod( (sysdate-b.logon_time)*24*60*60, 60 ) ) “Sec”
from gV$access a,gv$session b, gv$process c
where a.sid=b.sid
and b.paddr=c.addr
and b.status=’INACTIVE’
and (b.action like ‘%FRM%’ or b.action like ‘%frm%’ or b.program like ‘%TOAD%’ or b.program like ‘%toad%’ or b.program like
‘SQL%’ or b.program like ‘%sql%’ or b.program like ‘%FRM%’
or b.program like ‘%frm%’ or b.action like ‘SQL%’ or b.action like ‘sql%’ or b.action like ‘TOAD%’ or b.action like ‘toad%’)
and (trunc( mod( (sysdate-b.logon_time)*24,24)) >=12 or trunc( sysdate-b.logon_time )>=1);

***************************************END****************************************

ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%'

 This MySQL error — ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%' — means that MySQL cannot find the user ...