Monday, 22 July 2013

Updating xml tags in xml files

http://www.daniweb.com/software-development/shell-scripting/threads/202018/modifying-xml-files-using-sed

for f in $( find . -name "*.xml" ); do sed -n "s/<idle>600<\/idle>/<idle>900<\/idle>/p" $f >> $f; echo "file:" $f;done

Monday, 17 June 2013

in sql plus to avoid exponentialvalues like this as result: 6.0044E+11
run the command below  to avoid exponential values.

SQL>set numformat 99999999999999999999

Wednesday, 12 June 2013

Apache restart no sockets issue

# ./apachectl start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Run this command when the parent process is killed:
#killall -9 httpd

and then restart apache:
./apachectl start OR /etc/init.d/httpd2 restart



Thursday, 10 January 2013

Installation steps for libpcap

Installation steps for libpcap tcpdumps/network analysis

http://xgjonathan.blogspot.in/2011/04/how-to-install-libpcap-on-ubuntu.html

Wednesday, 19 December 2012

Hot deploy in jboss

https://community.jboss.org/wiki/JBoss51DisableEnableHotDeployHDScanner

Wednesday, 7 November 2012

DB Oracle Important Stats to monitor

1) Buffer Cache hit ratio. This should be high as the  data is needs to be read from cache. Also the disk i/o is less if it is read from cache.
2) Cache hit ratio
3) Library cache.. where sql,pl/sql, re-usable sql are placed
4)soft parsing should be high compared to hard parsing... as the time spent in parsing sqls is less softparsing. (Softparsing->hardParsing->Explain plan)