{"id":496,"date":"2008-12-17T14:40:35","date_gmt":"2008-12-17T12:40:35","guid":{"rendered":"http:\/\/www.ora-solutions.net\/web\/?p=496"},"modified":"2009-10-22T13:36:47","modified_gmt":"2009-10-22T11:36:47","slug":"installing-ltom-for-rac-hanganalyze","status":"publish","type":"post","link":"https:\/\/www.ora-solutions.net\/web\/2008\/12\/17\/installing-ltom-for-rac-hanganalyze\/","title":{"rendered":"Installing LTOM for RAC Hanganalyze"},"content":{"rendered":"<p>I have recently written a short installation instruction for a customer to use LTOM for RAC hanganalyze.<\/p>\n<ul>\n<li>Download von MetaLink Note 352363.1:<br \/>\nhttps:\/\/metalink2.oracle.com\/cgi-bin\/cr\/getfile.cgi?p_attid=352363.1:ltom<\/li>\n<\/ul>\n<ul>\n<li>unzip as User Oracle in directory with sufficient space. subdir ltom will be created<\/li>\n<\/ul>\n<blockquote><p>tar xfv ltom411.tar<\/p><\/blockquote>\n<ul>\n<li>Install statspack<\/li>\n<\/ul>\n<ul>\n<li>Installation: db account ltom\/ltom will be created<\/li>\n<\/ul>\n<blockquote><p>Java Binary in path<br \/>\nwhich java<\/p>\n<p>if not, place java in path in ~\/.bash_profile:<br \/>\nals User oracle: add $ORACLE_HOME\/jre\/1.4.2\/bin to PATH Variable<\/p>\n<p>e.g.:<br \/>\nexport PATH=$PATH:$ORACLE_HOME\/bin:$ORACLE_HOME\/jre\/1.4.2\/bin<\/p>\n<p>Put TOM_HOME in .~\/.bash_profile:<br \/>\nexport TOM_HOME=\/home\/oracle\/ltom\/tom_base\/install\/..\/tom<\/p>\n<p>Sourcen of TOM_HOME<\/p>\n<p>cd \/home\/oracle\/ltom\/tom_base\/install<br \/>\n.\/autoinstall.sh<\/p>\n<p>Sample Output:<br \/>\n[oracle@ora-vm1 install]$ .\/autoinstall.sh<br \/>\nTOM_HOME=\/home\/oracle\/ltom\/tom_base\/install\/..\/tom<br \/>\nrm: cannot remove `autoinstall.log&#8217;: No such file or directory<\/p>\n<p>Preparing to install LTOM v4.0.0&#8230;<\/p>\n<p>Checking your Oracle Environment&#8230;<\/p>\n<p>ORACLE_HOME=\/u01\/app\/oracle\/product\/10.2.0<br \/>\nORACLE_SID=ORA102<br \/>\nTNS_ADMIN=<br \/>\nTOM_HOME=\/home\/oracle\/ltom\/tom_base\/install\/..\/tom<\/p>\n<p>Is this the correct Oracle environment you wish to use for installing LTOM?<br \/>\nHit Return to Accept Default:<br \/>\n============================&gt; \\c<\/p>\n<p>Continuing the install with this environment<\/p>\n<p>Checking for Java&#8230;<\/p>\n<p>Java found.<\/p>\n<p>Checking for top utility&#8230;<br \/>\nFound top utility.<\/p>\n<p>Checking for vmstat utility&#8230;<br \/>\nFound vmstat utility.<\/p>\n<p>Need to run some sql now to create TOM user<br \/>\nit Return to allow setup to do this for you, enter other to do this manually:<br \/>\n============================&gt; \\c<\/p>\n<p>Tom user created successfully.<br \/>\nWarning&#8230;Please change tom password immediately!<\/p>\n<p>Grant user Tom successful.<br \/>\nCreate package dbmssupp successful.<br \/>\nGrant execute on dbmssupp successful.<\/p>\n<p>Checking for statspack&#8230;<\/p>\n<p>Cannot verify statspack is installed on your system.<br \/>\nLTOM requires statspack to be installed to work properly.<\/p>\n<p>Enter your email id to get notification of hangs via email&#8230;<br \/>\nHit Return to ignore hang notification via email:<br \/>\n============================&gt; \\c<\/p>\n<p>Configuring tom_deploy.properties file&#8230;<\/p>\n<p>TOM\/LTOM successfully installed.<\/p>\n<p>Please review any messages you received above.<\/p>\n<p>REMEMBER: You must have TOM_HOME defined and java in your PATH<br \/>\nbefore you can run TOM\/LTOM.<\/p><\/blockquote>\n<ul>\n<li>Configuration<\/li>\n<\/ul>\n<blockquote><p>Change ltom\/tom_base\/tom\/init\/hangDetect.properties<\/p>\n<p>from:<br \/>\n#RAC_AWARE=TRUE<br \/>\nHANGANALYZE=A<br \/>\nSYSTEMSTATE=266<br \/>\nDELAY=30<br \/>\nHANGANALYZE=A<br \/>\nSYSTEMSTATE=266<\/p>\n<p>to:<br \/>\nRAW_AWARE=TRUE<br \/>\nHANGANALYZE=A<br \/>\nSYSTEMSTATE=266<br \/>\nDELAY=30<br \/>\nHANGANALYZE=A<br \/>\nSYSTEMSTATE=266<\/p>\n<p>Change tom db passwort:<\/p>\n<p>SQL&gt; alter user tom identified by secret;<\/p>\n<p>Add credentials to config file:<\/p>\n<p>vi tom_deploy.properties<\/p>\n<p>DB_USERID=tom<br \/>\n:q!<\/p>\n<p>.\/startltom.sh -p<br \/>\nEnter same password as in sqlplus. Password will be saved encrypted in tom_deploy.properties<\/p><\/blockquote>\n<ul>\n<li>edit tom_deploy.properties to decide which of the 3 modules should be running during background operations: hangdetect, profiler, session recorder<\/li>\n<\/ul>\n<ul>\n<li>Start\/Stop Scripts<\/li>\n<\/ul>\n<blockquote><p>vi start_ltom.sh<br \/>\n#!\/bin\/bash<br \/>\n. ~\/.bash_profile<br \/>\nnohup $TOM_HOME\/startltom.sh -s &amp;<\/p>\n<p>vi stop_ltom.sh<br \/>\n#!\/bin\/bash<br \/>\ntouch $TOM_HOME\/tmp\/hang.stop<br \/>\ntouch $TOM_HOME\/tmp\/profile.stop<br \/>\ntouch $TOM_HOME\/tmp\/session.stop<\/p>\n<p>chmod u+x start_ltom.sh<br \/>\nchmod u+x stop_ltom.sh<\/p><\/blockquote>\n<ul>\n<li>If you want\u00a0 to run ltom during a specific timeframe, use cron (as user oracle)<\/li>\n<\/ul>\n<blockquote><p>crontab -e<br \/>\n45 01 * * *\u00a0\u00a0\u00a0\u00a0 \/home\/oracle\/ltom\/start_ltom.sh &gt;\/dev\/null 2&gt;\/dev\/null &lt;\/dev\/null<br \/>\n00 05 * * *\u00a0\u00a0\u00a0\u00a0 \/home\/oracle\/ltom\/start_ltom.sh &gt;\/dev\/null 2&gt;\/dev\/null &lt;\/dev\/null<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I have recently written a short installation instruction for a customer to use LTOM for RAC hanganalyze. Download von MetaLink Note 352363.1: https:\/\/metalink2.oracle.com\/cgi-bin\/cr\/getfile.cgi?p_attid=352363.1:ltom unzip as User Oracle in directory with sufficient space. subdir ltom will be created tar xfv ltom411.tar Install statspack Installation: db account ltom\/ltom will be created Java Binary in path which java [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,14,15,19,5,35],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-10g","category-11g","category-9ir2","category-metalink","category-oracle-database","category-real-application-clusters-oracle-database-2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":16,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/496\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}