Followers

Wednesday, October 21, 2015

Difference between messaging bridge and foreign JMS server

Both of the messaging bridge and the foreign JMS server allow you to receive/send messages via a WLS server to a JMS destination that is running on a remote WLS server/cluster/domain or a 3rd party messaging product.

The differences are:
1. Messaging bridge is sort of a store-and-forward solution; messages are stored in the source destination and are forwarded to the target destination, while foreign JMS server directly accesses the remote destination.

2. Messaging bridge introduces one extra hop; messages are sent to and stored in a destination (source destination) and forwarded to another destination (target destination), while foreign JMS server directly accesses the remote destination;

3. Usually one messaging bridge is used in single direction; applications send messages to the source destination and receive messages from the target destination, while foreign jms server is bi-directional; application can send and receive from the same foreign JMS destination.

If you don't need store-and-forward capability, Foreign JMS server is more desirable and easy to configure. You may consider use the messaging bridge if you need to handle disconnected case, say you want to be able to send messages when the remote destination is down. If both local and remote servers are WLS 9.0 and later, you could also consider using store-and-forward feature, instead of the messaging bridge.

Monday, June 8, 2015

Adding Gropus to GlobalRoles using WLST

WLST script 

connect('weblogic','weblogic1','t3://192.168.195.129:8001') 
serverConfig()
cd('/SecurityConfiguration/pocdomain/Realms/myrealm/RoleMappers/XACMLRoleMapper')
cmo.setRoleExpression(",'Admin','Grp(EnvAdmins)|Grp(Administrators)')

How to find 12c RCU profile(Large/Medium/Small)

If you want to find RCU category /profile in 12c please run the below command in SOAINFRA schema

select * from version

Tuesday, May 5, 2015

Error [Management:141191]The prepare phase of the configuration update failed with an exception

An error occurred during activation of changes, please see the log for details.
Message icon – Error [Management:141191]The prepare phase of the configuration update failed with an exception:
Solutions-
-> First thing never try to delete any managed server which is up and running.First shut down and then closed it.

Follow below steps to get rid of this error

-> Stop the Admin Server & Managed Servers which is up and running.
-> On your Admin Server cd to $WLS_HOME\user_projects\domains\base_domain.
-> Delete all files in pending and servers/domain_bak directory.
-> Start the Admin Server & Managed Servers.
-> Login the weblogic Admin Console and click on Release Configuration button.
-> Perform the same changes now.

Monday, April 27, 2015

How to Change the OPSS Schema Password

1- Stop all WLS servers

2- Change the DATA source password with WLST (offline)

2.1- Run  $MW_HOME/oracle_common/common/bin/wlst.sh to set the wlst environment.

2.2- Use the readDomain WLST command to read the configuration of the domain in offline mode,
wls:/offline>readDomain (‘<WLS_DOMAIN_HOME_PATH>’)
Example:

wls:/offline> readDomain('/opt/Middleware/user_projects/domains/soa_domain')
2.3- Use cd(‘JDBCSystemResource/<OPSSDS name>/JdbcResource/<OPSSDS name>/JDBCDriverParams/NO_NAME_0’) 
Where "OPSSDS name" is data source name. The data source name can be found in DOMAIN_HOME/config/jdbc/opss-jdbc.xml.
Example:

wls:/offline>cd('JDBCSystemResource/OPSSDS/JdbcResource/OPSSDS/JDBCDriverParams/NO_NAME_0')
2.4- The WLST set(‘<parameter_name>’,’<parameter_value>’) is used to change a parameter offline. To change the password ,  set(‘PasswordEncrypted’,’<password_value>’)
Example:

wls:/offline/soa_domain/JDBCSystemResource/OPSSDS/JdbcResource/OPSSDS/JDBCDriverParams/NO_NAME_0>set('PasswordEncrypted','welcome2')
2.5- After all the changes to the parameters are done, the updateDomain() command needs to run to save them to the domain configuration:
Example:

wls:/offline/soa_domain/JDBCSystemResource/OPSSDS/JdbcResource/OPSSDS/JDBCDriverParams/NO_NAME_0>updateDomain()
2.6- Run  exit() to exit WLST. 
Example:

wls:/offline/soa_domain/JDBCSystemResource/OPSSDS/JdbcResource/OPSSDS/JDBCDriverParams/NO_NAME_0>exit()
2.7- Run exit() to exit WLST.
Example:

wls:/offline/soa_domain/JDBCSystemResource/OPSSDS/JdbcResource/OPSSDS/JDBCDriverParams/NO_NAME_0>exit()
Later:

3- Change the OPSS schema password in the database

4- The next steps are required if there is a bootstrap credential map specified in the "props.db.1" section in jps-config.xml
Go to the oracle_common\common\bin>wlst.sh

5- Run modifyBootStrapCredential(jpsConfigFile='./jps-config.xml', username='<schema_owner>', password='<db user password>')
Example:

modifyBootStrapCredential(jpsConfigFile='/opt/Middleware/user_projects/domains/soa_domain/config/fmwconfig/jps-config.xml', username='DEV_OPSS', password='welcome1')

Enable coherence for SOA Servers

Please follow the below steps to enable coherence for SOA Servers.

ms01- 

hostname=soaserver1.us.com
portnumber=50561

ms02- 

hostname=soaserver2.us.com
portnumber=50562

Please add the fololwoiing enttires into server start arugemtns 

ms01--> configuration --> ServerStart --> Arguments 


ms01 

-Dtangosol.coherence.wka1=soaserver1.us.com -Dtangosol.coherence.wka2=soaserver2.us.com -Dtangosol.coherence.localhost=soaserver1.us.com -Dtangosol.coherence.wka1.port=50561 -Dtangosol.coherence.wka2.port=50562 -Dtangosol.coherence.localport=50561 -Dtangosol.coherence.log=/opt/domains/soa_domain/coherence_ms01.log -Dtangosol.coherence.log.level=9 

ms02--> configuration --> ServerStart --> Arguments 

ms02 

-Dtangosol.coherence.wka1=soaserver1.us.com -Dtangosol.coherence.wka2=soaserver2.us.com -Dtangosol.coherence.localhost=soaserver2.us.com -Dtangosol.coherence.wka1.port=50561 -Dtangosol.coherence.wka2.port=50562 -Dtangosol.coherence.localport=50561 -Dtangosol.coherence.log=/opt/domains/soa_domain/coherence_ms02.log -Dtangosol.coherence.log.level=9 

Tuesday, April 14, 2015

Reset the AdminServer Password in WebLogic 11g and 12c

If you forget the AdminServer password for your WebLogic 11g domain, you can reset it from the command line using the following process.

Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case my domain is called "ClassicDomain". Remember to change the value to match your domain.

export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/ClassicDomain
Shut down the WebLogic domain.

$ $DOMAIN_HOME/bin/stopWebLogic.sh
Rename the data folder.

$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old
Set the environment variables.

$ . $DOMAIN_HOME/bin/setDomainEnv.sh
Reset the password using the following command. Remember to substitute the appropriate username and password.

$ cd $DOMAIN_HOME/security
$ java weblogic.security.utils.AdminAccount <username> <password> .
Update the "$DOMAIN_HOME/servers/AdminServer/security/boot.properties" file with the new username and password. The file format is shown below.

username=<username>
password=<password>
Start the WebLogic domain.

$ $DOMAIN_HOME/bin/startWebLogic.sh

Tuesday, March 10, 2015

SOA 12c RCU Installation or SOA 12.1.1.3.0 RCU installation

In SOA 12c RCU binary file will come with installation itself.
Here is the RCU location.
ORACLE_HOME\oracle_common\bin>rcu.bat

i.e C:\Oracle\MiddlewareSOA_1213\oracle_common\bin>rcu.bat 

Open the command prompt with Administrator right navigate to rcu location.
C:\Oracle\MiddlewareSOA_1213\oracle_common\bin>rcu.bat





I


















In the welcome screen click on Next



















In 12c we have new option.
1       We can create repository if we have sys access
     We can create scripts and provide that scripts to DBA to run
    


















Provide DB information and click on Next 

Select Ignore if you are using XE Database.



















Select the schema and click on Next 

Click on Ok






















Provide the common password for all schemas or you can provide different password for each schema
click on Next


















Select database profile (small/medium/large) and click on Next 


















Create table spaces


















Click on create 


Saturday, February 21, 2015

how to drop SOA RCU schemas in oracle

Using the below command we can drop the RCU schemas with out running RCU.

Connect System User.And run the following commands.

DROP USER test_mds CASCADE; 
DROP USER test_soainfra CASCADE; 
DROP USER test_orabam CASCADE; 
DROP USER test_orasdpm CASCADE; 

Thursday, February 5, 2015

MDS Export using WLST

1. Launch Weblogic Scripting Tool:
Weblogic_HOME/common/bin>wslt.cmd
2. Connect to weblogic:
connect('weblogic','welcome1','t3://localhost:7001')
3. Verify the list of all available commands:
help(all)
4. List all applications:
listApplications()
5. Check the syntax of the export Metadata command:
help('exportMetadata')
6. Execute the export
exportMetadata(application='soa-infra', server='soa_server1', toLocation='c:\\export')
Please note that on Windows both
toLocation='c:\\export') and toLocation='c:\export') (where the difference is one or two slashes after 'c:') will work.
However, toLocation='c:\export\my_export') will fail with the following error:
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 237, in exportMetadata
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 733, in executeAppRuntimeMBeanOperation
  File "C:\WLS103~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 996, in saveStackAndRaiseException
  WLSTException: MDS-90035: The target directory or archive "c:   ar\export" for exporting metadata is
 invalid.MDS-91009: Operation "exportMetadata" failure. Use dumpStack() to view the full stacktrace.
