Friday, December 21, 2012

Target node/queue unavailable or Concurrent Manager Issue’s


Target node/queue unavailable or Concurrent Manager Issue’s after cloning or DB-Refresh

Solution A:
SQL> conn apps/PWD
SQL> EXEC FND_CONC_CLONE.TARGET_CLEAN;
ü  Run autoconfig on dbtier then appsTier.
ü  Run cmclean.sql script  Non destructive script this can also be tried
ü  Start all application services and check whether managers are up.
è Apply this solution in last when the above one doesn’t work.
Solution B:
SQL> Desc fnd_concurrent_queues;
Note : Node Name=” Ur Existing Node Name
  SQL> select node_name,target_node,control_code from fnd_concurrent_queues;
 SQL> update apps.fnd_concurrent_queues set node_name = 'Node NAME' where node_name='Existing Node Name';
  SQL> select NODE_NAME,NODE_MODE,STATUS from fnd_nodes;
  SQL> select control_code,target_node,node_name,CONCURRENT_QUEUE_NAME from fnd_concurrent_queues;
 SQL> UPDATE fnd_concurrent_queues set control_code = null;
  SQL> UPDATE fnd_concurrent_queues set target_node = 'Node Name';
  SQL> UPDATE fnd_concurrent_queues set node_name = 'Node Name';
  SQL> update FND_CONCURRENT_QUEUES set control_code = null where concurrent_queue_name = 'OAMGCS_NODENAME';
  SQL> COMMIT;  //  Don’t forget
  SQL>  select control_code,target_node,node_name,CONCURRENT_QUEUE_NAME from fnd_concurrent_queues;

Ø  Retest the issue .
+++++++++++++++++++++++++++++++
MOS ID’s :  555081.1 ,732709.1 & 466532.1
+++++++++++++++++++++++++++++++

To the Target node/queue unavailable or Concurrent Manager Issue’s after Refresh/Cloning on EBS :


The standard codes used by Oracle Applications are as followings:

'A', à 'Activate concurrent manager'
'D', à 'Deactivate concurrent manager'
'E', à 'Deactivated'
'N', à 'Target node/queue unavailable'
'R', à 'Restart concurrent manager'
'T', à 'Terminate requests and deactivate manager'
'U', à 'Update concurrent manager env inf.'
'V', à 'Verify concurrent managers status'
'X', à 'Terminated'

+++++++++++++++++++++++++++

STATUS_CODE Column:

A Waiting
B Resuming
C Normal
D Cancelled
E Error
F Scheduled
G Warning
H On Hold
I Normal
M No Manager
Q Standby
R Normal
S Suspended
T Terminating
U Disabled
W Paused
X Terminated
Z Waiting

PHASE_CODE column

C Completed
I Inactive
P Pending
R Running

Solution A:

CMCLEAN.SQL - Non Destructive Script to Clean Concurrent Manager Tables [ID 134007.1]

Run the cmclean.sql on admin node  

Start the managers and re-test.

Solution B:

sqlplus apps/pwd

1.       SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN;
2.       SQL>COMMIT;
SQL> EXIT;
Make sure following two sqls returns no rows
SQL> select node_name "Node Name", node_mode "Mode", support_cp "C",support_web "W", support_admin "A", support_forms "F" from FND_NODES;
SQL>  select * from FND_OAM_CONTEXT_FILES;

2. Run AutoConfig on the database tier.

3. Run AutoConfig on the apps tier.
          
4. Run cmclean.sql script .

SQL> sqlplus APPS/<Password>

SQL> select node_name "Node Name", node_mode "Mode", support_cp "C",support_web "W", support_admin "A", support_forms "F" from FND_NODES;

SQL> select CONCURRENT_QUEUE_NAME from FND_CONCURRENT_QUEUES where CONCURRENT_QUEUE_NAME like 'FNDSM%';

5. Start all application services and check whether managers are up & re-test.

Solution C:  
Highly recommended for bellow

Apply this solution in last when the above one doesn’t work.

SQL> select node_name,target_node,control_code from fnd_concurrent_queues;

SQL> update apps.fnd_concurrent_queues set node_name = 'Node NAME' where node_name='Existing Node Name';

SQL> select NODE_NAME,NODE_MODE,STATUS from fnd_nodes;

