Thursday, 19 January 2023

Unable to see roles & responsibilities on EBS Home Page

 My user name which not synced is "JASON"


There are two methods to synchronize user data.


First Method :


This one is our usual method , which will be done by all our APPS DBA.


1. End date the user in front end and activate him again.


The action plan above should automatically re-syncs user/role data in the tables mentioned above. If issue still persists, do next step.


Second Method:


2)


a)  Run the Concurrent Program with the following parameters:


     "Workflow Directory Services User/Role Validation" Parameters : 100000, Yes, No, No

  


b)  Bounce Apache.


c)  Retest the issue , if not fixed move to step 4.


4. Verify Discrepancies in User/Role Data in Workflow Tables


Run below scriot to check discrepancy


select ura.user_name, ura.role_name

from wf_local_user_roles ur, wf_user_role_assignments ura

where ur.user_name = ura.user_name

and ur.role_name = ura.role_name

and ura.relationship_id = -1

and ((ur.effective_start_date is null or ur.effective_start_date 

ura.effective_start_date)

or (ur.effective_end_date is null or ur.effective_end_date  ura.effective_end_date));


If we get more than zero rows then follow the below steps.


a) Backup the below tables


wf_local_user_roles

wf_user_role_assignments

b) Update both the wf_local_user_roles and wf_user_role_assignments tables with null values for the roles.


update wf_user_role_assignments

set user_end_date=null,

role_end_date=null,

assigning_Role_end_Date=null,

effective_end_Date=to_date('01-01-2023','dd-mm-yyyy')

where user_name=upper('JASON');


update wf_user_role_assignments

set user_end_date=null,

role_end_date=null,

assigning_role_end_Date=null,

effective_end_Date=to_date('01-01-2023','dd-mm-yyyy')

where role_name=upper('JASON');


update wf_local_user_Roles

set user_end_date=null,

role_end_date=null,

effective_end_Date=to_date('01-01-2023','dd-mm-yyyy')

where user_name=upper('JASON');


update wf_local_user_Roles

set user_end_date=null,

role_end_date=null,

effective_end_Date=to_date('01-01-2023','dd-mm-yyyy')

where role_name=upper('JASON');



Now I have tried to Login , It works.


Reference : Guideline for fixing Missing Responsibilities (Doc ID 2508139.1)




Adcfgclone Fails while instantiating OHS Config - Trying to access DMZ


 /u01/TEST/R12apps/fs2/inst/apps/TEST_Mars/admin/log/clone/patch/txkSetOHSConfig_01567873/provision_01567873.log


Error :

=======


Connecting Run file system WLS domain using t3://Mars.Jayan.int:7006

WARNING: Run file system MBeanServerConnection is invalid

Looks like Run file system WLS domain MBeanServerConnection is unavailable!!!

Trying to read managed server name and host:port info from Patch context file available in fnd_oam_context_files table

For RUN file system Server Name, Listen Address:Listen Port map from database {=dmzMars.Jayan.int:, oacore_server2=dbfin

sfnyp01.Jayan.int:7207, oacore_server1=Mars.Jayan.int:7206, oacore_server3=dmzMars.Jayan.int:7215, f

orms-c4ws_server2=dmzMars.Jayan.int:7815, oafm_server2=dmzMars.Jayan.int:7615, forms-c4ws_server1=dbfinsfn

yp01.Jayan.int:7806, oafm_server1=Mars.Jayan.int:7606, forms_server1=Mars.Jayan.int:7406, forms_serv

er2=dmzMars.Jayan.int:7415}

For RUN file system Server Name, Listen Address:SSL Listen Port map from database {=dmzMars.Jayan.int:}

Populating map where key is host:port and value is managed server name

ERROR: Failed to populate map where key is host:port and value is managed server name

ERROR: String index out of range: -1




Cause :

=======

After database clone , while continuing with adcfgclone on appstier its trying to access DMZ node (dmzMars) which is not available or does not exist actually.


Solution:

==========


To overcome this error please follow the below steps.


1.  Backup the below files on Application Tier.


    create table fnd_oam_context_files_bkp as select * from fnd_oam_context_files;

    create table fnd_nodes_bk as select * from fnd_nodes;

    create table adop_valid_nodes_bk as select * from adop_valid_nodes;


    If on ADK/TXK 8 or higher please include below query also.


    create table ad_nodes_config_status_bk as select * from ad_nodes_config_status;


2.  Truncate the below tables.


    truncate table fnd_oam_context_files;

    truncate table fnd_nodes;

    truncate table adop_valid_nodes;


    If on ADK/TXK 8 or higher please include below query also.


    truncate table ad_nodes_config_status;


3.  Run autoconfig on database Tier


    cd $ORACLE_HOME/appsutil/scripts/TEST_MARS/    

    sh adautocfg.sh