But, toLocation='c:\\export\\my_export') will work fine

Tuesday, February 3, 2015

Not able to start AdminServer,Caused By: oracle.security.jps.JpsRuntimeException: JPS-00056: Failed to create identity store service instance idstore.ldap.provider:idstore.ldap. Reason: oracle.security.jps.JpsRuntimeException: JPS-00027: internal error You configured a generic WLS LDAPAuthenticator. The identity store type cannot be determined. Please choose an LDAP Authentication provider that matches your LDAP server.

Issue 

Not able to start AdminServer due to 

Caused By: oracle.security.jps.JpsRuntimeException: JPS-00056: Failed to create identity store service instance idstore.ldap.provider:idstore.ldap. Reason: oracle.security.jps.JpsRuntimeException: JPS-00027: internal error You configured a generic WLS LDAPAuthenticator.
The identity store type cannot be determined. Please choose an LDAP Authentication provider that matches your LDAP server.

####<Feb 3, 2015 12:51:27 PM CST> <Critical> <WebLogicServer> <localhost> <adminserver> <Main Thread> <<WLS Kernel>> <> <> <1422989487383> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-00056: Failed to create identity store service instance idstore.ldap.provider:idstore.ldap. Reason: oracle.security.jps.JpsRuntimeException: JPS-00027: internal error You configured a generic WLS LDAPAuthenticator.
The identity store type cannot be determined. Please choose an LDAP Authentication provider that matches your LDAP server.
weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-00056: Failed to create identity store service instance idstore.ldap.provider:idstore.ldap. Reason: oracle.security.jps.JpsRuntimeException: JPS-00027: internal error You configured a generic WLS LDAPAuthenticator.
The identity store type cannot be determined. Please choose an LDAP Authentication provider that matches your LDAP server.
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: oracle.security.jps.JpsRuntimeException: JPS-00056: Failed to create identity store service instance idstore.ldap.provider:idstore.ldap. Reason: oracle.security.jps.JpsRuntimeException: JPS-00027: internal error You configured a generic WLS LDAPAuthenticator.
The identity store type cannot be determined. Please choose an LDAP Authentication provider that matches your LDAP server.

        at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:170)