SQL> select control_code,target_node,node_name,CONCURRENT_QUEUE_NAME from fnd_concurrent_queues;

SQL> UPDATE fnd_concurrent_queues set control_code = null;

SQL> select TARGET_NODE,NODE_NAME from fnd_concurrent_queues where node_name='<Existing Node Name>';

SQL> select TARGET_NODE,NODE_NAME from fnd_concurrent_queues where TARGET_NODE='<Existing Node Name>';

SQL> update fnd_concurrent_queues set NODE_NAME='<Node Name>' where NODE_NAME='<Source/Existing Node Name>';

SQL> update fnd_concurrent_queues set TARGET_NODE='<Node Name>' where TARGET_NODE='<Source/Exixting Node Name>';

SQL> UPDATE fnd_concurrent_queues set target_node = '<Node Name>';

SQL> UPDATE fnd_concurrent_queues set node_name = '<Node Name>';

SQL> Commit;

SQL> select control_code,target_node,node_name,CONCURRENT_QUEUE_NAME from fnd_concurrent_queues;

SQL>select TARGET_NODE,NODE_NAME from fnd_concurrent_queues where node_name='<Node Name>';

SQL>select TARGET_NODE,NODE_NAME from fnd_concurrent_queues where TARGET_NODE='<Node Name>';

Solution D

Solution C+D: This is the final solution

SQL> set linesize 1000;
SQL> column CONTROL_CODE format A15
SQL> select CONCURRENT_QUEUE_NAME, CONTROL_CODE , TARGET_NODE, NODE_NAME from FND_CONCURRENT_QUEUES where concurrent_queue_name like 'OAMGCS_%';
Sample Output:
CONCURRENT_QUEUE_NAME          CONTROL_CODE    TARGET_NODE                    NODE_NAME
------------------------------                        ---------------                 -----------------------------    ------------------------------
OAMGCS_SUPTEBSAL1                            E                                                                      SUPTEBSAL1

To implement the solution, please execute the following steps:

1. Please set control_code to null for the OAMGCS concurrent queue on the specific node that is affected by this issue.

SQL>  update FND_CONCURRENT_QUEUES
      set control_code = null
      where concurrent_queue_name = 'OAMGCS_<hostname>'; <Ur Existing Node Name>

2. Make sure the Target_node is correct for the OAMGCS manager:

SQL> update FND_CONCURRENT_QUEUES
           set TARGET_NODE='<correct node >'
           where CONCURRENT_QUEUE_NAME='OAMGCS_<hostname>';

SQL> commit;

++++++++++++++++Manjunatha++++++++++++++++
Note:

OAM Generic Collection Service shows State: "The target node/queue unavailable". [ID 393706.1]
After Cloning all the Concurrent Managers do not start for the cloned Instance [ID 555081.1]
Conflict Resolution Manager Shows Target Node/Queue Unavailable [ID 732709.1]
Concurrent Managers Do Not Start After Cloning Nodes Not Updated In Conc_queues [ID 466532.1]
Summary of Possible Reasons and Solutions for the Problem Where All Concurrent Requests Stuck in Pending Phase [ID 182154.1]
Output Post Processor is Down with Actual Process is 0 And Target Process is 1 [ID 858813.1]

Using Load-Balancers with Oracle E-Business Suite Release 12 [ID 380489.1]
Documentation For Specific Load Balancer Hardware [ID 727171.1]
Sharing The Application Tier File System in Oracle E-Business Suite Release 12 [ID 384248.1]
Add new node to application ---- 384248.1






Sunday, December 2, 2012

Release 12 File System Changes : R12 Vs 11i [ID 433111.1]


Here, you will find a ready reckoner for the important File system and Environment changes that have taken place between 11i and R12:

File System
 File
