Skip navigation.

Arun Bavera

Syndicate content
Few of my technology tips.
Updated: 11 hours 31 min ago

Em12c Creating Metric Extension(User Defined Metrics) for BPEL Process State OFF

Tue, 2014-06-03 11:14








select Domain_ref,process_id,state  from ORABPEL.PROCESS where state=1;






1) Save as Deployable Draft

2) Publish Metric Extension

3) Deploy To Targets : Cluster Database

4) Add this metric to your incident Rules to get alerts



Categories: Development

Upgrading the MiniDLNA on Seagate GoFlex Home from 1.0.22 to 1.1.2

Mon, 2014-05-26 00:19

1)SSH to root of your GOFLEX Home, the format of username will be:


Change to root access

sudo -E -s


My GoFlex Environment

bash-3.2# uname -a
Linux #16 Thu Jun 17 01:37:53 EDT 2010 armv5tejl armv5tejl armv5tejl GNU/Linux
HipServ 2.7.1-391


2) Install the ipkg as shown below:

  2. cd ~
  3. mkdir ipkg
  4. cd ipkg
  5. wget

  6. tar -xzf ipkg-opt_0.99.163-10_arm.ipk
  7. cp ./data.tar.gz /data.tar.gz
  8. cd /
  9. tar -xzf data.tar.gz
10. rm  data.tar.gz

11. echo src cs08q1armel >> /opt/etc/ipkg.conf
12. /opt/bin/ipkg update

3) Update Path add it to /etc/profile
export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin:/usr/local/sbin
export LD_LIBRARY_PATH=/usr/lib:/opt/lib:/lib:/usr/local/lib


4) Get miniDLNA  latest from
cd /home/0common

5)Install GCC:
ipkg list | grep gcc
/opt/bin/ipkg install gcc

6)Install Make:
ipkg install make

7) Install these version of libraries and create softlink in /usr/lib


ipkg install unzip

unzip -d /usr/lib
unzip -d /usr/lib

cd /usr/lib
ln -s libjpeg_so_8_0_2
ln -s libjpeg_so_8_0_2
ln -s libavutil_so_49_15_0
ln -s /usr/lib/ /usr/lib/

8) Now, install the latest MiniDLNA downloaded in

cd /home/0common

./configure; make; make install

Take a backup of old MiniDLNA

cp /usr/sbin/mindlna minidlna_1_0_22

cp /home/0common/minidlna1.1.2/minidlnad minidlna

Make sure the owner and permissions are same as old binary.

cp the old config file to /etc
ln -s /etc/miniupnpd/minidlna.conf /etc/minidlna.conf

Update the log directory in config file.

Update the DB directory

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.

Common commands to start and start MiniDLNA
ssh - login
sudo -u
whoami -> "root"
/etc/init.d/minidlna.init stop
/etc/init.d/minidlna.init status
rm /tmp/minidlna/files.db -- will remove the minidlna database

With 1.1.2 the db will be in /var/cache/minidlna

Rebuild the Database
/usr/sbin/minidlna -f /etc/miniupnpd/minidlna.conf -R -d

/etc/init.d/minidlna.init start
/etc/init.d/minidlna.init restart

Running in Debug mode
/usr/sbin/minidlna -d -f /etc/miniupnpd/minidlna.conf


Install ArchLinuxARM on the Seagate GoFlex Home

Upgrading from 1.0.22 to 1.0.25

Categories: Development

Oracle EM12c Release and Patch Schedules

Thu, 2014-05-22 09:12
PSU: Oracle Recommended Patches (PSU) for Enterprise Manager Base Platform (All Releases) (Doc ID 822485.1) For others 854428.1 à Quarterly

January 17th

April 17th


October 17th

Bundle Patches: MonthlyEnterprise Manager Bundle Patch Master Note (Doc ID 1572022.1)Enterprise Manager (PS3) Master Bundle Patch List (Doc ID 1900943.1)  Last Day of Every month Management Agent version and higher
Cloud Control Plug-ins (both OMS-side and Agent-side), No OMS/WLS Patches
Release Schedule of Current Enterprise Manager Releases and Patch Sets (10g, 11g, 12c) (Doc ID 793512.1) ->11-Sep-2012 New OMS Base Release like,  à Every 9 Months May-2014>28-Jun-2013>expected in Q2 CY14


Release Schedule for Enterprise Manager Cloud Control Plug-ins (Doc ID 1486995.1)

Refer:Oracle Premier Support Enterprise Manager Product News - February 2014 (Doc ID 1449687.1)

Categories: Development

Pushing JDK to hosts using EM12c Custom Procedures

Fri, 2014-05-16 15:01
Installing JDK to Hosts using EM12c Custom Procedures
1) Goto Software Library:

2) Create a Folder keep all your Custom Procedures:

3) Right Click on this new Folder created and Create the Directive

4) Update the Directive details:

5) Provide the input parameters and choose the shell to be used for this directive:

6) Create the following script and upload
# REM <JDK_Home_directory>
export WorkDirectory=$PWD
echo "WorkDirectory=${WorkDirectory}"
export JDK_HOME=$1
echo "JDK Home=${JDK_HOME}"
echo "Creating directory==${JDK_HOME}"
/bin/sh -c 'mkdir -p $JDK_HOME'
echo "Changing the Permission"
/bin/sh -c 'chmod +x *'
echo "Current directory=$PWD"
echo "Installing JDK at ${JDK_HOME}"
/bin/sh -c 'cd $JDK_HOME;$WorkDirectory/jdk-6u45-linux-x64.bin'

Note: Make sure this file is saved with UNIX Terminators

7) Upload the JDK software from any agent Host as it exceeds 25MB can’t be uploaded from local desktop hosts.
Note: Make sure to choose the script as the main file.

8) Save and Upload your directive.

9) Now you can create your custom Procedure and use this Directive to deploy the JDK to any host managed by the EM12c.

10)Goto Procedure Library:

11) Create new procedure:

12) Provide name and Temp stage directory info on Target host:

13) Choose Add Row to add one Target list row.

14) Provide Procedure Variable, this is Global Variable for the whole procedure:
15) Goto Procedure Steps tab: Choose Insert by choosing the “Default Phase”

16) Call it as “Install_JDK” and type “Directive”


17) Choose the Directive
Note:As of now you have re-chose the directive if there is any changes done to directive, choosing the latest version always not working

18)Goto next and choose “Run Directive” and “Perform Cleanup”

19)Assign the Global variable(JDK_Home) to this local variable JDK_HOME and Finish.

20) Now you are ready to Launch this procedure and deploy the JDK on any host managed by EM12c on any Directory where chosen Named Credentials has proper privileges.
Categories: Development

Zipping the Database Oracle Home for Provisioning

Fri, 2014-05-09 10:09

  • Meet the basic infrastructure requirements as described in Chapter 2.
  • Ensure that the host is set up for database provisioning entities. For more information about host readiness, see Appendix B.
To create the zip file of an Oracle Home, use the following syntax:

To create the zip file of an Oracle Home, use the following syntax:
<ZIP PATH>/zip -r -S -9 -1 <> <directory or list of files to be archived> -x <patterns to exclude files>

Taking backup of GCDOMAIN and excluding logs:
tar -cvpzf /u01/app/gc_inst/user_projects/domains -X pat.txt


Categories: Development