Friday, February 28, 2014

SENDMAIL error "Collect:Cannot Write /jbdjbjbdj queueup:cannot create queue file ckdmkcd Permission denied




A strange error in the server and that too all of a sudden we are getting any none of the mails are sent from the server. After googling in internet found a strange answer and it worked too:

1) Login as root
2) cd /usr/sbin
3) ll sendmail 

4) cmod 4755  /usr/sbin/sendmail 

5) Recheck the script..and it s working....

Friday, February 21, 2014

How To make the changes in System Datastore if there any problems in OID Datastore to login




To Revert back the System Datastore, if the OID Datasotre was unable to login into OAMCONSOLE, Please follow the procedure:


i) cd $MW_HOME/iam/common/bin

ii) wlst.sh


Type help() for help on available commands

wls:/offline> connect()

Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://erptest.xxxxx.com:7002
Connecting to t3://erptest.xxxxx.com:7002 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/IDMDomain/serverConfig>

/*Now Enter the following to make changes in DataStore*/


wls:/IDMDomain/serverConfig>displayUserIdentityStore('UserIdentityStore1')

/*This will show the current System Datastore*/

wls:/IDMDomain/serverConfig>editUserIdentityStore(name="UserIdentityStore1",isPrimary="true",isSystem="true") 

/*This will change the Datastore to the Default where weblogic user can able to login )

wls:/IDMDomain/serverConfig>exit()

Restart all Managed Services and try to loin as weblogic into OAMCONSOLE and make necessary changes to OID Datastore.





Thursday, February 20, 2014

How to enable TRACE32 for OAM



How to Enable the TRACE32 for OAM



To Enable the TRACE32 for OAM related errors, please follow the procedure:


a) clear all the files /tmp or /usr/tmp
b) $IAM_HOME or $OAM_HOME/common/bin
c) execute the script wlst.sh
            The above command will provide the prompt as

                 wls:/offline> 

Now type connect() and enter the weblogic username and Password along with the url to which the console will be connected:

wls:/offline> connect()
Please enter your username :weblogic
Please enter your password :

Please enter your server URL [t3://localhost:7001] :t3://erptest.xxxx.com:7002

Connecting to t3://erptest.xxxxx.com:7002 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.


wls:/IDMDomain/serverConfig> domainRuntime()

Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)

/* This will show the runtime logers and tracelevel)*/

wls:/IDMDomain/domainRuntime> listLoggers(pattern="oracle.oam.*",target="oam_server1")
------------------------------------------+-----------------
Logger                                    | Level
------------------------------------------+-----------------
oracle.oam                                | <Inherited>
oracle.oam.admin.foundation.configuration | <Inherited>
oracle.oam.agent-default                  | <Inherited>
oracle.oam.audit                          | <Inherited>
oracle.oam.binding                        | <Inherited>
oracle.oam.certvalidation.mbeans          | <Inherited>
oracle.oam.commonutil                     | <Inherited>
oracle.oam.config                         | <Inherited>
oracle.oam.controller                     | <Inherited>
oracle.oam.default                        | <Inherited>
oracle.oam.diagnostic                     | <Inherited>
oracle.oam.engine.authn                   | <Inherited>
oracle.oam.engine.authz                   | <Inherited>
oracle.oam.engine.policy                  | <Inherited>
oracle.oam.engine.session                 | <Inherited>
oracle.oam.engine.sso                     | <Inherited>
oracle.oam.engine.token                   | <Inherited>
oracle.oam.extensibility.lifecycle        | <Inherited>
oracle.oam.foundation.access              | <Inherited>
oracle.oam.idm                            | <Inherited>
oracle.oam.install                        | <Inherited>
oracle.oam.install.mbeans                 | <Inherited>
oracle.oam.plugin                         | <Inherited>
oracle.oam.proxy.oam                      | <Inherited>
oracle.oam.proxy.osso                     | <Inherited>
oracle.oam.user.identity.provider         | <Inherited>

wls:/IDMDomain/domainRuntime>setLogLevel(target='oam_server1',logger='oracle.oam',level='TRACE:32',persist="1",addLogger=1)

wls:/IDMDomain/domainRuntime> listLoggers(pattern="oracle.oam.*",target="oam_server1")
------------------------------------------+-----------------
Logger                                    | Level
------------------------------------------+-----------------
oracle.oam                                | TRACE:32
oracle.oam.admin.foundation.configuration | <Inherited>
oracle.oam.agent-default                  | <Inherited>
oracle.oam.audit                          | <Inherited>
oracle.oam.binding                        | <Inherited>
oracle.oam.certvalidation.mbeans          | <Inherited>
oracle.oam.commonutil                     | <Inherited>
oracle.oam.config                         | <Inherited>
oracle.oam.controller                     | <Inherited>
oracle.oam.default                        | <Inherited>
oracle.oam.diagnostic                     | <Inherited>
oracle.oam.engine.authn                   | <Inherited>
oracle.oam.engine.authz                   | <Inherited>
oracle.oam.engine.policy                  | <Inherited>
oracle.oam.engine.session                 | <Inherited>
oracle.oam.engine.sso                     | <Inherited>
oracle.oam.engine.token                   | <Inherited>
oracle.oam.extensibility.lifecycle        | <Inherited>
oracle.oam.foundation.access              | <Inherited>
oracle.oam.idm                            | <Inherited>
oracle.oam.install                        | <Inherited>
oracle.oam.install.mbeans                 | <Inherited>
oracle.oam.plugin                         | <Inherited>
oracle.oam.proxy.oam                      | <Inherited>
oracle.oam.proxy.osso                     | <Inherited>
oracle.oam.user.identity.provider         | <Inherited>
wls:/IDMDomain/domainRuntime>

wls:/IDMDomain/domainRuntime> exit()


Exiting WebLogic Scripting Tool.

TRACE entries written to the file $OAM_DOMAIN/servers/oam_server1/logs/oam_server1-diagnostic.log