Tuesday, January 27, 2015

SOA 12c: Rename MFT Source, Target, Transfer

Guess, what if we have created a MFT Source or Target or Transfer and we have been asked to change its name. This post is quick and easy solution (with little bit of hacking) to achieve the same, so instead of redeveloping MFT components you can just rename it without changing its functionalities.

You should know what is MFT source, Target, Transfer and how it is created.

For purpose of showing this case, I have created Sample Source, Target and Transfer.
Sample Source name: T1; Sample Target:TestTargt; Sample Transfer: testtransfer

Now suppose all my components are ready and at last minute I found some mistake while defining names.
Don't worry, you can easily rectify it. Here I am going to rename Source name T1 to Source1, Just follow below steps:

1) Export transfer file, just click on export (present on transfer window on right hand side)
2) Once you export the file, you will see a file - [TransferName]_export.zip downloaded.

 3) Right click on that file and open the zip using Windows Explorer, as shown below. (Note - with normal Winzip or any other tool it will not work)

4) A new folder will open containing mft folder. mft folder will contain 3 more directories as shown below

5) Navigate to source folder, you will see an XML file there. Open that file (you can copy that file to different location, edit and then replace the file under mft/source folder).

As shown below, Source name is T1

 6) Edit the name to Source1, save and copy it back to mft/source

7) Once file is copied, close the zip folder

8) Now go back to MFT console, Administration Tab and Import the zip file.

9) Once Import is done, go back to Design Tab of MFT console, refresh the Designer palette. You can see new Source name (Source1) appearing there in place of T1

10) Same source name will automatically appear under Transfer as well

So you are all set, just deploy and test.

For renaming Target or Tansfers, follow same steps.
For Targets, navigate to mft/target folder and make changes, and for transfer follow mft/transfer.

Sunday, December 28, 2014

Uninstalling SOA 12c from Mac

I had written a post earlier on how to install SOA 12c on a Mac.  For trying my hands on uninstalling the same, I followed below steps.

1. Open Terminal and Navigate to MW_Home/oui/bin

 2. Open you are on that location, give this command - sh deinstall.sh -deinstall

 3. This will open the Deinstaller

4. On Opening screen, Click Next

5. Next page will give the Summary of products which will be Deinstalled. Click on Deinstall

6. Next screen will show the progress on Deinstall. Once it shows 100% click on Finish

7. Last screen will be displayed showing Deinstall summary.

This is all about Deinstalling SOA 12c.

Wednesday, December 24, 2014


I have been using WLST (WebLogic Scripting Tool) for MFT a lot, so wanted to dedicate some of the post specifically for that. These are pretty simple ones but can help many.

If I talk specifically about WLST for MFT,  to connect to the server you need to follow below steps.

1. Open WLS_Home\mft\common\bin (Below screen shot is my system location)

2. Open command prompt (Run as administrator), navigate till the WLS_Home\mft\common\bin

3. Once you are on that location, type - wlst.cmd (for Linux it is ./wlst.sh)

4. You will be on wlst prompt

WLST commonly used Commands:

1. For connecting to the server

Example: connect("weblogic","welcome1","t3://localhost:7101")

2. For disconnecting from WLST
You can either use - disconnect () or exit ()

Some of WLST Commands for MFT:

Coming soon...

Undeploy SOA Composite : Workaround

Recently I was trying to undeploy a BPEL process from EM console, by following normal process i.e. Right clicking on Process name -- SOA Deployment -- Undeploy, but it was throwing error and not allowing me to do so.

I did a workaround and got ride of the composite. Below steps will show how to achieve the same.

Note: This was done on Oracle 12c

Undeploy Steps:
1. Login to EM console and click on soa-infra, below screen shot shows BPEL processes.

2. On Right pane window, click on SOA Infrastructure -- Administration -- MDS Configuration

3. You will see MDS configuration page, just click on Export. This will download soa-infra_metadata.zip file

4. Unzip the file, you will see a folder deployed-composites, and under that a file deployed-composites.xml as shown in below screen shot

5. Open the file, select the composite which you want to delete (every composite entry it starts with composite-series). Remove composite-series entry for that composite and Save the file.

6. Once the file is saved, Zip the file again. Keep the Zip file name same as before (soa-infra_metadata.zip)

7. Go back to EM Console and to the Same MDS Configuration window (SOA Infrastructure -- Administration -- MDS Configuration). You will see an Import option.

Choose the location and Import the file.

8. Restart Server and check EM. The project which you Deleted will disappear.

Thursday, November 27, 2014

Installing SOA 12c on a Mac

Having SOA installed on Windows 7 and working on it since long, I thought of trying my hands on my Mac running OS Yosemite. I have successfully installed SOA 12c on my Mac. Oracle has made it simpler to install SOA 12c for Mac, I still remember how I struggled while installing 11g.

Pre requisites:
1) You need to have Java 7 (jre-7u71-macosx-x64.dmg) installed on your Mac. Steps for installing Java can be found on https://www.java.com/en/download/help/mac_install.xml


1) Download SOA 12c from Oracle site (http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html) for Mac (fmw_12.

2) Once the file is downloaded, unzip the file. Open Terminal and Navigate to the directory containing the .jar files as shown below

Run Java -jar fmw_12.

3) This will bring up the installer, change the OS Group accordingly. I choose everyone. Click OK

 4) First page of the instller, Click Next

5) OracleWls_Home directory will be shown, you can choose your own directory. I went with the default one. Click Next

6) Click Install

7) Next

8) Installation is done, This is the last page. Make sure Start JDeveloper is Enabled and click on Finish

9) JDeveloper will start

10) After start you will see Application Server navigator, where the domain as Unconfigured. Configured the domain either by doing right click on the IntegratedWeblogicServer or by navigating to Run menu as shown in the screen shot below

11) Upon its first time start, a window will open where you will be setting up the password for your local Weblogic. Click OK once done

Thats it. It will take few minutes to configure and start the server. Once started you can access EM using http://localhost:7101/em on your safari.

Tuesday, November 25, 2014

Oracle 12c MFT - Using PGP Decryption

This is in continuation of my last blog, Oracle 12c MFT - Using PGP Encryption, here we will understand on how to decrypt the file which was encrypted using PGP Encryption technique.

I would recommend you to go through my PGP Encyption blog to understand the process.

Once the Keys are available (created and imported during Encryption), doing Decryption will be quite simple. We will be using Private Key for decrypting the file.

1) Goto MFT console Design Tab, and for Transfer, select add pre-processing actions.

2) Once window opens, select PGP Decryption for the drop down and Add to the list.
Select Decryption Alias. Click OK

And you are all done.