Year: 2017

Tomcat enable special character in request

To allow pass parameter as json request enable allow characters “{}” in tomcat configuration file    # Allow for changes to HTTP request validation # WARNING: Using this option will expose the server to CVE-2016-6816 #tomcat.util.http.parser.HttpParser.requestTargetAllow=| # tomcat.util.http.parser.HttpParser.requestTargetAllow={}

String formating

Format Flags: Space, + and ( format position of output text base of flags s1= String.format(“%d”,123); s2= String.format(“%d”,-123); s3= String.format(“% d”,123); s4= String.format(“% d”,-123); s5= String.format(“%+d”,123); s6= String.format(“%+d”,-123); s7= String.format(“%(d”,123); s8= String.format(“%(d”,-123); s9= String.format(“% (d”,123); s9 is using combined flags, Read More

java update

Download java.tar.gz file Unzip to /usr/java/jdkVERSION Create link for latest and default Use alternative to setup default java envirement See your current envirement alternatives –config java There is 1 program that provides ‘java’. Selection Command ———————————————– *+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk- Read More

ndb_desc – describe NDB tables

ndb_desc provides a detailed description of one or more NDB tables. Usage ndb_desc -c connection_string tbl_name -d db_name [option] ndb_desc -c connection_string index_name -d db_name -t tbl_name Example mantonik@mplclnode1 ~]$ ndb_desc -p -c mplclmgm1c:1186,mplclmgm2c:1186 -d masprod p_events — p_events — Read More

Find oracle patch version

Easy way to find patch version is use opatch application Example: $ORACLE_HOME/OPatch/opatch lsinventory example of output /export/home/oracle> [oracle@atlantisoracle ~]$ opatch lsinventory Oracle Interim Patch Installer version Copyright (c) 2017, Oracle Corporation. All rights reserved. Oracle Home : /export/home/oracle/app/11gr2 Central Read More