Posts

Showing posts with the label Weblogic

WebLogic - Add a 3rd Server to an existing domain

Image
1.        Login to the weblogic console and go to Environment-> Machines.               Click “Lock & Edit” Click create New 1.        Click Next and fill the required details. Type: Plain Listen Address: 10.10.10.10   Listen Port: 5556 1.        Click Finish to create the machine. Next, go to Environment -> Servers. 1.        Click “Lock & Edit” 2.        Select oam_server2 and click Clone 1.        Fill the details as below 1.        Click OK 2.        After creation the details should look like below a.        Name oam_server3 b.        Machine OAM_Machine3 1.   ...

weblogic user password decrypt script and code

./wlst.sh /tmp/PasswordDecryptor.py /Oracle/Middleware/user_projects/domains/DomainName  {AES}YJKUITRFGTYUHH45YHHGGYFV879655HYU\= import os import weblogic.security.internal.SerializedSystemIni import weblogic.security.internal.encryption.ClearOrEncryptedService def decrypt(domainHomeName, encryptedPwd):     domainHomeAbsolutePath = os.path.abspath(domainHomeName)     encryptionService = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domainHomeName)     ces = weblogic.security.internal.encryption.ClearOrEncryptedService(encryptionService)     clear = ces.decrypt(encryptedPwd)     print "RESULT:" + clear try:     if len(sys.argv) == 3:         decrypt(sys.argv[1], sys.argv[2])     else:         print "INVALID ARGUMENTS"         print " Usage: java weblogic.WLST decryptP...

Mandatory Oracle Weblogic Server 10.3.6 patches for OIAM R2 PS3 (11.1.2.3.0 )

Image
Below is the list of the mandatory patch number required for the oracle weblogic 10.3.6 for the OIAM to work correctly later on

Weblogic AdminServer startup permission issues

Recently while working with webogic, I encountered couple of start issues pointing to all kind of permission issue, so if you are getting the same ..  the fix for them is as below This can happen after a patch or major upgrade of weblogic or any fusion middleware component. wlserver_10.3/server/lib/weblogic.policy grant codeBase "file:/MW_HOME/patch_wls1036/patch_jars/*" { permission java.security.AllPermission; }; grant codeBase "file:/MW_HOME/patch_ocp371/patch_jars/*" { permission java.security.AllPermission; }; grant codeBase "file:/MW_HOME/wlserver_10.3/common/lib/*" {   permission java.security.AllPermission; }; grant codeBase "file:/MW_HOME/wlserver_10.3/server/lib/*" {   permission java.security.AllPermission; }; config/fmwconfig/system-jazn-data.xml [OIM, OAM etc ] <grant>   <grantee>     <codesource>       <url>file:${wls.home}/../../patch_wls1036/patch_jars/*</url>     </codesource> ...

Create Weblogic Domain Silently

In this post, I will talk about silently creating a weblogic domain after the weblogic install. You will need existing wlst.sh and the python script to do so. /u01/Oracle/Middleware/Oracle_IDM1/common/bin/wlst.sh /u01/tmp/create_domain.py > /u01/logs/create_domain.log ---------------------------------SAMPLE--CREATE-DOMAIN-SCRIPT-------------------------- #!/usr/bin/python import os, sys # Replace MW_HOME with Middleware Home Path readTemplate(r'/u01/oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar') cd(r'/Security/base_domain/User/weblogic') # Enter Password for Weblogic Admin User cmo.setPassword('password') cd(r'/Server/AdminServer') cmo.setName('AdminServer') # Enter Weblogic Listen Port No. cmo.setListenPort(14000) # Enter HostName cmo.setListenAddress('localhost') create('AdminServer','SSL') cd('SSL/AdminServer') cmo.setEnabled(true) # Enter Weblogic SSL Listen Port No. cmo.setListenPort(14...