Monday 29 February 2016

APP-SQLAP-10771: could not reserve record

http://dbissues.blogspot.com/2016/02/app-sqlap-10771-could-not-reserve-record.html

R12: Unable to update an Invoice in Invoice Entry form (APXINWKB): APP-SQLAP-10771: could not reserve record.

ERROR


APP-SQLAP-10771: Could not reserve record

Got this error when trying to pay Full Invoice. This error comes normally due to database lock from another sessions on AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_INVOICE_DISTRIBUTIONS_ALL tables.

SOLUTION 


Step 1. First determine what session has lock this record, please execute the following steps:

a) Run the following to query to determine which tables are locked:

SELECT a.object_id, a.session_id, substr(b.object_name, 1, 40) FROM v$locked_object a, dba_objects b WHERE a.object_id = b.object_id AND b.object_name like ‘AP_%’ ORDER BY b.object_name;

b) Look at the results and run the below given Query by inserting that is returned from above script :

SELECT l.*, o.owner object_owner, o.object_name FROM SYS.all_objects o, v$lock l WHERE l.TYPE = ‘TM’ AND o.object_id = l.id1 AND o.object_name in (‘AP_INVOICES_ALL’, ‘AP_INVOICE_LINES_ALL’, ‘AP_INVOICE_DISTRIBUTIONS_ALL’);

c) Now, run the below given query and enter the SID returned by above query.

SELECT SID, SERIAL# FROM v$session WHERE SID = <SID from Above Query)>;

Step 2. As the locking sessions have been identified, please use the below command to kill sessions.

ALTER SYSTEM KILL SESSION ‘sid,serial#’ IMMEDIATE;

SID and serial# to be taken from the output of 1C.

-----END----

#################################################################################

Objects Locked in Module

SELECT a.object_id, a.session_id, substr(b.object_name, 1, 40)
  FROM v$locked_object a, dba_objects b
 WHERE a.object_id = b.object_id
   AND b.object_name like 'AP_%'
 ORDER BY b.object_name;

Table wise Objects Locked

SELECT l.*, o.owner object_owner, o.object_name
  FROM SYS.all_objects o, v$lock l
 WHERE l.TYPE = 'TM'
   AND o.object_id = l.id1
   AND o.object_name in ('AP_INVOICES_ALL', 'AP_INVOICE_DISTRIBUTIONS_ALL');

SELECT SID, SERIAL# FROM v$session WHERE SID in (306, 312);

ALTER SYSTEM KILL SESSION '312,322' IMMEDIATE;

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

Object Locked in User

 select
 a.object_id, a.session_id, substr(c.object_name, 1, 40), b.CLIENT_IDENTIFIER
from
   v$locked_object a ,
   v$session b,
   dba_objects c
where
   b.sid = a.session_id
and
   a.object_id = c.object_id;

All in One Query



select
 o.owner,l.SID, b.SERIAL#,a.object_id, a.session_id, substr(c.object_name, 1, 40), b.CLIENT_IDENTIFIER, b.LOGON_TIME
from
   v$locked_object a ,
   v$session b,
   dba_objects c,
   SYS.all_objects o,
   v$lock l
where
   b.sid = a.session_id
and
   a.object_id = c.object_id
   AND o.object_id = l.id1
   and o.object_id=a.OBJECT_ID
   and o.object_id=c.object_id
   and l.ID1=a.OBJECT_ID
   and l.ID1=c.object_id
   and l.TYPE = 'TM'
   and b.SID=l.SID
      order by b.LOGON_TIME asc ;

Friday 26 February 2016

Warning in Excel Output (oracle.apps.fnd.cp.opp.PostProcessorException: oracle.apps.fnd.cp.opp.PostProcessorException: oracle.apps.xdo.XDOException: /apps/prod/PROD/tmp/xdovmRgkvDo0V022716_0035437060.fo (No such file or directory))

http://dbissues.blogspot.com/2016/02/warning-in-excel-output.html

+---------------------------------------------------------------------------+
Payables: Version : 12.2

Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.

TAXDETAILXL:  TAX XL NEW
+---------------------------------------------------------------------------+

