{"id":2413,"date":"2012-08-01T10:52:05","date_gmt":"2012-08-01T15:52:05","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=2413"},"modified":"2013-04-19T19:37:45","modified_gmt":"2013-04-20T00:37:45","slug":"tcpdump-to-see-oracle-errors","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2012\/08\/01\/tcpdump-to-see-oracle-errors\/","title":{"rendered":"tcpdump to see Oracle errors"},"content":{"rendered":"<p>Not 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<pre lang=\"awk\">\r\ntcpdump -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\")}'\r\n<\/pre>\n<p>\u2026with the output below\u2026<\/p>\n<pre lang=\"text\">\r\n[root@cmhlqecomecm01 ~]# 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\")}'\r\ntcpdump: verbose output suppressed, use -v or -vv for full protocol decode\r\nlistening on eth1, link-type EN10MB (Ethernet), capture size 1500 bytes\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\nORA-01403:no data found\r\n<\/pre>\n<p>Just something to put in your toolkit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not 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&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2012\/08\/01\/tcpdump-to-see-oracle-errors\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[19,28,27,22],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2413"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2413"}],"version-history":[{"count":6,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2413\/revisions"}],"predecessor-version":[{"id":2742,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/2413\/revisions\/2742"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2413"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}