{"id":1328,"date":"2007-10-25T12:00:00","date_gmt":"2007-10-25T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1328"},"modified":"2007-10-25T12:00:00","modified_gmt":"2007-10-25T12:00:00","slug":"which","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2007\/10\/25\/which\/","title":{"rendered":"Which?"},"content":{"rendered":"<p>No, I don&#8217;t mean the UK consumer organisation, but a simple *nix command. It&#8217;s so simple that I&#8217;ve hesitated about blogging about it, but when I keep sharing a small snippet of information and people don&#8217;t know it and find it useful, it&#8217;s probably worth mentioning here.<\/p>\n<p>If you work on Unix servers, you&#8217;ll be familiar with long $PATH settings. Sometimes it&#8217;s difficult to tell which particular version of a command you&#8217;re using when there are versions scattered around in various locations, some in the PATH and some not. If you want to check which copy of a command you&#8217;re running, just use the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Which_%28Unix%29\">which<\/a> command. For example, in this PATH (which is pretty short compared to the PATHs on the servers at work)<\/p>\n<pre>[oracle@ISP4400 ~]$ echo $PATH\n\/usr\/kerberos\/bin:\/usr\/local\/bin:\/bin:\/usr\/bin:\/usr\/X11R6\/bin:\/home\/oracle\/bin:\n\/u01\/app\/oracle\/product\/11.1.0\/db_1\/bin<\/pre>\n<p>if I type in<\/p>\n<pre>[oracle@ISP4400 ~]$ java<\/pre>\n<p>where is the executable running from? Well, I can check with the which command<\/p>\n<pre>[oracle@ISP4400 ~]$ which java\n\/usr\/bin\/java<\/pre>\n<p>I apologise to those for whom this is completely obvious, but there are clearly people out there who don&#8217;t know this command and I find it useful regularly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, I don&#8217;t mean the UK consumer organisation, but a simple *nix command. It&#8217;s so simple that I&#8217;ve hesitated about blogging about it, but when I keep sharing a small snippet of information and people don&#8217;t know it and find it useful, it&#8217;s probably worth mentioning here. If you work on Unix servers, you&#8217;ll be&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2007\/10\/25\/which\/\">Continue reading <span class=\"screen-reader-text\">Which?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1328","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1264,"url":"http:\/\/orcldoug.com\/blog\/2007\/05\/06\/re-linking-oracle\/","url_meta":{"origin":1328,"position":0},"title":"Re-linking oracle","date":"May 6, 2007","format":false,"excerpt":"Hooray! Something vaguely technical - at last.My new client is hot on software licence compliance and what seemed a minor issue to me reared it's slightly ugly head this week. When connecting to our 10.2.0.2 database instances using sqlplus, the version banner displays options that we aren't using, for example\u2026","rel":"","context":"With 21 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":957,"url":"http:\/\/orcldoug.com\/blog\/2005\/08\/10\/a-shortcut-for-oracle_home\/","url_meta":{"origin":1328,"position":1},"title":"A shortcut for ORACLE_HOME","date":"August 10, 2005","format":false,"excerpt":"I've enjoyed quite a few of the tips in other people's Oracle-related blogs (see the links in the right hand pane) so thought I'd chuck in a few as well. This one's an old one, so many of you will know about it already, but for those that don't ...In\u2026","rel":"","context":"With 3 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1417,"url":"http:\/\/orcldoug.com\/blog\/2008\/06\/08\/real-application-testing-and-more-relinking\/","url_meta":{"origin":1328,"position":2},"title":"Real Application Testing and more Relinking","date":"June 8, 2008","format":false,"excerpt":"I'd been thinking of blogging about the appearance of Real Application Testing in 10.2.0.4 since I noticed it post-upgrade, just before the course in Prague. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsIt looked like a\u2026","rel":"","context":"With 9 comments","img":{"alt_text":"","src":"\/serendipity\/uploads\/xRAT_7.png.pagespeed.ic.3MsqSFp_gp.png","width":350,"height":200},"classes":[]},{"id":1271,"url":"http:\/\/orcldoug.com\/blog\/2007\/05\/21\/10-2-0-2-listener-bug-new-child-listener-process-forked\/","url_meta":{"origin":1328,"position":3},"title":"10.2.0.2 Listener bug, new child listener process forked","date":"May 21, 2007","format":false,"excerpt":"Today I solved a nasty intermittent problem we'd been having on one of our Production servers so I thought I'd blog about it here in case it saves someone else some pain. The symptoms were 1) No-one was able to connect to the database. 2) There were two listener processes\u2026","rel":"","context":"With 16 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1336,"url":"http:\/\/orcldoug.com\/blog\/2007\/11\/04\/rac-and-aix-continued\/","url_meta":{"origin":1328,"position":4},"title":"RAC and AIX &#8211; continued","date":"November 4, 2007","format":false,"excerpt":"If I was to believe Metalink Note 368916.1 (see previous post), then the HACMP software must be installed on the server we were installing 9.2.0.8 on. However, having reviewed \/etc\/inittab and investigating whether cluster services were running, it looked like HACMP wasn't in use. We checked with one of our\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":895,"url":"http:\/\/orcldoug.com\/blog\/2005\/12\/07\/oracle-enterprise-manager-10gr2\/","url_meta":{"origin":1328,"position":5},"title":"Oracle Enterprise Manager 10gR2","date":"December 7, 2005","format":false,"excerpt":"First of all, let me be clear that I'm not a fan of GUI tools. That's not based on a misguided macho opinion that somehow you need to be able to struggle with a command line interface to prove that you're a good DBA but because :- I'm a contractor\u2026","rel":"","context":"With 9 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}