Followers

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>