Current system time is 27-FEB-2016 00:34:24

+---------------------------------------------------------------------------+


+-----------------------------
| Starting concurrent program execution...
+-----------------------------

Arguments
------------
P_DATE1='2015/01/01 00:00:00'
P_DATE2='2015/01/31 00:00:00'
P_ORG_ID='189'
------------

Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing

 APPLLCSP Environment Variable set to :

 Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8

'.,'

Enter Password:
REP-0004: Warning: Unable to open user preference file.

Report Builder: Release 10.1.2.3.0 - Production on Sat Feb 27 00:34:41 2016

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


+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+


+---------------------------------------------------------------------------+
Executing request completion options...

Output file size:
57447139

+--------- 1) POST-PROCESSING  ---------+
Beginning post-processing of request 1484068 on node CO at 27-FEB-2016 00:35:12.
-- Publishing output


Post-processing of request 1484068 failed at 27-FEB-2016 00:35:43 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.

CONC-POST-PROCESSING RESULTS

-- PUBLISH:
oracle.apps.fnd.cp.opp.PostProcessorException: oracle.apps.fnd.cp.opp.PostProcessorException: oracle.apps.xdo.XDOException: /apps/prod/PROD/tmp/xdovmRgkvDo0V022716_0035437060.fo (No such file or directory)
+---------------------------------------+


Finished executing request completion options.

+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 27-FEB-2016 00:35:44

+---------------------------------------------------------------------------+

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

Solution:

Navigate to Xml publisher Administrator and add the path in 

Temporary directory: /u01/oracle/PROD/apps/tmp

Thursday 25 February 2016

How to Compile JSP Pages in EBS Enviroment

http://dbissues.blogspot.com/2016/02/how-to-compile-jsp-pages-in-ebs.html

Run apps environment

Navigate to Below Location

cd $FND_TOP/patch/115/bin

Run the Below Command

perl ojspcompile.pl --compile --flush -p

Recommended Browsers & Deploying JRE (Native Plug-in) for Windows Clients

http://dbissues.blogspot.com/2016/02/recommended-browsers-deploying-jre.html

Recommended Browsers for Oracle E-Business Suite Release 12 (Doc ID 389422.1)

How to verify Java plugins on Application R12.2

http://dbissues.blogspot.com/2016/02/how-to-verify-java-plugins-of.html

/apps/test/TEST/fs1/EBSapps/comn/webapps/oacore/util/javaplugin

Tuesday 23 February 2016

How to check Number of CPU

http://dbissues.blogspot.com/2016/02/how-to-check-number-of-cpu.html

select * from v$OSSTAT

[test@test ~]$ cat /proc/cpuinfo

[test@test ~]$ cat /proc/meminfo

Monday 22 February 2016

How to run cmclean on apps (cmclean script attached)

http://dbissues.blogspot.com/2016/02/how-to-run-cmclean-on-apps-cmclean.html

Please Download it from the below link

https://drive.google.com/open?id=0B30-kT1pIOm_XzMxU1hSNTNIWFU

Down the Application

Run apps enviorment

Connect to sqlplus

Sql>@cmclean

Type dual to Continue

How to create RTF file through Xml Desktop Publisher

http://dbissues.blogspot.com/2016/02/how-to-create-rtf-file-through-xml.html

Please Download it from the Below Link

https://drive.google.com/open?id=0B30-kT1pIOm_WUw1aWZjSlB4X1E

Sunday 21 February 2016

How to get IP, Domain, Host, Product Version through Query

http://dbissues.blogspot.com/2016/01/how-to-get-ip-domain-host-product.html

TNS NAMES
---------

tt =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ?)(PORT = ?))
    (CONNECT_DATA =
      (SID = ?)
    )
  )

  select utl_inaddr.get_host_address(sys_context('userenv','server_host')) 
  from dual;

how to get server ip address in oracle
================================
1. For Server IP Address

SELECT UTL_INADDR.get_host_address
FROM DUAL

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

2. For Host Name (Server Address)

SELECT UTL_INADDR.get_host_name 
FROM DUAL

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

3. For Domain and host name