Solution: 

Please chekc the config.xml file and change the 

<sec:authentication-provider xsi:type="wls:ldap-authenticatorType">
        <sec:name>AD_Authenticator_1</sec:name>

to 

<sec:authentication-provider xsi:type="wls:active-directory-authenticatorType">
        <sec:name>AD_Authenticator_1</sec:name>

Friday, January 30, 2015

Manually checking the MQ Version information in the WebSphere MQ JAR files

Manually checking the information in the WebSphere MQ JAR files 
Alternatively, you can check a specific JAR installed as part of WebSphere MQ to find out the version information. The JAR to check is shown below: 

WebSphere MQ classes for Java: com.ibm.mq.jar 
WebSphere MQ classes for JMS : com.ibm.mqjms.jar 

Both of these JARs are located in the directory MQ_INSTALLATION_PATH/java/lib. 

Once the JARs have been located, follow the procedure below: 

1) Unjar the appropriate JAR using one of the commands shown: 

WebSphere MQ classes for Java: 
#jar -xvf com.ibm.mq.jar 

WebSphere MQ classes for JMS: 
#jar -xvf com.ibm.mqjms.jar 

2) Enter the uncompressed jar directory. This will contain a subdirectory called META-INF, which has a file in it called MANIFEST.MF. 

3) Open this file, and look for a line similar to the ones shown below. These lines indicate which version of the WebSphere MQ classes for Java or classes for JMS are being used by your application: 

WebSphere MQ classes for Java - com.ibm.mq.jar 
Specification-Title: WebSphere MQ classes for Java 
Specification-Version: 7.1.0.0 

WebSphere MQ classes for JMS - com.ibm.mqjms.jar 
Implementation-Title: WebSphere MQ classes for Java Message Service 
Implementation-Version: 7.1.0.0 - k000-L111005.1 

Tuesday, January 27, 2015

Mark-and-Sweep Garbage Collection

 mark-and-sweep  garbage collection algorithm



 The mark-and-sweep algorithm was the first garbage collection algorithm to be developed that is able to reclaim cyclic data structures.gif Variations of the mark-and-sweep algorithm continue to be among the most commonly used garbage collection techniques.

