Total Pageviews

Sunday, October 26, 2014

OAM 11gr2PS2 error OAMSSA-02038 Failed to put session on queue QSize:11, upperLimit:100000

when you are doing load test and at OAM Server you see high CPU and below error.

Host hostname 
Host IP Address host IP
User <anonymous> 
Thread ID WriteBehindThread:CacheStoreWrapper(oracle.security.am.engines.sme.mapimpl.db.DbOraSmeStore):DistributedCache 
ECID 390c7670d8c160f7:-1331fb74:14901d0b714:-8000-0000000000000003 

Message Failed to put session af40b0e1-9906-447c-87f6-af92e28cda9b|08Nq21UOp50iJyNpbNY2uIFlsuk= on queue QSize:11, upperLimit:100000, recoveryFactory:0.8, enabled:false, previousWorkValue:171314, perviousWorkValue:1414210014497, P:0.3, I:0.1, integrationWindow:150000. 

and

Failed to put session on queue QSize:11, upperLimit:100000 


Solution:

it is a bug. The fix is adding below setting under oam-config.xml file
 

<Setting Name="IntegrationPercent" 
@ Type="xsd:integer">0</Setting> 

install Coherence 3.7.1 at OAM 11gr2PS1


Upgrade instructions to install Coherence 3.7.1.x on OAM 11gr2PS1:
  1. Download recommended coherence patch from Oracle
  2. Shutdown all the servers.
  3. On the each Server including the admin server, do the following.
    1. Unzip the contents of the patch to tmp folder.
    2. Backup the jar that exists at the location  MW_HOME/oracle_common/modules/oracle.coherence/coherence.jar
    3. copy the jar tmp/coherence/lib/coherence.jar to the folder  MW_HOME/oracle_common/modules/oracle.coherence
    4. Backup the folder /config and all its nested contents.
  4. Start the Admin Server
  5. Log into weblogic console
  6. Lock configuration
  7. Select Deployments and locate the coherence library
  8. Select the library and press the Delete button.
  9. Release Configuration and apply changes.
  10. Lock configuration
  11. Select Deployments and press the Install button.
  12. Select the coherence jar in the file path. Ensure that the library name is "coherence". Hit the next button till you finish deployments.
  13. Save and release the configuration.
  14. Stop And Start the Admin Server. Verify the the oam_admin deployment is started.

Steps to recovery on failure to install.
  1. Stop all servers.
  2. Restore the /config folder.
  3. Restore the coherence.jar.
  4. Restart.

Saturday, October 25, 2014

oam performance troubleshooting check with strace command

if you want to troubleshoot performance issue at OAM. read below oracle guideline to figure out the issue
In order to confirm if the process is indeed blocking on reading from /dev/random, collect an strace output from the process while the issue is taking place (run as root), i.e:  
# strace -rt -o strace.out -p <process_id>


This will let us know how many open system calls are made to dev/random 

Once it is ascertained that most number of open system calls are made to dev/random we should either increase the entropy of the environment or we can change the PRNG (Pseudo Random Number Generator) for that environment. 

In order to generate random numbers that are not predictable, SSL security code relies upon "entropy" on a machine. Entropy is activity such as mouse movement, disk IO, or network traffic. If entropy is minimal or non-existent, then the random number generator will be slow, and security operations may time out. This may disrupt activities such as booting a managed server into a domain using a secure admin channel. This issue generally occurs for a period after startup. Once sufficient entropy has been achieved on a JVM, the random number generator should be satisfied for the lifetime of the machine. 

There are two possible options at hand to resolve the issue: 

1.) Find ways to increase the entropy on the system permanently (System Administrator needs to be engaged) -> try increasing the entropy on the problematic system (by increasing IO activity on the system). 

2.) Use faster but less secure random number generator "/dev/urandom" using following JAVA System 

Please add the following Java command line (JAVA_OPTIONS) : 
-Djava.security.egd=file:/dev/urandom 
OR 
-Djava.security.egd=file:/dev/./urandom 
-Djava.security.egd=file:/dev/./urandom

Note that  "Option-2" is not recommended in Production Environment.

OAM11gR2, restart of oam server after installation and configuration throws exception java.lang.Exception: Unsupported session store version detected. Required "11.1.2.0.0" but found "11.1.1.5.0"