SELECT sys_context('USERENV', 'HOST') 
FROM dual; 

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

4. For host name (TO Check, wether Live or Clone)

SELECT sys_context('USERENV', 'SERVER_HOST') 
FROM dual; 

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



For Product Version
--------------------

SELECT PRODUCT, VERSION FROM SYS.PRODUCT_COMPONENT_VERSION;



For Operating System Version
----------------------------

select dbms_utility.port_string from dual;





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



select * from V$version;
select * from V$instance;



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





System Network IP Address and Port
-------------------------------------

select sys_context('userenv', 'ip_address') ip_address, port
from gv$session
where gv$session.inst_id = sys_context('userenv', 'instance')
    and gv$session.sid = sys_context('userenv', 'sid');


Profile Option:
---------------

AMS : Server URL









FRM-18107: Failed to create a DE context for the module

http://dbissues.blogspot.com/2016/02/frm-18107-failed-to-create-de-context.html

Resolved after deleting ORACLE_HOME from Environment Variables.

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

When starting Forms 10g Developer after starting OCJ4 Instance, I got the above error. 

I installed Oracle developer suite 10g after Oracle 10g server. (Windows platform)
Solution is to delete Oracle Home environment Variable. I just delete Oracle Home environment variable which points to, on my system, oracle 10g server which I installed at first. And everything works fine.

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

Installing Oracle Forms (Oracle Suite 10g)

2.1. Go to: www.oracle.com.
After a free registration, download the two Windows version:
http://download-llnw.oracle.com/otn/nt/ids/101202/ds_windows_x86_101202_disk1.zip
(626,122,752 bytes); known as disk1,
and
http://download.oracle.com/otn/nt/ids/101202/ds_windows_x86_101202_disk2.zip
(236,880,881 bytes); known as disk2.

2.2. Unzip the two files within a directory,

2.3. Inside the directory given by the first unpacked file: 
ds_windows_x86_101202_disk1, double click on setup.exe, and follow the 
instruction. 

2.4. We get a 10g Oracle welcome screen, click Next, confirm Exit,

2.5. Choose any destination directory; use Browse,
2.6. Choose the complete installation insted of the one related to J2EE,
2.7. For Provide Outgoing Mail Server Information, leave it blanck, click Next,
2.8. Press Install. The time the second disk is required (70% progression), direct the query 
by browsing to the directory of the second unzipped file: ds_windows_x86_101202_disk2. 
2.9. We get the End of Installation screen

At this step, the installation is successfully completed.

1. Installation directory:

Oracle Forms installed in :
C:\oraclexe\app\oracle\product\10.2.0\server\forms

2. Error:

FRM-18107: Failed to create a DE context for the module. 
Cause: Forms could not create the DE context for the module. 
Action: Check your development

Solution:

My Computer > Properties > Advanced > Environment Variables and 
delete ORACLE_HOME
(It wavs C:\oraclexe\app\oracle\product\10.2.0\server)

3.PATH:

C:\j2sdk1.4.2_04\bin;C:\j2sdkee1.3.1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;
C:\Program Files\Java\jdk1.6.0_03\bin;C:\MATLABR11\bin;C:\Program Files\Ant\bin;
C:\Program Files\Adobe\Flex Builder 3\sdks\3.1.0\bin

Add to it:
;C:\oraclexe\app\oracle\product\10.2.0\server\forms\bin

Saturday 20 February 2016

How to apply Patch in 12.2.4

http://dbissues.blogspot.com/2016/02/how-to-apply-patch-in-1224.html

Copy Patch /u01/oracle/PROD/apps/fs_ne/EBSapps/patch

chown -Rf oracle:dba /file_path
chmod -Rf 775 /file_path

Stop application from by running the APPS.Env
$ADMIN_SCRIPTS_HOME

./adstpall.sh apps/apps

./adadminsrvctl.sh start apps/apps

Navigate to path /u01/oracle/PROD/apps/fs_ne/EBSapps/patch

adop phase=apply patches=patch_num hotpatch=yes

After applying patch stop

./adadminsrvctl.sh stop
./adnodemgrctl.sh stop