4.  Run Autoconfig on Application Tier


    cd $ADMIN_SCRIPTS_HOME

    sh adautocfg.sh


    Now rerun the adcfgclone on apps Tier , It completed Normal.


Reference : How to Synchronize the AD tables FND_NODES, ADOP_VALID_NODES, and FND_OAM_CONTEXT_FILES in 12.2 when adop fails. (Doc ID 2064223.1)

Thursday, 7 October 2021

Adpreclone Fails with Error "Edit session is enabled in domain.Please activate all of your changes before proceed clone" in 12.2

Error :

Edit session is enabled in domain.Please activate all of your changes before proceed clone"

ERROR while running perl /r11/app/Jay/R12apps/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/r11/app/Jay/R12apps/fs1/EBSapps/comn/util/jdk mode=stage stage=/r11/app/Jay/R12apps/fs1/EBSapps/comn/clone component=appsTier method= appctx=/r11/app/Jay/R12apps/fs1/inst/apps/Jay_sun/appl/admin/Jay_sun.xml showProgress ...


Solution :

This issue will occur if "Lock & Edit"  is enabled in domain for Weblogic Console. 

Due to this adpreclone.pl will not complete successfully.

To fix this issue, login as weblogic admin user in WLS console and

 select Release Configuration.  

This will release the Lock & Edit.

Now try adpreclone.pl , it would be successful.

Tuesday, 6 April 2021

Oracle Golden Gate files Location and extension

 Below are the major Golden gate files and their locations.


Reports (.rpt)                      /u01/Jay/goldengate/ogg/dirrpt



Parameters (.prm)                   /u01/Jay/goldengate/ogg/dirprm



Replicat Checkpoints (.cpr)         /u01/Jay/goldengate/ogg/dirchk




Extract Checkpoints (.cpe)          /u01/Jay/goldengate/ogg/dirchk




Process Status (.pcs)               /u01/Jay/goldengate/ogg/dirpcs




SQL Scripts (.sql)                  /u01/Jay/goldengate/ogg/dirsql




Database Definitions (.def)         /u01/Jay/goldengate/ogg/dirdef




Dump files (.dmp)                   /u01/Jay/goldengate/ogg/dirdmp




Masterkey wallet files (.wlt)       /u01/Jay/goldengate/ogg/dirwlt




Credential store files (.crd)       /u01/Jay/goldengate/ogg/dircrd


                                    /u01/Jay/goldengate/ogg/dirdat

Steps to start admin server on patch file system in r12.2

 To start admin server on patch environment forcepatchfs option should be used as below.



Source environment


$. /data01/fs1/EBSapps/appl/APPS_Jay1.env 


cd $ADMIN_SCRIPTS_HOME




[applmgr@mercury scripts]$ sh adadminsrvctl.sh start forcepatchfs


 


You are running adadminsrvctl.sh version 120.10.12020000.11


Enter the WebLogic Admin password:


Enter the APPS Schema password:


Starting WLS Admin Server...


Refer /data01/fs2/inst/apps/PHASE1_Jay1/logs/appl/admin/log/adadminsrvctl.txt for details




AdminServer logs are located at /data02/fs2/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs




adadminsrvctl.sh: exiting with status 0




adadminsrvctl.sh: check the logfile /data02/fs2/inst/apps/PHASE1_Jay/logs/appl/admin/log/adadminsrvctl.txt for more information ...



Check the admin server status as below.


$sh adadminsrvctl.sh status forcepatchfs



You are running adadminsrvctl.sh version 120.10.12020000.11


Enter the WebLogic Admin password:

Enter the APPS Schema password:


 The AdminServer is running


AdminServer logs are located at /data02/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs


adadminsrvctl.sh: exiting with status 0


adadminsrvctl.sh: check the logfile /data02/fs1/inst/apps/PHASE1_Jay/logs/appl/admin/log/adadminsrvctl.txt for more information ...

Monday, 29 March 2021

adcfgclone failing with Error: AFTER PASTEBINARY COMMENV.SH FILE IS POPULATED WITH INCORRECT JAVA_HOME PATH in EBS 12.2

 Error :


Adcfgclone failing with Error: AFTER PASTEBINARY COMMENV.SH FILE IS POPULATED WITH INCORRECT JAVA_HOME PATH in EBS 12.2


Solution:


Reference : Oracle Doc ID 2545694.1


apply patch 27212806 to MIDDLE_WARE/oracle_common Home


Zero downtime patch can be applied directly .



[applmgr@jupiter WLS_ERROR_patch]$ echo $TWO_TASK

ERP_TEST

[applmgr@jupiter WLS_ERROR_patch]$ echo $RUN_BASE

/u01/oracle/ERP/fs1

[applmgr@jupiter WLS_ERROR_patch]$ export ORACLE_HOME=/u01/oracle/ERP/fs1/FMW_Home/oracle_common

