Skip navigation.

Arun Bavera

Syndicate content
Few of my technology tips. http://www.linkedin.com/in/arunbavera
Updated: 11 hours 31 min ago

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

Tue, 2014-06-03 11:14

 

clip_image002

clip_image004

clip_image006

clip_image008

clip_image010

 

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

 

 

clip_image012

clip_image014

clip_image016

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

clip_image018

clip_image020

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:

USERNAME_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX@<IPADDRESS>

Change to root access

sudo -E -s

 

My GoFlex Environment

bash-3.2# uname -a
Linux axentraserver.mygoflex.seagateshare.com 2.6.22.18 #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:
http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/
http://www.openstora.com/wiki/index.php?title=Installing_a_package_manager


  2. cd ~
  3. mkdir ipkg
  4. cd ipkg
  5. wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ipkg-opt_0.99.163-10_arm.ipk

  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 http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable >> /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
wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.2/

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

wget http://www.openstora.com/files/albums/uploads/libjpeg_so_8_0_2.zip
wget http://www.openstora.com/files/albums/userpics/15704/libavutil_so_49_15_0.zip

ipkg install unzip

unzip -d /usr/lib libjpeg_so_8_0_2.zip
unzip -d /usr/lib libavutil_so_49_15_0.zip

cd /usr/lib
ln -s libjpeg_so_8_0_2 libjpeg.so
ln -s libjpeg_so_8_0_2 libjpeg.so.8
ln -s libavutil_so_49_15_0 libavutil.so.49
ln -s /usr/lib/libFLAC.so.7.0.0 /usr/lib/libFLAC.so.8

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.
log_dir=/tmp/minidlna

Update the DB directory
db_dir=/var/cache/minidlna

# 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.
strict_dlna=no

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

=====================================================


References:


http://blog.philippklaus.de/2011/04/install-archlinuxarm-on-the-seagate-goflex-home/
Install ArchLinuxARM on the Seagate GoFlex Home
http://archlinuxarm.org/platforms/armv5/seagate-goflex-home
http://doncharisma.com/2013/09/22/build-your-own-pro-nas-seagate-goflex-net-with-debian-linux-raid1-and-openmediavault/

Upgrading from 1.0.22 to 1.0.25
http://www.openstora.com/wiki/index.php?title=MiniDLNA_for_Stora/Updating

http://support.goflexhome.hipserv.com/en/reflash/index.html

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

July17th

October 17th
==============================================================

Bundle Patches: MonthlyEnterprise Manager 12.1.0.3 Bundle Patch Master Note (Doc ID 1572022.1)Enterprise Manager 12.1.0.4.0 (PS3) Master Bundle Patch List (Doc ID 1900943.1)  Last Day of Every month Management Agent version 12.1.0.3 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)
12.1.0.2 ->11-Sep-2012 New OMS Base Release like 12.1.0.3, 12.1.0.4  à Every 9 Months May-2014 12.1.0.3->28-Jun-2013
12.1.0.4->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:
clip_image002


2) Create a Folder keep all your Custom Procedures:
clip_image004





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


4) Update the Directive details:
clip_image008


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

6) Create the following script Install_jdk.sh and upload
# REM install_JDK.sh <JDK_Home_directory>
#!/bin/sh
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
clip_image012

7) Upload the JDK software from any agent Host as it exceeds 25MB can’t be uploaded from local desktop hosts.
clip_image014
Note: Make sure to choose the Install_jdk.sh 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:
clip_image016

11) Create new procedure:
clip_image018

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

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

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

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

clip_image026

17) Choose the Directive
clip_image028
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”
clip_image030

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

Refer:
  • 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 <archiveName.zip> <directory or list of files to be archived> -x <patterns to exclude files>

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

pat.txt
/u01/app/gc_inst/user_projects/domains/GCDomain/EMGC_ADPMANAGER1
/u01/app/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADPMANAGER1
/u01/app/gc_inst/user_projects/domains/GCDomain/servers/EMGC_JVMDMANAGER1/logs
/u01/app/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs
*.log*
*.out*
*.lck
*.trc*

Categories: Development