<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help analyzing lock trees in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275019#M101300</link>
    <description>Thank you&lt;BR /&gt;&lt;BR /&gt;the first field of the FILE-ID matches the hex digits next to "exec mode"&lt;BR /&gt;&lt;BR /&gt;I am trying to write a DCL procedure to direct database backups and similar jobs to the node that holds the lock-master for each database.   First step is to determine which node holds the lock-msater for each database.</description>
    <pubDate>Thu, 24 Feb 2011 18:34:37 GMT</pubDate>
    <dc:creator>Benjamin Levy</dc:creator>
    <dc:date>2011-02-24T18:34:37Z</dc:date>
    <item>
      <title>Help analyzing lock trees</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275017#M101298</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Locking question today&lt;BR /&gt;&lt;BR /&gt;Running Oracle CODASYL DBMS, I have two databases open on the same disk.&lt;BR /&gt;I have found the two locks in SDA for these two databases, but I can't&lt;BR /&gt;recall how to trace down which lock is for which database?&lt;BR /&gt;&lt;BR /&gt;Thx for any help you can provide!&lt;BR /&gt;&lt;BR /&gt;Ben&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ dbo/sho sys&lt;BR /&gt;Oracle CODASYL DBMS V7.2-20 on node ITAWSB 24-FEB-2011 10:22:32.33&lt;BR /&gt;    - monitor started 19-DEC-2010 02:24:39.22 (uptime 67 07:57:53)&lt;BR /&gt;    - monitor log filename is "MONITOR1:[DBMMON_ITAWSB]DBMMON.LOG;172"&lt;BR /&gt;&lt;BR /&gt;database DSA299:[COMETS4.DATABASE]COMETS.ROO;1&lt;BR /&gt;    - opened 19-DEC-2010 02:24:53.42 (elapsed 67 07:57:38)&lt;BR /&gt;    * database is opened by an operator&lt;BR /&gt;    - current after-image journal file is&lt;BR /&gt;      WS_AIJ2:[COMETS4.AIJ]COMETS4.AIJ;1&lt;BR /&gt;    - 52 active database users on this node&lt;BR /&gt;    - database is also open on the following node:&lt;BR /&gt;      - ITAWSA as monitor ID 2&lt;BR /&gt;&lt;BR /&gt;database DSA299:[COMETS8.DATABASE]COMETS.ROO;1&lt;BR /&gt;    - opened 18-FEB-2011 14:21:53.03 (elapsed 5 20:00:39)&lt;BR /&gt;    * database is opened by an operator&lt;BR /&gt;    - current after-image journal file is&lt;BR /&gt;      WS_AIJ2:[COMETS8.AIJ]COMETS8.AIJ;1&lt;BR /&gt;    - 20 active database users on this node&lt;BR /&gt;    - database is also open on the following node:&lt;BR /&gt;      - ITAWSA as monitor ID 2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ sh dev dsa299&lt;BR /&gt;Device                  Device           Error    Volume         Free  Trans Mnt&lt;BR /&gt; Name                   Status           Count     Label        Blocks Count Cnt&lt;BR /&gt;DSA299:                 Mounted              0  WS_DB2       401869312  1284   2&lt;BR /&gt;$1$DGA3299:   (ITAWSB)  ShadowSetMember      0  (member of DSA299:)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ ana/sys&lt;BR /&gt;SDA&amp;gt; SHOW LOCK 7D065C2D            &lt;BR /&gt;Lock id:  7D065C2D            PID:    0001003F   Flags: CONVERT SYNCSTS SYSTEM &lt;BR /&gt;Par. id:  00000000            SUBLCKs:     254                                 &lt;BR /&gt;LKB:      FFFFFFFF.74C45880   BLKAST: 00000000                                 &lt;BR /&gt;Priority:     0000                                                             &lt;BR /&gt;Granted at    NL   00000000-FFFFFFFF                                           &lt;BR /&gt;RSB:               FFFFFFFF.6E8595C0                                           &lt;BR /&gt;Resource:          00000044 00000028  (...D...  Status: PROTCT  VALBLKR VALBLKW&lt;BR /&gt; Length   28       20324244 5F535702  .WS_DB2                                  &lt;BR /&gt; Exec. mode        00720020 20202020       .r.                                 &lt;BR /&gt; System            00000000 0000011E  ........                                 &lt;BR /&gt;                                                                               &lt;BR /&gt;                                                                               &lt;BR /&gt;                                                                               &lt;BR /&gt;                                                                               &lt;BR /&gt;SDA&amp;gt; SHOW LOCK 04001ADD&lt;BR /&gt;Lock id:  04001ADD            PID:    0001003F   Flags: CONVERT SYNCSTS SYSTEM &lt;BR /&gt;Par. id:  00000000            SUBLCKs:     257                                 &lt;BR /&gt;LKB:      FFFFFFFF.738CC180   BLKAST: 00000000                                 &lt;BR /&gt;Priority:     0000                                                             &lt;BR /&gt;Granted at    NL   00000000-FFFFFFFF                                           &lt;BR /&gt;RSB:               FFFFFFFF.6E8AED00                                           &lt;BR /&gt;Resource:          00000044 00000028  (...D...  Status: PROTCT  VALBLKR VALBLKW&lt;BR /&gt; Length   28       20324244 5F535702  .WS_DB2                                  &lt;BR /&gt; Exec. mode        000D0020 20202020       ...                                 &lt;BR /&gt; System            00000000 00000133  3.......</description>
      <pubDate>Thu, 24 Feb 2011 17:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275017#M101298</guid>
      <dc:creator>Benjamin Levy</dc:creator>
      <dc:date>2011-02-24T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help analyzing lock trees</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275018#M101299</link>
      <description>Why do you care? Just curious?&lt;BR /&gt;What problem are you really trying to solve?&lt;BR /&gt;&lt;BR /&gt;Personally I have not touched Locking for the DMBS Codasyl database in decades.&lt;BR /&gt;&lt;BR /&gt;But our friends at Software Concepts International seems to have posted a nice write-up&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sciinc.com/remotedba/techinfo/articles/pi3a5.asp" target="_blank"&gt;http://www.sciinc.com/remotedba/techinfo/articles/pi3a5.asp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"DBO/SHOW LOCKS (V4.3 AND BEYOND)&lt;BR /&gt;Version 4.3 significantly enhanced the lock summary reports with the addition of the RMU or DBO/SHOW LOCKS command. This new command allows you to show processes that are blocked by another process, processes that are blocking other processes and to select locks held by a specific process. "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just looking at your output, that "WS_DB2" is probably the device lock name (GETDVI DEVLOCKNAM) for the disk with the root file.&lt;BR /&gt;The other components might just be the (HEX) file ID for a root file.&lt;BR /&gt;Try $ DIR /FILE DSA299:[COMETS4.DATABASE]COMETS.ROO;1&lt;BR /&gt;&lt;BR /&gt;or use F$FILE ( ..., "FID")&lt;BR /&gt;Stick in a DCL symbol SHOW to see the HEX equivalent.&lt;BR /&gt;&lt;BR /&gt;You also want to check SDA&amp;gt; SHOW RESOURCE/LOCK=04001ADD&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275018#M101299</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-02-24T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help analyzing lock trees</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275019#M101300</link>
      <description>Thank you&lt;BR /&gt;&lt;BR /&gt;the first field of the FILE-ID matches the hex digits next to "exec mode"&lt;BR /&gt;&lt;BR /&gt;I am trying to write a DCL procedure to direct database backups and similar jobs to the node that holds the lock-master for each database.   First step is to determine which node holds the lock-msater for each database.</description>
      <pubDate>Thu, 24 Feb 2011 18:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275019#M101300</guid>
      <dc:creator>Benjamin Levy</dc:creator>
      <dc:date>2011-02-24T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help analyzing lock trees</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275020#M101301</link>
      <description>see my last comment for the solution</description>
      <pubDate>Thu, 24 Feb 2011 18:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275020#M101301</guid>
      <dc:creator>Benjamin Levy</dc:creator>
      <dc:date>2011-02-24T18:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help analyzing lock trees</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275021#M101302</link>
      <description>Just looking at your output, that "WS_DB2" is probably the device lock name (GETDVI DEVLOCKNAM) for the disk with the root file.&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;If it is the lock name, F$GETDVI/LIB$GETDVI will not return the same string as SYS$GETDVI.&lt;BR /&gt;&lt;BR /&gt;The DCL lexical and RTL (lib$) variant return a hexified encoding of the string, whereas the SYS$ form does return the expected ASCII string.&lt;BR /&gt;&lt;BR /&gt;This is a day-1 bug.  There was pretty good disagreement between me and a few folks in VMS Engineering on whether or not it should be fixed.  I lost to the possibility that there may be software expects that (weird) output.  I think the fact that the three different forms of the service are not consistent is a potentially bigger problem.&lt;BR /&gt;&lt;BR /&gt;                -- Rob</description>
      <pubDate>Thu, 24 Feb 2011 18:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-analyzing-lock-trees/m-p/5275021#M101302</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2011-02-24T18:58:55Z</dc:date>
    </item>
  </channel>
</rss>

