Tuesday, October 7, 2014

Clearing data in DataObjects with BAM 12c

I was recently facing an issue in which I was not able to delete data within dataobjects in BAM due to BAM 12c bug.

BAM 12c provides BAMCommand utility, which is just like iCommand in 11g.

To delete data in data objects in BAM 12c, we to do following steps

1. Go to FMW_HOME/soa/bam/bin/
2. Edit BAMCommandConfig.xml with your BAM Configuration
3. Set Java_Home
4. Execute the below command to delete data within data object

 ./bamcommand -cmd clear -name "DataObjectName" -type dataobject


where DataObjectName is name of your data object. 

On Executing the above command, you would be promoted to provide server credentials.

Similarly you can also export BAM objects using the below command

./bamcommand -cmd export -type all -file "home/zzz/test.zip"

Monday, August 25, 2014

Unlocking User in Oracle

SQL> connect sys as sysdba
Enter password:
Connected.
SQL> ALTER USER hr identified by hr ACCOUNT UNLOCK;
User altered.
SQL>

Tuesday, July 29, 2014

Getting Started with Arduino - Hello World





Component I used

1. Arduino Uno Board
2. Led
3. Arduino Development IDE


Every Arduino program has 2 basic functions which forms the structure of the arduino

void setup() {
} //Invoked only once

void loop() {
} //Invoked multiple times.


This program is going to blink the LED .i.e. ON-OFF-ON-OFF-ON-OFF.

Though the Arduino board has a builtin resister and led into the board. For the purpose of this blog, I am going to use external LED



1. Connect the Anode (long leg) part of Led to pin 13 & connect cathode to ground as shown in the below image.




2) Upload the below program to arduino using development kit



void setup() {
  pinMode(13, OUTPUT);
 
}

void loop() {
  digitalWrite(13, HIGH);
  delay(1000);
  digitalWrite(13, LOW);
  delay(1000);
}


You should now able to see the LED going on-off-on-off every 1 second.

Though this is not the best way to blink the LED. The current circuit is supplying 5v to LED which is too much. Ideally, you will connect the resister with 220ohms and do the blink.


Internet of Everything

I have been working with Computers since my childhood.  Have always been working on programming languages like C, C++, Java, Middleware and so on. In short, I have been on the other side of technology .i.e. Softwares!!.

Internet of Everything is all about connecting physical world to desktop computers. With resources like never before, it is now quite easy to connect your daily machines with Computers. For instance connecting your table lamp to your mobile such that mobile can control the on/off.

So finally I decided to get my hands dirty and get all necessary resources for connecting the physical world with Computers.

There are many options to start with.

1. Arduino (http://www.arduino.cc/)
2. Rasberry Pie
3. Beaglebone

All 3 are great way to get started. I choose Arudino, because it was

1) cheaper
2) has great community
3) easy to work with
4) great way to start with Prototypes.
5) Open Source

I got started by buying Arduino Starter Kit (http://arduino.cc/en/Main/ArduinoStarterKit) which costed me about 100$. I bought the kit from http://www.tannaeducation.com/

Word of Caution: You can start with Arduino with less than 100$ too. If you happen to buy individual components, I think, you can create a starter kit by yourself which is far more cheaper. But as I was not sure what components i need, i decided to go with the available starter kit.


Wednesday, July 23, 2014

Installing Oracle BPM 12c

There has been considerable changes in Oracle SOA/BPM product starting 12c. This post focuses just on the installation of BPM 12c.

Comparing it to its predecessor 11g, BPM 11g required users to install

Oracle DB or Oracle XE
Oracle Weblogic
Oracle SOA/BPM Related tables - RCU
Oracle SOA
Oracle OSB
Oracle JDeveloper.

In short to install BPM, we had to install all of the above components individually. Starting 12c the whole installation step has become very simple. The whole of the above installation can be done with single file download which is like 3.5 gb.

To Install, follow the below instructions

1. Download a copy of BPM 12c from the below location

http://www.oracle.com/technetwork/middleware/bpm/downloads/index.html?ssSourceSiteId=opn

Note: There is a simple download for SOA 12c which does not include the BPM component. Rest remains the same.


2. Go to the folder location where you downloaded the file and unzip it.

3. Run the below command from the command prompt.
java -jar fmw_12.1.3.0.0_bpm_quickstart.jar

You should extracting jar.... and the installer should open up.


4. Click Next to Continue.


5. Chose the desired location.


6. Pre-req check screen


7. Installation Summary Screen


8. Installation Progress Screen


9. Installation Success Screen.

10. Once the installation is successful, you should see JDeveloper 12c opening up.