When using mark-and-sweep, unreferenced objects are not reclaimed immediately. Instead, garbage is allowed to accumulate until all available memory has been exhausted. When that happens, the execution of the program is suspended temporarily while the mark-and-sweep algorithm collects all the garbage. Once all unreferenced objects have been reclaimed, the normal execution of the program can resume.

The mark-and-sweep algorithm is called a tracing garbage collector because is traces out the entire collection of objects that are directly or indirectly accessible by the program. The objects that a program can access directly are those objects which are referenced by local variables on the processor stack as well as by any static variables that refer to objects. In the context of garbage collection, these variables are called the roots . An object is indirectly accessible if it is referenced by a field in some other (directly or indirectly) accessible object.

com.bea.wli.sb.transports.TransportException: [OSB FLOW Transport:2030702]Unexpected error, the Split-Join transport configuration descriptor cannot be loaded. Root cause: "File not found

Issue : 

when deploying OSB project



Caused by: com.bea.wli.sb.transports.TransportException: [OSB FLOW Transport:2030702]Unexpected error, the Split-Join transport configuration descriptor cannot be loaded. Root cause: "File not found
Solution:
Please restart the All Domain Servers and redeploy the application.

Monday, January 26, 2015

BPM roles are not updating Properly

Issue: BPM roles are not showing properly for all BPM servers.

Solution: 

Please validate system-jazn-data.xml (location: $DOMAIN_HOME/config/fmwconfig) 

into all Managed Servers and Admin Server.And update 

Thursday, January 15, 2015

Oracle Fusion Middleware: Undeploy the composite When soa_infra in down

Oracle Fusion Middleware: Undeploy the composite When soa_infra in down: Check the SOA logs and determine which composite is causing the problem and then follow the below process to undeploy the composite by edit...

Undeploy the composite When soa_infra in down

Check the SOA logs and determine which composite is causing the problem and then follow the below process to undeploy the composite by editing deployed-composites.xml:

1. Download and copy the ShareSoaInfraPartition.ear file to $MIDDLEWARE_HOME/oracle_common/common/bin

2. cd to $MIDDLEWARE_HOME/oracle_common/common/bin

and

run wlst.sh

3.

connect('weblogic','weblogic1','t3://localhost:7001')


provide the username, password and server URL

4. run the below command to deploy ShareSoaInfraPartition.ear

deploy('ShareSoaInfraPartition','ShareSoaInfraPartition.ear',upload='true')


5. Now run the below command by changing the "toLocation" ('/fmw11g/fmw1115/Middleware' is some location path on SOA machine)

exportMetadata(application='ShareSoaInfraPartition',server='AdminServer',toLocation='/fmw11g/fmw1115/Middleware',docs='/deployed-composites/deployed-composites.xml')


6. A deployed-composites folder will be created at "toLocation" path with deployed-composites.xml in it

7. Delete the composite which is causing the problem and save the file

For example, the MediatorTest composite:

<composite-series name="default/MediatorTest" default="default/MediatorTest!1.0">
<composite-revision dn="default/MediatorTest!1.0" state="on" mode="active" location="dc/soa_58b98be8-9ec8-41af-bb83-590f6004d1aa">
<composite dn="default/MediatorTest!1.0*soa_58b98be8-9ec8-41af-bb83-590f6004d1aa" deployedTime="2011-11-17T09:01:54.750+05:30"/>


8. Now run the below command by changing the "fromLocation" (this should be the same location as previous)

importMetadata(application='ShareSoaInfraPartition',server='AdminServer',fromLocation='/fmw11g/fmw1115/Middleware',docs='/deployed-composites/deployed-composites.xml')


9. Now bounce your server and the composite will not be deployed by SOA when it comes up and hence that should bring your soa-infra up.

Wednesday, January 14, 2015

Connection test failed with the following exception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

Error


 Connection test failed with the following exception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor


Solution

The DB Service went down abrublty as This exception is generated when an application request to get a connection fails because the connection selected to be returned to the application from the pool fails the configured tests.

Weblogic tests a connection before it is given to a client.

DB needs to restart.








Find the Hostname with IPAddress

[test@srinfosoa01 logs]$ nslookup srinfosoa01
Server:         128.166.33.44
Address:        128.166.33.44#53



nslookup 208.77.188.166 
...
Non-authoritative answer:

166.188.77.208.in-addr.arpa     name = www.example.com.

oracle.bam.adc.common.exceptions.CacheException: BAM-01265

Error 

Caused by: oracle.bam.adc.common.exceptions.CacheException: BAM-01265: An error (weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
 ) has occurred in the Active Data Cache storage system.

When you found the above issue 

Cause: 

Message icon - Warning Test of BAMDataSource on server bam_ms01 failed, reason:

Message icon - Error Connection test failed with the following exception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

Solution


Please check with BAMDataSource, there is an issue with DB connectivity .

Data source should be available