Run ./adautocfg.sh after applying patch

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

Error:

Validating credentials...

Initializing...
    Run Edition context  : /u01/oracle/PROD/apps/fs1/inst/apps/PROD_TEST/appl/admin/PROD_TEST.xml
    Patch edition context: /u01/oracle/PROD/apps/fs2/inst/apps/PROD_TEST/appl/admin/PROD_TEST.xml
Reading driver file (up to 50000000 bytes).
*******FATAL ERROR*******
PROGRAM : (/u01/oracle/PROD/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adzdoptl.pl)
TIME    : Sun Feb 21 13:04:32 2016
FUNCTION: ADOP::GlobalVars::_validateApplyRestartArgs [ Level 1 ]
ERRORMSG: Since earlier patching session failed and you are invoking apply again, please specify 'abandon' or 'restart' parameter.


[STATEMENT] Please run adopscanlog utility, using the command

"adopscanlog -latest=yes"

to get the list of the log files along with snippet of the error message corresponding to each log file.


adop exiting with status = 255 (Fail)

Solution:

adop phase=apply patches=patch_num hotpatch=yes abandon=yes (to start patch from failing end)

adop phase=apply patches=patch_num hotpatch=yes restart=yes (to start patch from begning)

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

Error:

Validating system setup...
    Node registry is valid.
    Application services are down.
    [ERROR]     ETCC not run in the database node TEST
                The EBS Technology Codelevel Checker needs to be run on the database node.
                It is available as Patch 17537119.

    Encountered the above errors when performing database validations.
    Resolve the above errors and restart adop.



[STATEMENT] Please run adopscanlog utility, using the command

"adopscanlog -latest=yes"

to get the list of the log files along with snippet of the error message corresponding to each log file.


adop exiting with status = 1 (Fail)

Solution:

select * from fnd_nodes

select * from applsys.txk_tcc_results

Copy DB_MT.tar in /u01/

Run Database Enviroment

connect sqlplus

SQL> create table shafqat_txk as select * from applsys.txk_tcc_results;

SQL> drop table applsys.txk_tcc_results;

[oracle@TEST u01]$ tar -xzvf DB_MT.tar (to untar)

-----[oracle@TEST u01]$ tar -czvf DB_MT.tar DB_MT (to make tar)

check the rights ls-alrt

chmod -Rf 775 DB_MT
chown -Rf oracle:dba DB_MT

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


[oracle@TEST u01]$ cd DB_MT
[oracle@TEST DB_MT]$ ls
backup            checkMTpatch.cmd           README.txt
checkDBpatch.cmd  p17537119_R12_GENERIC.zip
[oracle@TEST DB_MT]$ cd b
-bash: cd: b: No such file or directory
[oracle@TEST DB_MT]$ cd backup/
[oracle@TEST backup]$ ls
checkDBpatch_11738.log  checkDBpatch_4455.log   checkMTpatch_3195.log
checkDBpatch_12360.log  checkDBpatch_5035.log   checkMTpatch_4471.log
checkDBpatch_13066.log  checkDBpatch_5630.log   checkMTpatch_5250.log
checkDBpatch_13548.log  checkDBpatch_7114.log   checkMTpatch_5970.log
checkDBpatch_13970.log  checkDBpatch_963.log    checkMTpatch_7294.log
checkDBpatch_14414.log  checkDBpatch.cmd        checkMTpatch.cmd
checkDBpatch_14526.log  checkDBpatch.sh         checkMTpatch.sh
checkDBpatch_19122.log  checkMTpatch_12641.log  p17537119_R12_GENERIC.zip
checkDBpatch_19742.log  checkMTpatch_13359.log  README.txt
checkDBpatch_20562.log  checkMTpatch_1686.log   txk_R1220_DB_base_bugs.xml
checkDBpatch_21575.log  checkMTpatch_2417.log   txk_R1220_MT_base_bugs.xml
checkDBpatch_3582.log   checkMTpatch_26608.log
[oracle@TEST backup]$ ./checkDBpatch.sh

 +===============================================================+
 |    Copyright (c) 2005, 2015 Oracle and/or its affiliates.     |
 |                     All rights reserved.                      |
 |    Database EBS Technology Codelevel Checker (DB-ETCC)        |
 +===============================================================+