Release 12
Oracle Applications 11i
Environment Source file
APPS<SID>_<hostname>.env
APPSORA.env
Context File (middle tier)
$INST_TOP/appl/admin/$TWO_TASK_<hostname>.xml
$APPL_TOP/admin/$TWO_TASK.xml
tnsnames.ora (OH)
$INST_TOP/ora/10.1.2/network/admin
$ORACLE_HOME/network/admin/<CONTEXT>
listener.ora
$INST_TOP/ora/10.1.2/network/admin
$ORACLE_HOME/network/admin/<CONTEXT>
appsweb.cfg
$INST_TOP/ora/10.1.2/forms/server
$OA_HTML/bin
tnsnames.ora (Apache)
$INST_TOP/ora/10.1.3/network/admin
$IAS_ORACLE_HOME/network/admin/<CONTEXT>
zone.properties
$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/oa_servlets/orion-web.xml  and  .../oacore/html/orion-web.xml
(Same file located in both directories)
$IAS_ORACLE_HOME/Apache/Jserv/etc
jsev.properties
$INST_TOP/ora/10.1.3/opmn/conf/opmn.xml
$IAS_ORACLE_HOME/Apache/Jserv/etc
httpd.conf
$ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf
$IAS_ORACLE_HOME/Apache/Apache/conf
apps.conf
$ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf
$IAS_ORACLE_HOME/Apache/Apache/conf
formservlet.ini
$ORA_CONFIG_HOME/10.1.2/forms/server/default.env
$IAS_ORACLE_HOME/Apache/Jserv/etc
topfile.txt
$APPL_CONFIG_HOME/admin
$APPL_TOP/admin
adovars.env
$APPL_CONFIG_HOME/admin
$APPL_TOP/admin
adjborg2.txt
$APPL_CONFIG_HOME/admin
$APPL_TOP/admin
SSL Certificates
$INST_TOP/certs
$COMMON_TOP/admin/certs
AD scripts logs
$LOG_HOME/appl/admin/log 
$COMMON_TOP/admin/log/<SID_hostname>
Concurrent Request logs
 $APPLCSF
$APPLCSF
Apache logs
 $LOG_HOME/ora/10.1.3/Apache 
 $IAS_ORACLE_HOME/Apache/Apache/logs
Jserv logs
$LOG_HOME/ora/10.1.3/j2ee
$IAS_ORACLE_HOME/Apache/Jserv/logs
javacache.log
$LOG_HOME/appl/rgf
$COMMON_TOP/rgf/<SID_Hostname>




Environment variables 
Variable
Release 12
Oracle Applications 11i
APPL_TOP
$HOME/apps/apps_st/appl
$HOME/<SID>appl
COMMON_TOP
$HOME/apps/apps_st/comn
$HOME/<SID>comn
ORACLE_HOME (applmgr)
$HOME/apps/tech_st/10.1.2
$HOME/<SID>ora/8.0.6
IAS_ORACLE_HOME
$HOME/apps/tech_st/10.1.3
$HOME/<SID>ora/iAS
ORACLE_HOME (oracle)
$HOME/db/tech_st/10.2.0
$HOME/<SID>db/10.2.0
ORADATA
$HOME/db/apps_st/data
$HOME/<SID>data
JAVA_TOP, OA_JAVA
$COMMON_TOP/java/classes
$COMMON_TOP/java
OA_HTML
$COMMON_TOP/webapps/oacore/html
$COMMON_TOP/html
FND_SECURE
$INST_TOP/appl/fnd/12.0.0/secure
$FND_TOP/secure/<SID>
ADMIN_SCRIPTS_HOME
$INST_TOP/admin/scripts
$COMMON_TOP/admin/scripts/<SID>
LOG_HOME
$INST_TOP/logs
-
FORMS_WEB_CONFIG_FILE
$INST_TOP/ora/10.1.2/forms/server/appsweb.cfg
-
AF_JLIB
$COMMON_TOP/java/lib
-
JAVA_BASE
$COMMON_TOP/java
-
INST_TOP
$HOME/inst/apps/<CONTEXT>
-
ORA_CONFIG_HOME
$INST_TOP/ora
-
APPLCSF
$LOG_HOME/appl/conc
$COMMON_TOP/admin

EBS APPS user locked



Error:
ORA-28000: the account is locked --adcfgclone.pl appsTier  else some other cases

++++++++++++++++++++++++++++++++++
Check the APPSUSR account status.

Login as SYSDBA

SQL> conn /as sysdba

Check the APPSUSR account status

SQL>select * from user_astatus_map;

SQL>select profile,username, account_status, to_char(lock_date,'dd-mm-YY HH:MI'),  expiry_date  from dba_users  where username = '&user';
SQL> select account_status,to_char(lock_date,'DD-MON-YYYY HH24:MI:SS'),profile from dba_users where username='&user';

