Search This Blog

Wednesday, April 25, 2018

Change the MFT Source and Target Password's using WLST

Change the MFT Source and Target Password's using WLST

Use the WLST command , exportDeployedArtifact


The following example exports a SOURCE artifact called order-file-src with the label soa_mft-2012-12-07 22:24:09.383 to /export/order-file-src.zip.
exportDeployedArtifact('SOURCE', 'order-file-src', 'soa_mft-2012-12-07 22:24:09.383', '/export/order-file-src.zip


To find out the label Go to MFT Console and click on monitoring TAB and select Source and Target check boxes and click on MFT Source




and select the source and click on the button show details 



Make a note of the string soa_mft-2018-04-04 12:11:29.265 and use this to export the source file 

for example , 

cd  $ORACLE_HOME/mft/common/bin
connect('weblogic', 'Welcome1', 't3://localhost:7001')
exportDeployedArtifact('SOURCE', 'source-name', 'soa_mft-2018-04-04 12:11:29.265', '/tmp/test1.zip')

Open the file mft\source\so_e801f00a-a2d8-4ded-a4fa-36c657c2d61b.xml


Locate the password , make a note of it , for example in this case it is 

pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84

Now use the wlst command 

cd  $ORACLE_HOME/oracle_common/common/bin

connect('weblogic', 'Welcome1', 't3://localhost:7001')
updateCred(map="mftapp", key="pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84", user="pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84", password="password-new" , desc="Updated by ...")




Tags: Publish
April 25, 2018 at 02:13PM
Open in Evernote

Tuesday, April 24, 2018

Rhino Java Script Version in SOA

Rhino Java Script Version in SOA
org.mozilla.javascript.Context.class file 

and look for the method ,

public String getImplementationVersion()
  {
    return "Rhino 1.5 release 2 2001 07 27";
  }
  
For other version run the command 


java -jar d:\bpm12213\osb\lib\external\js.jar

This will give the o/p as 

Rhino 1.7 release 4 2012 06 18

Or open the file d:\bpm12213\osb\lib\external\js.jar
and check the manifest.mf file 

This has the information as 
++
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.7.0_04-b20 (Oracle Corporation)
Main-Class: org.mozilla.javascript.tools.shell.Main
Implementation-Version: 1.7R4
Implementation-Title: Mozilla Rhino 1.7R4
Implementation-Vendor: Mozilla Foundation
Implementation-URL: http://www.mozilla.org/rhino
++

In SOA 12.2.1.3 these are the places where the java script library is being used

--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\osb\lib\external\js.jar


--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\soa\soa\applications\frevvo.ear\APP-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar\frevvo.war\WEB-INF\lib\rhino-1.7R4.jar



--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\soa\soa\connectors\SocketAdapter.rar\js-engine.jar\js.jar


--> org/mozilla/javascript/ScriptRuntime.class  in d:\bpm12213\wlserver\modules\com.bea.javascript.jar









Tags: Publish
April 24, 2018 at 05:05PM
Open in Evernote

Friday, April 13, 2018

How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line

How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line
How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line

For SOA 12.2.1.3 (on windows)  , use this classpath


java -cp d:\soa1213\oracle_common\modules\oracle.mds_12.1.3\mdsrt.jar;d:\soa1213\oracle_common\BC4J\jlib\commons-cli-1.0.jar;d:\soa1213\oracle_common\modules\clients\com.oracle.webservices.fmw.client_12.1.3.jar;d:\soa1213\oracle_common\modules\oracle.adf.share.ca_12.1.3\adf-share-base.jar;d:\soa1213\oracle_common\modules\oracle.adf.share_12.1.3\adflogginghandler.jar;d:\soa1213\oracle_common\modules\oracle.ucp_12.1.0.jar;d:\soa1213\oracle_common\modules\oracle.jdbc_12.1.0\ojdbc7dms.jar;d:\soa1213\oracle_common\modules\clients\com.oracle.webservices.fmw.client_12.1.3.jar;d:\soa1213\oracle_common\modules\oracle.xmlef_12.1.3\xmlef.jar;d:\soa1213\oracle_common\jlib\share.jar;d:\soa1213\oracle_common\modules\javax.management.j2ee_1.2.0.0.jar oracle.mds.tools.transfer.MDSTransferTool  /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml

This copies the file /soa/configuration/default/bpel-config.xml from the "soa-infra" partion


Sample o/p

Apr 13, 2018 10:09:20 AM oracle.mds
NOTIFICATION: MDS-10013: transfer operation started.
Apr 13, 2018 10:09:21 AM oracle.mds
NOTIFICATION: MDS-10014: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Transfer completed.


cat param_from_mds.xml


++

<!-- Transfer documents from DB MetadataStore to a directory -->

<parameters version="11.1.1.000" xmlns="http://xmlns.oracle.com/mds/config">
<source-store>
<metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jdbc-userid" value="DEV1117_MDS"/>
<property name="jdbc-password" value="Welcome1"/>
<property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name="partition-name" value="soa-infra"/>
</metadata-store>
</source-store>
<target-dir value="C:/temp"/>
</parameters>
<!-- Transfer documents from DB MetadataStore to a directory -->

++


This copies the file  /soa/configuration/default/bpel-config.xml from MDS to the file system c:\temp

cat param_to_mds.xml


++

<!-- Transfer documents from a directory to DB MetadataStore -->

<parameters version="11.1.1.000" xmlns="http://xmlns.oracle.com/mds/config">
<source-dir value="C:/Temp"/>
<target-store>
<metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jdbc-userid" value="DEV1117_MDS"/>
<property name="jdbc-password" value="Welcome1"/>
<property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name="partition-name" value="soa-infra"/>
</metadata-store>
</target-store> </parameters>

++

This copies the file /soa/configuration/default/bpel-config.xml from c:\temp\  to the MDS.

For SOA 12.2.1.3 (on linux)  , use this classpath

java -cp /fmw11g/soa12213/oracle_common/modules/oracle.mds/mdsrt.jar:/fmw11g/soa12213/oracle_common/modules/com.oracle.jrf.mt.tenant.api.jar:/fmw11g/soa12213/soa/soa/modules/commons-cli-1.1.jar:/fmw11g/soa12213/oracle_common/modules/clients/com.oracle.webservices.fmw.client.jar:/fmw11g/soa12213/oracle_common/modules/oracle.adf.share.ca/adf-share-base.jar:/fmw11g/soa12213/oracle_common/modules/oracle.adf.share/adflogginghandler.jar:/fmw11g/soa12213/oracle_common/modules/oracle.ucp.jar:/fmw11g/soa12213/oracle_common/modules/oracle.jdbc/ojdbc8.jar:/fmw11g/soa12213/oracle_common/modules/oracle.xmlef/xmlef.jar:/fmw11g/soa12213/oracle_common/modules/oracle.bali.share/share.jar:/fmw11g/soa12213/oracle_common/modules/javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool  /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml

on Windows use this 12.2.1.3

c:\temp>java -cp D:\bpm12213\oracle_common\modules\oracle.mds\mdsrt.jar;D:\bpm12213\soa\soa\modules\commons-cli-1.1.jar;D:\bpm12213\oracle_common\modules\clients\com.oracle.webservices.fmw.client.jar;D:\bpm12213\oracle_common\modules\oracle.adf.share.ca\adf-share-base.jar;D:\bpm12213\oracle_common\modules\oracle.adf.share\adflogginghandler.jar;D:\bpm12213\oracle_common\modules\oracle.ucp.jar;D:\bpm12213\oracle_common\modules\oracle.jdbc\ojdbc8.jar;D:\bpm12213\oracle_common\modules\oracle.xmlef\xmlef.jar;D:\bpm12213\oracle_common\modules\oracle.bali.share\share.jar;D:\bpm12213\oracle_common\modules\javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool  /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml


cat param_from_mds_oim.xml

++
<!-- Transfer documents from DB MetadataStore to a directory -->

<parameters version="11.1.1.000" xmlns="http://xmlns.oracle.com/mds/config">
<source-store>
<metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jdbc-userid" value="OIM_MDS"/>
<property name="jdbc-password" value="Welcome1"/>
<property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name="partition-name" value="oim"/>
</metadata-store>
</source-store>
<target-dir value="/tmp"/>
</parameters>

++



cat param_to_mds.xml

++
<!-- Transfer documents from a directory to DB MetadataStore -->

<parameters version="11.1.1.000" xmlns="http://xmlns.oracle.com/mds/config">
<source-dir value="C:/Temp"/>
<target-store>
<metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jdbc-userid" value="DEV1117_MDS"/>
<property name="jdbc-password" value="Welcome1"/>
<property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<property name="partition-name" value="soa-infra"/>
</metadata-store>
</target-store> </parameters>
++


For Fmw 11.1.1.7 and 11.1.1.9 use this classpath (Windows)

java -cp  D:\fmw1117\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;D:\fmw1117\oracle_common\soa\modules\commons-cli-1.1.jar;D:\fmw1117\oracle_common\modules\oracle.webservices_11.1.1\oracle.webservices.standalone.client.jar;D:\fmw1117\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;D:\fmw1117\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;D:\fmw1117\oracle_common\modules\oracle.ucp_11.1.0.jar;D:\fmw1117\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;D:\fmw1117\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;D:\fmw1117\Oracle_SOA1\jlib\share.jar;D:\fmw1117\oracle_common\modules\javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool   /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml


For Fmw 11.1.1.7 and 11.1.1.9 use this classpath (Linux)

java -cp  /fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar:/fmw11g/fmw1117/Middleware/oracle_common/soa/modules/commons-cli-1.1.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.webservices_11.1.1/oracle.webservices.standalone.client.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.ucp_11.1.0.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.xmlef_11.1.1/xmlef.jar:/fmw11g/fmw1117/Middleware/Oracle_SOA1/jlib/share.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool   /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml

References : 

To Make Changes In oim-config.xml When OIM 11g Server(s) Are Unavailable (Doc ID 1378007.1)



Tags: Publish
April 12, 2018 at 04:03PM
Open in Evernote