Tuesday, December 2, 2014

Context Value Management Failed

Context Value Management Failed

Issue: Incorrect Custom top defied using OAM Manage Custom Parameters

Auto config throws the following error:
File system template : /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
Checking for customizations to Context template
Customizations found : Yes
Action to be taken : Customizations to be appended to the template

StackTrace:
oracle.xml.parser.v2.XMLDOMException: invalid character " in name
at oracle.xml.util.XMLUtil.validateName(XMLUtil.java:447)
at oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:706)
at oracle.apps.ad.context.AppsContext.addTmplCust(AppsContext.java:1012)
at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updTmplwithDBup(FileSysDBCtxMerge.java:328)
at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateFileSysTemplate(FileSysDBCtxMerge.java:270)
at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateFileSysFiles(FileSysDBCtxMerge.java:209)
at oracle.apps.ad.context.CtxValueMgt.mergeCustomInFiles(CtxValueMgt.java:1790)
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1608)
at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:763)

ERROR: Context Value Management Failed.
Terminate.

Solution:
Backup FND_OAM_CONTEXT_CUSTOM and FND_OAM_CONTEXT_FILES tables

create table FND_OAM_CONTEXT_CUSTOM_bak as select * from FND_OAM_CONTEXT_CUSTOM


create table FND_OAM_CONTEXT_FILES_bak as select * from FND_OAM_CONTEXT_FILES

truncate table applsys.FND_OAM_CONTEXT_CUSTOM

truncate table applsys.FND_OAM_CONTEXT_FILES

Run autoconfig on the db tier.

Run autoconfig on the apps tier

Retest

Thursday, October 30, 2014

End Date all users in EBS 11i after cloning

End Date all users in EBS 11i after cloning

select count(*) from fnd_user;

create table fnd_user_bkp as select * from fnd_user;


DECLARE
CURSOR cur1
IS
SELECT user_name
FROM fnd_user
WHERE user_name NOT IN ('SYSADMIN', 'GUEST')
AND (end_date IS NULL OR TRUNC(end_date) > TRUNC (SYSDATE));
BEGIN
FOR all_user IN cur1
LOOP
fnd_user_pkg.updateuser (x_user_name => all_user.user_name,
x_owner => 'SYSADMIN',
x_end_date => SYSDATE
);
COMMIT;
END LOOP;
END;


How to End-Date/Delete an Applications User (Doc ID 1064798.1)

Tuesday, October 28, 2014

Tips & Tricks for Navigating Oracle Applications

Tips & Tricks for Navigating Oracle Applications


Help : Keyboard Help or – Lists Hot Keys

Tools : Close Other Forms – check box to auto close forms when a new form is opened

Query Tips and Tricks
to enter query by example
to recall the last query parameters
to Execute Query
Query : Count Matching Records (after putting in the query parameters)
Exit Query

Query Wild Card Characters
% one or more characters
_ exactly one character

Query Operators
#between and
#is null, #is not null
> Greater Than
>= Greater Than or Equal
< Less Than <= Less Than or Equal = Equal != Not Equal View : Record : First Record or Last Record – shows first or last record returned by query

What SQL Statement did the Oracle Applications run to fill the form?
Help : Diagnostics : Examine (requires apps password)
Block = SYSTEM
Field = last_query

Other ways to determine the underlying table structure:
1) Help : Record History
2) Trace the form (requires apps password)

XML Publisher
The XML Publisher concurrent program joins the XML concurrent report data with the registered templates to generate PDF output. The following template types are supported: Portable Document Format (PDF), Rich Text Format (RTF) and XSL-FO.
- www.norcaloaug.org, Training Day 2004, Paper by Brent Mosher,
‘Oracle Tech update part 1: XML Publisher/Oracle Applications Framework’
- Metalink Note:269605.1, ‘About Oracle XML Publisher Release 4.5’
- Metalink Note:276691.1, ‘XML Publisher and Concurrent Manager Integration’
- Metalink Note:258332.1, ‘About Oracle XML Publisher Minipack XDO.H’
- Metalink B13817-01, ‘Oracle® XML Publisher User’s Guide Release 11i

Some Tips About FNDLOAD

Data Synchronization  Data Synchronization is a process in which some setup data would be synchronized, and this would be more important w...