[oam_server1] [ERROR] [] [oracle.oam.engine.session] [tid: DistributedCache] [userId: <anonymous>] [ecid: 0000JsA23E8B5EoLKUG7ye1HQkGY000003,1:30972] [APP: oam_server#11.1.2.0.0] Unsupported session store version detected. Required "11.1.2.0.0" but found "11.1.1.5.0".[[
java.lang.Exception: Unsupported session store version detected. Required "11.1.2.0.0" but found "11.1.1.5.0".


RCU 11.1.1.5.0 was used instead of RCU 11.1.2.0.0 before installation OAM server

SOLUTION

1. Drop he RCU for 11.1.1.5.0 and create a new schema with RCU 11.1.2.0.0 before installing OAM11gR2.

OR

2. Create a new Schema with 11.1.2.0.0 RCu with new schema owner.

OAM 11g and OIF integration setps registerOIFDAPPartner command fails

Error

registerOIFDAPPartner command fails
wls:/oam_domain/serverConfig> registerOIFDAPPartner(keystoreLocation="<MW_HOME>/10.3.3/user_projects/domains/oam_domain/keystore",logoutURL="http://logouturl",rolloverTime="500")
Registration Failed


Solution:
You may not set the environment variables correctly for the wlst.sh

run commands to set up your environment variables.

[orasystemsusa@idm bin]$ . ./setDomainEnv.sh

cd /u01/oid/oid_home/fed/scripts
[orasystemsusa@idm scripts]$ . ./setOIFEnv.sh

cd /u01/oim/oim_home/common/bin
[orasystemsusa@idm bin]$ ./wlst.sh


Monday, October 20, 2014

after implementing Chain Authentication, error IdentityProviderException: OAMSSA-20027: Could not get user "


Oracle Access Manager  11.1.1.5.0

Implemented chain authentication in OAM 11gR1. After that, you observed OAMSSA-20027 error in oam-diagnostic log eventhough users can login without issue. you are just seeing these errors at the diagnostic logs.

[2012-09-09T12:11:03.410-07:00] [OAM_Server2] [ERROR] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 004mKaQ7yjcBp2e_p_d9iY0002dv00000e,0:1] [APP: oam_server] [URI: /oam/server/auth_cred_submit] Exception occurred when authenticating the user against UserIdentityStore - [[
oracle.security.am.engines.common.identity.provider.exceptions.IdentityProviderException: OAMSSA-20027: Could not get user : <Username>.
at oracle.security.am.engines.common.identity.provider.impl.UserProviderImpl.getUser(UserProviderImpl.java:1309)
at oracle.security.am.engines.common.identity.provider.impl.UserProviderImpl.locateUser(UserProviderImpl.java:1093)
at oracle.security.am.engines.common.identity.provider.impl.IdentityProviderImpl.locateUser(IdentityProviderImpl.java:893)
at oracle.security.am.engines.common.identity.provider.impl.OracleUserIdentityProvider.locateUser(OracleUserIdentityProvider.java:465)
at oracle.security.am.plugin.authn.UserIdentificationPlugIn.process(UserIdentificationPlugIn.java:477)
at oracle.security.am.engine.authn.internal.executor.PlugInExecutor.execute(PlugInExecutor.java:179)
at oracle.security.am.engine.authn.internal.executor.AuthenticationSchemeExecutor.execute(AuthenticationSchemeExecutor.java:102)
at 


Reason


The chain authentication has 2 steps:
    Step1 - verified against ID Store 1 
    Step2 - verified against ID Store 2
In the event where the user only exist in ID Store2, the error will be thrown after executing step1, before moving to step2. 
Solution:
 
this error can be ignored because if user doest exists in one ID store it is present at other ID Store. it is just an information message.

 
 

Saturday, October 18, 2014

steps for installing Customization installer for Jdeveloper 11g


Download OIM installer Jdeveloper Extenstion from Oracle site make sure version is correct as per your OIM release.

Save at local drive and Extract it

Start jdeveloper as a administrator

Go to help

Select Check for Updates

Click Next
Select Install from Local File and select zip file location you extracted previously.

Click Next

at summary page Click Finish

It will say to finish installing updates Jdeveloper needs to restart  

click Yes

After Restart

Go to Tools

OIM Customization Installer à Configure

Provide required parameters and click  Test Connection and verify.

Save the connection information.