Starting Database EBS Technology Codelevel Checker, Version 120.26
Enter the full path to the DB Context file :/u01/oracle/PROD/db/tech_st/11.2.0/appsutil/PROD_TEST.xml

Using database context file:
/u01/oracle/PROD/db/tech_st/11.2.0/appsutil/PROD_TEST.xml

Bugfix XML file version: 120.0.12020000.24
This file will be used as the reference for identifying missing bugfixes.

[WARNING] DB-ETCC: Bugfix XML file (txk_R1220_DB_base_bugs.xml) in current directory is more than 30 days old.
 Check if a newer version is available in patch 17537119.


Identifying database release ...
Setting database release to 11.2.0.4

=======================================================
[WARNING] DB-ETCC: Could not connect to database, so unable to check:
  - Whether database is in READ-WRITE mode.
  - Existence of table needed to store DB-ETCC results.
Resolve the database connectivity issue, and then rerun DB-ETCC.
=========================================================
Started prerequisite patch testing : Sun Feb 21 14:51:44 PKT 2016

Log file for this session : ./checkDBpatch_12937.log

Obtained list of bugfixes to be applied and the list to be rolled back.
Now checking Database ORACLE_HOME.

The opatch utility is at the required version.

Found patch records in the inventory.

All the required one-off bugfixes are present in Database ORACLE_HOME.

Database not available. DB-ETCC results cannot be stored.

Finished prerequisite patch testing : Sun Feb 21 14:52:11 PKT 2016

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


[oracle@TEST scripts]$ ./adadminsrvctl.sh stop
[oracle@TEST scripts]$ ./adadminnode.sh stop

You are running adadminsrvctl.sh version 120.10.12020000.9

Enter the WebLogic Admin password:
Enter the APPS Schema password:
Stopping WLS Admin Server...
Refer /u01/oracle/PROD/apps/fs1/inst/apps/PROD_TEST/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/oracle/PROD/apps/fs1/inst/apps/PROD_TEST/logs/appl/admin/log/adadminsrvctl.txt for more information ...

[oracle@TEST scripts]$

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

Run Database Env
connect to SQLPLUS

SQL> show parameter _system_trig_enabled;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
_system_trig_enabled                 boolean     TRUE

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

Down the Listener
[oracle@TEST 11.2.0]$ lsnrctl stop PROD

Down Database
SQL> shut immediate


Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@TEST 11.2.0]$ cd appsutil
[oracle@TEST appsutil]$ ls
bin   install  jdk  jre1.5  media  perl            scripts  temp
html  java     jre  log     out    PROD_TEST.xml  sql      template
[oracle@TEST appsutil]$ cd scripts/
[oracle@TEST scripts]$ ls
PROD_TEST
[oracle@TEST scripts]$ cd PROD_TEST/
[oracle@TEST PROD_TEST]$ ls
adautocfg.sh  addbctl.sh   adexecsql.pl  adpreclone.pl  adstrtdb.sql
adchknls.pl   addlnctl.sh  adlsnodes.sh  adstopdb.sql
[oracle@TEST PROD_TEST]$ ./adautocfg.sh
------------------------------------------------------------------------------
AutoConfig completed with errors.
------------------------------------------------------------------------------

Check the logfile for errors >>>> Verifying connection to the Database   : Could not be stablished

lsnrctl start PROD

connect to sqlplus and start database

sql>startup

Run ./adautocfg.sh again

[oracle@TEST PROD_TEST]$ ./adautocfg.sh

--------------------------------------------------------------------------------
AutoConfig completed successfully.
--------------------------------------------------------------------------------

Run apps Enviroment adn run ./adautocfg.sh

[oracle@TEST appl]$ . ./APPSPROD_TEST.env

[oracle@TEST scripts]$ ./adautocfg.sh


------------------------------------------------------------------------------
AutoConfig completed successfully.

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




How to get Database port to connect PLSQL

http://dbissues.blogspot.com/2016/02/how-to-get-database-port-to-connect.html

