Total Pageviews

Tuesday, November 22, 2016

getting keystore entries OAM(to validate if keystore is configured correctly)





 The credential must now be obtained through the EM console mbean browser:

Go to EM console
Navigate to Farm_base_domain => WebLogic Domain => <domain name>
Right click and select "System mbean browser"
search for JpsCredentialStore or navigate to application defined mbeans =>
com.oracle.jps => Domain: <domain name> => JpsCredentialStore => JpsCredentialStore
Click the 'operations' tab in the right hand window
Click getPortableCredential
For Parameter 1 enter OAM_STORE and for Parameter 2 enter jks
Click Invoke

you will password copy the password in a notepad you have to enter when you run below command


keytool -list -v -keystore D:\Oracle\domain\iam_domain\config\fmwconfig\.oamkeystore -storetype JCEKS





Thursday, November 17, 2016

search root ACI command using windows





D:\Oracle\Middleware\instances\OUD\bat>ldapsearch -h hostname -p 4444  -b c=US   -w password "(aci=*)" aci

Sunday, November 13, 2016

2012 windows error while starting weblogic server first time






<Warning> <org.eclipse.persistence.session.zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/oam_admin_11.1.

2.0.0/gp8uk/APP-INF/lib/entity-db.jar!/_OAM> <BEA-000000> <

Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DatabaseException

Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_OAM.PK_ENTITIES) violated





Error Code: 1

Call: INSERT INTO ENTITIES (ID, CREATE_TIME_STAMP, CREATOR, DESCRIPTION, JOURNAL_ID, MODIFIER, MODIFY_TIME_STAMP, NAME, NAME_PATH, TAG, TRANSACTION_ID, TYPE_NAMES, UNIQUE_ID, VERSI

ON) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

        bind => [14 parameters bound]

Query: InsertObjectQuery(oracle.security.am.foundation.entity.admin.provider.db.beans.Entities@640d67a7)



oracle.security.am.foundation.mapimpl.coherence.CoherenceMapImpl$ConfigListener.configurationChanged(CoherenceMapImpl.java:1259)

        at oracle.security.am.admin.config.BasicFileConfigurationStore$ListenerDispatcher.run(BasicFileConfigurationStore.java:1110)

Caused By: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_OAM.PK_ENTITIES) violated



 SOLUTION:




This is a known issue and the solution is
to edit file setDomainEnv.cmd and
 add a java option "-DDISABLE_CONFIG_ENTITY=true"  at end of the file and search
set JAVA_OPTIONS and add below

set JAVA_OPTIONS=%JAVA_OPTIONS% -DDISABLE_CONFIG_ENTITY=true


windows 2012 wlst nmEnroll error while enrolling new domain


command and Windows 2012 server

nmEnroll(domainDir='D:\Oracle\app\domain\iam_domain',nmHome='D:\Oracle\app\Middleware\wlserver_10.3\common\nodemanager')


ERROR
WLSTException: Error occured while performing nmEnroll : Problem enrolling the machine. : D:\Oraclepp\domain\iam_domain\security\SerializedSystemIni.dat (The filename, directory name, or volume label syntax is incorrect)

Solution:
I Have resolved this error after looking into domain configuration file <DOMAIN_HOME>/config/config.xml

i searched my machine name that i was trying to enroll and found the path in "/" slashes instead of "Windows" "\" 
so i ran command at windows with "/" slashes and successfully enroll the domain


nmEnroll(domainDir='D:/Oracle/app/domain/iam_domain',nmHome='D:/Oracle/app/Middleware/wlserver_10.3/common/nodemanager')



Friday, November 11, 2016

windows 2012 security store error configureSecurityStore.py


On Windows:
MW_HOME\oracle_common\common\bin\wlst.cmd IAM_HOME\common\tools\configureSecurityStore.py -d DOMAIN_HOME -c 
IAM -p opss_schema_password -m create


Error:

Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')Problem invoking WLST - Traceback (innermost last):

Solution:

Use the following steps to implement the workaround:
1. Edit the file "lib/javashell.py" which exists under <weblogic home>\common\wlst\modules\jython-modules.jar.
2. Under "osTypeMap" variable add the operating system in question say "Windows 2003" or "Windows Server 2012".
3. Restart the weblogic server once the change is done.4. Execute the command after the server is restarted.


Others:

in order to extract jython-modules.jar. use below command at windows

jar xf jython-modules.jar

after modifying lib/javashell.py (add 'Windows Server 2012' after other operating systems name) save it and jar it again using below command

jar cvf jython-modules.jar Lib\ META-INF\




Sunday, November 6, 2016

The JDK wasn't found in directory startNodeManager.sh script so that the JAVA_HOME



The JDK wasn't found in directory
Please edit the startNodeManager.sh script so that the JAVA_HOME
variable points to the location of the your JDK

or if you get similar error for startWeblogic.sh


solution

change JDK JAVA_HOME location at commonENV.sh



Saturday, November 5, 2016

all older jdk jre version can be download from oracle website by providing below document id



if you need any older version of jdk jre for linux solaris widows or any other operating system just search below document number at oracle support website and you will get all the older versions link to download older versions



All Java SE Downloads on MOS ( Doc ID 1439822.1 ).

To change JDK for OAM server or any weblogic server please use Doc ID 1309855.1

How to Upgrade the JDK Used by Oracle WebLogic Server 11g to a Different Version ( Doc ID 1309855.1 )