[applmgr@jupiter WLS_ERROR_patch]$ cd 28708563/


[applmgr@jupiter 28708563]$ export ORACLE_HOME=/u01/oracle/ERP/fs1/FMW_Home/oracle_common

[applmgr@jupiter 28708563]$ /u01/oracle/ERP/fs1/FMW_Home/oracle_common/OPatch/opatch version

OPatch Version: 11.1.0.12.9


OPatch succeeded.

[applmgr@jupiter 28708563]$ /u01/oracle/ERP/fs1/FMW_Home/oracle_common/OPatch/opatch lsinventory|grep 28708563

Patch  28708563     : applied on Thu Jan 14 02:03:34 AST 2019

[applmgr@jupiter 28708563]$ cd ..

[applmgr@jupiter WLS_ERROR_patch]$ cd 27212806/

[applmgr@jupiter 27212806]$ ls -ltr

total 8

drwxr-xr-x. 4 applmgr oinstall   31 Jan  14 15:14 etc

drwxr-xr-x. 3 applmgr oinstall   18 Jan  14 15:14 files

-rw-r--r--. 1 applmgr oinstall 7248 Jan  14 15:14 README.txt

[applmgr@jupiter 27212806]$ /u01/oracle/ERP/fs1/FMW_Home/oracle_common/OPatch/opatch apply

Oracle Interim Patch Installer version 11.1.0.12.9

Copyright (c) 2020, Oracle Corporation.  All rights reserved.



Oracle Home       : /u01/oracle/ERP/fs1/FMW_Home/oracle_common

Central Inventory : /u01/oracle/oraInventory

   from           : /u01/oracle/ERP/fs1/FMW_Home/oracle_common/oraInst.loc

OPatch version    : 11.1.0.12.9

OUI version       : 11.1.0.11.0

Log file location : /u01/oracle/ERP/fs1/FMW_Home/oracle_common/cfgtoollogs/opatch/27212806_Jul_03_2020_14_14_39/apply2020-07-03_14-14-39PM_1.log



OPatch detects the Middleware Home as "/u01/oracle/ERP/fs1/FMW_Home"


Applying interim patch '27212806' to OH '/u01/oracle/ERP/fs1/FMW_Home/oracle_common'

Verifying environment and performing prerequisite checks...

All checks passed.

Provide your email address to be informed of security issues, install and

initiate Oracle Configuration Manager. Easier for you if you use your My

Oracle Support Email address/User Name.

Visit http://www.oracle.com/support/policies.html for details.

Email address/User Name:


You have not provided an email address for notification of security issues.

Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  y




Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

(Oracle Home = '/u01/oracle/ERP/fs1/FMW_Home/oracle_common')



Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...


Patching component oracle.as.common.clone, 11.1.1.9.0...


Verifying the update...

Patch 27212806 successfully applied

Log file location: /u01/oracle/ERP/fs1/FMW_Home/oracle_common/cfgtoollogs/opatch/27212806_Jan_14_2020_14_14_39/apply2020-01-14_12-14-39PM_1.log


OPatch succeeded.

[applmgr@jupiter 27212806]$ /u01/oracle/ERP/fs1/FMW_Home/oracle_common/OPatch/opatch lsinventory|grep 27212806

Patch  27212806     : applied on Fri Jan 14 15:17:52 AST 2020

     27212806

[applmgr@jupiter 27212806]$



Monday, 22 February 2021

Steps to start admin server on patch file system in r12.2

 To start admin server on patch environment forcepatchfs option should be used as below.



Source environment


$. /data01/fs1/EBSapps/appl/APPS_Jay1.env 


cd $ADMIN_SCRIPTS_HOME




[applmgr@mercury scripts]$ sh adadminsrvctl.sh start forcepatchfs


 


You are running adadminsrvctl.sh version 120.10.12020000.11


Enter the WebLogic Admin password:


Enter the APPS Schema password:


Starting WLS Admin Server...


Refer /data01/fs2/inst/apps/PHASE1_Jay1/logs/appl/admin/log/adadminsrvctl.txt for details




AdminServer logs are located at /data02/fs2/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs




adadminsrvctl.sh: exiting with status 0




adadminsrvctl.sh: check the logfile /data02/fs2/inst/apps/PHASE1_Jay/logs/appl/admin/log/adadminsrvctl.txt for more information ...



Check the admin server status as below.


$sh adadminsrvctl.sh status forcepatchfs



You are running adadminsrvctl.sh version 120.10.12020000.11


Enter the WebLogic Admin password:

Enter the APPS Schema password:


 The AdminServer is running


AdminServer logs are located at /data02/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs


adadminsrvctl.sh: exiting with status 0


adadminsrvctl.sh: check the logfile /data02/fs1/inst/apps/PHASE1_Jay/logs/appl/admin/log/adadminsrvctl.txt for more information ...