/u01/oracle/PROD/db/tech_st/11.2.0/network/admin/PROD_TEST

[oracle@TEST PROD_TEST]$ vi listener.ora


Path for tnsnames.ora and listener.ora

http://dbissues.blogspot.com/2016/02/path-for-tnsnamesora-and-listenerora.html

/u01/oracle/PROD/db/tech_st/11.2.0/network/admin/PROD_TEST

Apps and DB Context File Location's to get Port

http://dbissues.blogspot.com/2016/02/context-file-location-to-get-port.html


Application Context File:

/u01/oracle/PROD/apps/fs1/inst/apps/PROD/appl/admin/PROD_TEST.xml

Where PROD is SID and TEST is HOST

Search to get Port

/EndUserMonitoringEnabled

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

Database Context File:

/u01/oracle/PROD/db/tech_st/11.2.0/appsutil/PROD_TEST.xml

Checking swap space: 0 MB available, 1535 MB required. Failed

http://dbissues.blogspot.com/2016/02/i-am-trying-to-install-portal-forms.html


I am trying to install "Oracle Reports and forms 10g". I am using windows 7 64bit OS.

I get the following error.

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be  5.0, 5.1 or 5.2 .    Actual 5.1
                                      Passed

Checking monitor: must be configured to display at least 256 colors .    Actual
4294967296     Passed
Checking swap space: 0 MB available, 1535 MB required.     Failed <<<<

Some requirement checks failed. You must fulfill these  requirements before

continuing with the installation,  at which  time they will be rechecked.

 Continue? (y/n) [n]

Solution:

(Start > Settings > Control Panel > System > Advanced System Settings > Performance > Advanced > Virtual Memory / Change) had a custom size set and that it was set to an appropriate value.



Friday 19 February 2016

How To Clear Caches (Apache/iAS, Cabo, Modplsql, Browser, Jinitiator, Java, Portal, WebADI) for E-Business Suite?

http://dbissues.blogspot.com/2016/02/how-to-clear-caches-apacheias-cabo.html

APPLIES TO:


Oracle Applications Framework - Version 12.1.3 to 12.1.3 [Release 12.1]
Oracle Applications Technology Stack - Version 11.5.9 to 12.2.2 [Release 11.5 to 12.2]
Oracle Web Applications Desktop Integrator - Version 11.5.10.2 to 11.5.10.2 [Release 11.5]
Information in this document applies to any platform.

GOAL


Sometimes it is recommended by Support or Development to clear Apache, Browser, Java, Jinitiator or
other caches in E-Business Suite environment. This document simply provides you with the methods to accomplish this.
The users shouldn't be connected to the Applications during this task.

SOLUTION