SQL> SELECT username, account_status FROM dba_users WHERE username= ‘APPS’;
SQL>set pagesize 300
col profile format a25
col limit format a10
select PROFILE, RESOURCE_NAME, RESOURCE_TYPE, LIMIT from dba_profiles  where profile='AD_PATCH_MONITOR_PROFILE';

SQL> select profile , resource_name, limit from dba_profiles where resource_name like '%FAIL%';
SQL> select username, profile from dba_users where username='APPS';
SQL> select username, profile from dba_users where username='APPLSYS'; 


++++++++++++++ Solution A :++++++++++++++++++++++++++++++

SQL> alter profile AD_PATCH_MONITOR_PROFILE limit failed_login_attempts unlimited;
SQL >alter profile default limit failed_login_attempts 3 password_lock_time 1/1440; -->Limited
SQL> alter profile default limit failed_login_attempts unlimited password_lock_time 1/1440;
SQL> alter user apps account unlock;

++++++++++++++ Solution B :++++++++++++++++++++++++++++++
Create a profile.

SQL> CREATE PROFILE APPS_DEFAULT LIMIT
 COMPOSITE_LIMIT UNLIMITED
 SESSIONS_PER_USER UNLIMITED
 CPU_PER_SESSION UNLIMITED
 CPU_PER_CALL UNLIMITED
 LOGICAL_READS_PER_SESSION UNLIMITED
 LOGICAL_READS_PER_CALL UNLIMITED
 IDLE_TIME UNLIMITED
 CONNECT_TIME UNLIMITED
 PRIVATE_SGA UNLIMITED
 FAILED_LOGIN_ATTEMPTS UNLIMITED
 PASSWORD_LIFE_TIME UNLIMITED
 PASSWORD_REUSE_TIME UNLIMITED
 PASSWORD_REUSE_MAX UNLIMITED
 PASSWORD_VERIFY_FUNCTION NULL
 PASSWORD_LOCK_TIME UNLIMITED
 PASSWORD_GRACE_TIME UNLIMITED;

Profile created.

Assign the newly created profile to the user as default profile.

SQL> ALTER USER appusr PROFILE appusr_default;

Unlock the user account:

SQL> ALTER USER apps ACCOUNT UNLOCK;

+++++++++++++++++++ Metalink id  ID 1114244.1 For Reference +++++++++++++++++++




APP-FND-00003 error for FNDCPASS

Error:

APP-FND-00003: Password must not contain repeating characters

Solution:


profile option - Signon Password Hard To Guess - and set it to "No" to allow repeating characters in  password.


Tuesday, November 6, 2012

How to Cancel a Concurrent Request Stuck in the Queue

Cause:
Tried to Cancel a concurrent request. Used the "Cancel Request" button from the Administer > Concurrent > Manager form.
 Got the following message:

Request xxxxxx can no longer be cancelled. The Concurrent Manager Process that was running this request has exited abnormally. The ICM will mark this request as completed with error.

Solution :
 
SQL> UPDATE fnd_concurrent_requests
     SET phase_code = 'C', status_code = 'X'
     WHERE request_id = '<request id>';
     commit;

How to Cancel a Concurrent Request Stuck in the Queue? [ID 749748.1]
ANALYZEREQ.SQL Detailed Analysis of One Concurrent Request (Release 11 and up) [ID 134035.1]

Friday, November 2, 2012

Configuration in a DMZ / External Node

To Configure  External Node :
Profile : System
Select  Server
Site level  Profile (Node Trust Level ) àfind  -- >Site Should be  Normal  --- Server ---(external)
1.  Login to Oracle E-Business Suite as sysadmin user using the internal URL
2.  Select System Administrator Responsibility
3.  Select Profile / System
4.  From the ‘Find system profile option Values’ window, select the server that you want to make external
5.  Query for %NODE%TRUST%. You will see a profile option named ‘Node Trust Level‘. The value for this profile option at site level will be Normal. Leave this setting as is
6.  Set the value of this profile option to External at the server level (not site level). The site-level value should remain Normal.

Note:
Please check  Note Id : 384248.1
E-BS R12 Configuration in a DMZ [ID 380490.1]
Tips and Queries for Troubleshooting Advanced Topologies [ID 364439.1]