{"id":6777,"date":"2017-06-19T12:53:24","date_gmt":"2017-06-19T04:53:24","guid":{"rendered":"http:\/\/rmohan.com\/?p=6777"},"modified":"2017-06-19T12:53:24","modified_gmt":"2017-06-19T04:53:24","slug":"tcpdump-to-see-oracle-errors","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6777","title":{"rendered":"tcpdump to see Oracle errors"},"content":{"rendered":"<p>ot all exceptions are created equally, and most you can ignore (the one below you can, in general). However, if you have to troubleshoot on JBOSS (or anywhere a Linux application connects to an Oracle database), what is below is a good \u201cquicky\u201d command the root user can run to quickly dump the Oracle exceptions being thrown back over the wire.<\/p>\n<p>tcpdump -i eth1 tcp port 1521 -A -s1500 | awk &#8216;$1 ~ &#8220;ORA-&#8221; {i=1;split($1,t,&#8221;ORA-&#8220;);while (i <= NF) {if (i == 1) {printf(\"%s\",\"ORA-\"t[2])}else {printf(\"%s \",$i)};i++}printf(\"\\n\")}'\n\u2026with the output below\u2026\n\n[root@rmohan~]# tcpdump -i eth1 tcp port 1521 -A -s1500 | awk '$1 ~ \"ORA-\" {i=1;split($1,t,\"ORA-\");while (i <= NF) {if (i == 1) {printf(\"%s\",\"ORA-\"t[2])}else {printf(\"%s \",$i)};i++}printf(\"\\n\")}'\ntcpdump: verbose output suppressed, use -v or -vv for full protocol decode\nlistening on eth1, link-type EN10MB (Ethernet), capture size 1500 bytes\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nORA-01403:no data found\nJust something to put in your toolkit.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ot all exceptions are created equally, and most you can ignore (the one below you can, in general). However, if you have to troubleshoot on JBOSS (or anywhere a Linux application connects to an Oracle database), what is below is a good \u201cquicky\u201d command the root user can run to quickly dump the Oracle exceptions [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6777"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6777"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6777\/revisions"}],"predecessor-version":[{"id":6778,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6777\/revisions\/6778"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}