Apache / iAS 
For 11i and earlier versions:
- shutdown iAS server
- go to $OA_HTML (for 11.5.9) or $COMMON_TOP (for 11.5.10.x) directory
- backup the directory _pages and delete its contents by running for instance:

  rm -rf $COMMON_TOP/_pages/*

- for modplsql caches remove contents of  $IAS_ORACLE_HOME/Apache/modplsql/cache directory
- restart iAS server


To clear middle tier cache in release 12:

- go to "Functional Administrator" responsibility
- select Core Services => Caching Framework => Global Configuration => Clear cache
(please review Note 759038.1 for details).
In case you have login issue after accidentally cleared the _pages instead of using the method above for r12
please review Note 433386.1 to recompile jsp files.
Cabo
Images and style sheets can be corrupted or out of sync in the cabo caches,
you may need to clear the related directories after backup:

$OA_HTML/cabo/images/cache
$OA_HTML/cabo/styles/cache


Web Browser


for Internet Explorer:
- go to menu Tools => Internet Options,
- select 'General' tab,
- click on button 'Delete Files' in 'Temporary Internet files' area
  or
- click on button 'Delete...' then in 'Delete Browsing History' pop-up window click on 'Delete Files...'
- close all IE windows and restart new browser session.

for Mozilla Firefox:
- go to menu Tools
- select 'Clear Private Data...' or 'Clear Recent History...' then check 'Cache'
  or
- go to menu Edit or Tools
- select Preferences or Options.
- expand the 'Advance' options and choose 'Cache' or Privacy
- click the button called 'Clear Cache'.

for Safari:
- go to Safari menu
- select Empty Cache => Click 'Empty' in the dialogue box
for Netscape:
- go to menu Edit => Preferences,
- choose 'Cache' in 'Advanced' category,
- click on buttons 'Clear Memory Cache' and 'Clear Disk Cache'.
- close all Netscape windows and restart new browser session.

Jinitiator

Two possibilities depending of the Jinitiator version:

for 1.1.8.x versions:- delete all files in directory:

C:\Program Files\Oracle\Jinitiator <version>\jcache\

for 1.3.1.x versions:
- go to Start => Parameters => Control Panel
- double-click on "Jinitiator <version>" icon
- in the new pop-up window, click on "Cache" tab
- click on "Clear Jar Cache " button. On prompt, click Yes.

(you can also delete directly all files under directory:
C:\Documents and Settings\<your user name>\Oracle Jar Cache)


Java
Java/JRE plug-in (Windows)- go to Start => Parameters => Control Panel
- double-click on 'Java' icon
- in the new pop-up window, click on 'General' tab
- click on 'Setting...' button in 'Temporary Internet files' area then click on 'Delete Files...' button
  (you can select Applets, Applications or other files)

JVM

- go to responsibility "Functional Administrator"
- click on "Core Services" tab then the "Caching Framework" sub-tab
- click on "Global Configuration" link then click on "Clear all cache" button to clear all of the Java Cache's


Portal
- go to the url: http://<host.domain>:<port>/pls/admin_/gateway.htm or cache.htm
- click on "Cache Settings" option and note the "Cache Directory"
- go to this directory and delete all the cache files in the directory and sub directories

See also modplsql caches in Apache/iAS section above.


WebADI / BNE cache
For instance when enabling BNE log
- go to url: http://<host.domain>:<port>/oa_servlets/oracle.apps.bne.framework.BneAdminServlet
- click on the "clear-cache" link
- at the bottom of the page you should see 'Cache Cleared'

Sunday 14 February 2016

Find Profile Option values using SQL queries

http://dbissues.blogspot.com/2016/02/find-profile-option-values-using-sql.html

SELECT e.profile_option_name Profile,
        f.user_profile_option_name User_Profile_Name, c.application_short_name,
        decode(a.level_id,10001,'Site',10002,'Application',10003,'Resp',10004,'User') LevelSet_At,
        decode(a.level_id,10001,'Site',10002,c.application_short_name,
        10003,b.responsibility_name,10004,d.user_name) LValue,
        nvl(a.profile_option_value,'Is Null') Value
   FROM  fnd_profile_option_values a, fnd_responsibility_tl b,
        fnd_application c, fnd_user d, fnd_profile_options e, fnd_profile_options_vl f
      WHERE  f.user_profile_option_name like 'OS%'
             AND  e.profile_option_id = a.profile_option_id
          AND  e.profile_option_id = f.profile_option_id
       AND  a.level_value = b.responsibility_id (+)
       AND  a.level_value = c.application_id (+)
    AND  a.level_value = d.user_id (+)
   ORDER BY 1,2;

Checking the File Versions with SQL Query

http://dbissues.blogspot.com/2016/02/checking-file-versions-with-sql-query.html

Many a times we need to check the file versions from our environment.
As functional consultants we generally don't have the database access.
Using the following query we can easily find the file versions without needing the help of a DBA



SELECT a.app_short_name, a.subdir, a.filename, b.version 
FROM   apps.ad_files a, 
       apps.ad_file_versions b 
WHERE  a.FILENAME like '%<filename>%' 
AND    a.file_id = b.file_id 
AND    a.app_short_name = 'HZ' --- e.g. : ASF, AMS.... 
AND    b.creation_date = (SELECT MAX (creation_date) 
                          FROM apps.ad_file_versions ver 
                          WHERE ver.file_id = a.file_id)

Friday 12 February 2016

Monitering Tablespace Size

http://dbissues.blogspot.com/2016/02/monitering-tablespace-size.html

1:) To check total size of table space in "MB";
select tablespace_name,sum(bytes)/1024/1024 "total size in mb" from dba_data_files
group by tablespace_name;

2:) To check free space in table space in "MB";
select tablespace_name,sum(bytes)/1024/1024 "free space in mb" from dba_free_space
group by tablespace_name;

3:) You can check the single datafile full space by the following command;
select tablespace_name,file_id,file_name,sum(bytes)/1024/1024 "total size in mb" from dba_data_files
where file_id=6
group by tablespace_name,file_id,file_name;

4:) You can check the single datafile free space by the folowing command;
select tablespace_name,file_id,sum(bytes)/1024/1024 "size in MB" from dba_free_space 
where file_id=6
group by tablespace_name,file_id;

5:)To add datafile in tables pace USERS;
alter table space users add datafile '/u01/app/oracle/oradata/orcl/users03' size 2m;

6:) To drop datafile from tables pace USERS;
alter tables pace users drop datafile '/u01/app/oracle/oradata/orcl/users02.dbf';

How to create Tablespace (Tablespace Settings)

http://dbissues.blogspot.com/2016/02/how-to-create-tablespace-tablespace.html

creating tablespace

create tablespace ali datafile '/u01/app/oracle/oradata/ali01' size 5m;

assign tablepsace to user

alter user shafqat default tablespace ali;

For checking tablespace ,and her owner type the command

desc dba_users

select *

  2  from database_properties

  3  where property_name like 'DEFAULT%TABLESPACE';

Wednesday 10 February 2016

How to find File Versions through Database

http://dbissues.blogspot.com/2016/02/strings-gltoppatch115importusglwfjea.html

Run the APPS Environment before using the below Commands

strings -a <file name> | grep Header
[test@test /]$ strings -a $GL_TOP/patch/115/import/US/glwfjea.wft |grep '$Header'
[test@test /]$ strings -a /apps/test/TEST/fs1/EBSapps/appl/gl/12.0.0/patch/115/import/US/glwfjea.wft |grep '$Header'

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

adident Header <file name>
adident Header $GL_TOP/patch/115/import/US/glwfjea.wft

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

For E.G

The versions of the following files:

$GL_TOP/patch/115/import/US/glwfjea.wft
$GL_TOP/patch/115/sql/glwfjeas.pls
$GL_TOP/patch/115/sql/glwfjeab.pls


You can use the commands like the following:

$strings -a <path>/filename |grep '$Header'
adident Header <file name>

e.g. $strings -a $GL_TOP/patch/115/import/US/glwfjea.wft |grep '$Header'
e.g. $adident Header $GL_TOP/patch/115/import/US/glwfjea.wft

How to find file in Database

http://dbissues.blogspot.com/2016/02/how-to-find-file-in-database.html

[test@test /]$ locate version.txt

[test@test /]$ find -name version.txt

[test@test /]$ find /usr/share/doc/ -name version.txt

Error Occurs when Opening Form (APPSTAND)

http://dbissues.blogspot.com/2016/02/error-occurs-when-opening-form-appstand.html


Please Download it from the below URL

https://drive.google.com/open?id=0B30-kT1pIOm_alRRV0c5R2JPZ3c

https://drive.google.com/open?id=0B30-kT1pIOm_VWVVbFpYOGdtaWc

Tuesday 9 February 2016

Active Working Users Query with Current Responsibility

http://dbissues.blogspot.com/2016/02/active-users-query-with-responsibility.html

select fnd.user_name, icx.responsibility_application_id, icx.responsibility_id, frt.responsibility_name,
icx.session_id, icx.first_connect,
icx.last_connect,
DECODE ((icx.disabled_flag),'N', 'ACTIVE', 'Y', 'INACTIVE') status
from
fnd_user fnd, icx_sessions icx, fnd_responsibility_tl frt
where
fnd.user_id = icx.user_id
and icx.responsibility_id = frt.responsibility_id
and icx.disabled_flag <> 'Y'
and trunc(icx.last_connect) = trunc(sysdate)
order by icx.last_connect;