<?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 RDB problem in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140946#M14014</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing a small problem. Its much related to database but since database is of VMS, i thot to post it over here. RDB behaviour is bit different from Oracle DB 9i and 10g.&lt;BR /&gt;&lt;BR /&gt;I have openend session of SQL on two telnet terminal attahced to VMS server.&lt;BR /&gt;Using SQL command I attached to the same database in both the terminals. Now, in one terminal I give a command to read a particular record from the database and I got the record displayed on the screen. and then in the second terminal I gave the command to delete the same record from the database but after this it doesn't come to SQL prompt unless and untill I commit from the first terminal.&lt;BR /&gt;&lt;BR /&gt;I just want to know is there a way by which I can avoid it.&lt;BR /&gt;Means when I read a document I don't want any other process to be blocked to delete the same document.&lt;BR /&gt;&lt;BR /&gt;Hope I am clear with my problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
    <pubDate>Wed, 06 Feb 2008 05:57:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2008-02-06T05:57:57Z</dc:date>
    <item>
      <title>RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140946#M14014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing a small problem. Its much related to database but since database is of VMS, i thot to post it over here. RDB behaviour is bit different from Oracle DB 9i and 10g.&lt;BR /&gt;&lt;BR /&gt;I have openend session of SQL on two telnet terminal attahced to VMS server.&lt;BR /&gt;Using SQL command I attached to the same database in both the terminals. Now, in one terminal I give a command to read a particular record from the database and I got the record displayed on the screen. and then in the second terminal I gave the command to delete the same record from the database but after this it doesn't come to SQL prompt unless and untill I commit from the first terminal.&lt;BR /&gt;&lt;BR /&gt;I just want to know is there a way by which I can avoid it.&lt;BR /&gt;Means when I read a document I don't want any other process to be blocked to delete the same document.&lt;BR /&gt;&lt;BR /&gt;Hope I am clear with my problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Wed, 06 Feb 2008 05:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140946#M14014</guid>
      <dc:creator />
      <dc:date>2008-02-06T05:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140947#M14015</link>
      <description>Perhaps you started a read/write transaction on session A, retry with a START TRANSACTION READ ONLY first.&lt;BR /&gt;&lt;BR /&gt;It would help, if you tell us the exact commands used and message from Rdb/VMS.&lt;BR /&gt;&lt;BR /&gt;regards kalle</description>
      <pubDate>Wed, 06 Feb 2008 06:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140947#M14015</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-02-06T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140948#M14016</link>
      <description>Note:&lt;BR /&gt;&lt;BR /&gt;If you are interested in Rdb, a visit to &lt;BR /&gt;&lt;A href="http://www.jcc.com/listserver.htm" target="_blank"&gt;http://www.jcc.com/listserver.htm&lt;/A&gt;&lt;BR /&gt;may be helpful. You can subscribe to their rdb-mailing list.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 06 Feb 2008 06:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140948#M14016</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-02-06T06:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140949#M14017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Exact commands are:&lt;BR /&gt;&lt;BR /&gt;On session A:&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; attach 'filename audit_db';&lt;BR /&gt;SQL&amp;gt; set transaction read only wait reserving avail_table for shared read;&lt;BR /&gt;SQL&amp;gt; select * from avail_table where docount_s = 'AYI1U1UT89';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On session B:&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; attach 'filename audit_db';&lt;BR /&gt;SQL&amp;gt; set transaction read write wait reserving avail_table for shared write;&lt;BR /&gt;SQL&amp;gt; del from avail_table where docount_s = 'AYI1U1UT89';&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Wed, 06 Feb 2008 06:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140949#M14017</guid>
      <dc:creator />
      <dc:date>2008-02-06T06:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140950#M14018</link>
      <description>I'm not a RdB expert - but I'd say that session A should reserve on concurrent WRITE - allowing other processes to access the same record for altering it contents.&lt;BR /&gt;&lt;BR /&gt;On the other hand: I would expect this behaviour to happen :). In respect to additional decisions, it's even a requirement. Though the record itself would not be changed, some data could be tested and lead to certain decisions in session A. Removing the record on that moment in another session would interfere and void the conclusion without even notifying session A.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 07:01:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140950#M14018</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2008-02-06T07:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140951#M14019</link>
      <description>ajaydec,&lt;BR /&gt;&lt;BR /&gt;  That sounds correct to me. Just like RMS, a read transaction puts an implicit lock on the object read. You need to read something else of explicitly UNLOCK the object to do anything else (use COMMIT to do this in RDB). I couldn't see an equivalent of "READ WITH NO LOCK".&lt;BR /&gt;&lt;BR /&gt;  I suspect if you remove the "wait reserving" clause, your session B will fail instead of hang. &lt;BR /&gt;&lt;BR /&gt;  For this case, adding COMMIT after your SELECT will fix your problem, but if you're looking for a mechanism for session B to be able to always delete whatever it wants, without blocking, regardless of what other processes are doing, I think you need to change "FOR SHARED WRITE" to "FOR EXCLUSIVE". &lt;BR /&gt;&lt;BR /&gt;  Note that this type of behaviour is required to guarantee data base integrity.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 07:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140951#M14019</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-02-06T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140952#M14020</link>
      <description>ajaydec,&lt;BR /&gt;&lt;BR /&gt;this should work except if you have disabled snapshot mechanism&lt;BR /&gt;&lt;BR /&gt;You can on another session use the rmu command:&lt;BR /&gt;rmu/show lock/mode=block to display what is the ressource locked.&lt;BR /&gt;you can also use&lt;BR /&gt;rmu/dump/header=param yourdb and verify what is the status of the snapshot mechanism default is&lt;BR /&gt; Snapshot mode is NON-DEFERRED&lt;BR /&gt;&lt;BR /&gt;I suspect it's not what you have.&lt;BR /&gt;&lt;BR /&gt;JFP</description>
      <pubDate>Wed, 06 Feb 2008 08:10:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140952#M14020</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-02-06T08:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140953#M14021</link>
      <description>Hi Jean,&lt;BR /&gt;&lt;BR /&gt;The output is show below:&lt;BR /&gt;&lt;BR /&gt;$ rmu/dump/header=param audit_db&lt;BR /&gt;*------------------------------------------------------------------------------&lt;BR /&gt;* Oracle Rdb V7.1-500                                    6-FEB-2008 14:45:30.42&lt;BR /&gt;*&lt;BR /&gt;* Dump of Database header&lt;BR /&gt;*     Database: DKB100:[000000.AUDIT_DB]AUDIT_DB.RDB;1&lt;BR /&gt;*&lt;BR /&gt;*------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Database Parameters:&lt;BR /&gt;    Root filename is "DKB100:[000000.AUDIT_DB]AUDIT_DB.RDB;1"&lt;BR /&gt;    Created at  5-FEB-2008 14:36:01.58&lt;BR /&gt;    Oracle Rdb structure level is 71.0&lt;BR /&gt;    Maximum user count is 50&lt;BR /&gt;    Maximum node count is 16&lt;BR /&gt;    Database open mode is AUTOMATIC&lt;BR /&gt;    Database close mode is AUTOMATIC&lt;BR /&gt;    Database will be mapped in process space&lt;BR /&gt;    All transaction modes are allowed&lt;BR /&gt;    Prestarted transactions are enabled&lt;BR /&gt;    Snapshot mode is NON-DEFERRED&lt;BR /&gt;    Statistics are enabled&lt;BR /&gt;    Operator notification is disabled&lt;BR /&gt;    Logical area count is 512&lt;BR /&gt;    Storage Areas...&lt;BR /&gt;      - Active storage area count is 12&lt;BR /&gt;      - Reserved storage area count is 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;" Snapshot mode is NON-DEFERRED ".&lt;BR /&gt;&lt;BR /&gt;Do I need to change it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Wed, 06 Feb 2008 09:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140953#M14021</guid>
      <dc:creator />
      <dc:date>2008-02-06T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140954#M14022</link>
      <description>ajaydec,&lt;BR /&gt;can you reproduce the problem and post the result of&lt;BR /&gt;rmu/show lock/mode=block db&lt;BR /&gt;&lt;BR /&gt;you may need a new session or used the session which run the read-only transaction using:&lt;BR /&gt;sql&amp;gt; $rmu/show lock/mode=block db&lt;BR /&gt;&lt;BR /&gt;the first "$" character mean spawn the command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can also use rmu/sh stat db&lt;BR /&gt;and go to the screen "process Information"-&amp;gt;"Stall Messages" and use the "L" command to view the lock information, if any.&lt;BR /&gt;&lt;BR /&gt;JFP</description>
      <pubDate>Wed, 06 Feb 2008 10:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140954#M14022</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-02-06T10:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140955#M14023</link>
      <description>Hi Jean,&lt;BR /&gt;&lt;BR /&gt;Please find the required information.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ rmu/show lock/mode=block audit_db&lt;BR /&gt;================================================================================&lt;BR /&gt;SHOW LOCKS/MODE=BLOCKING Information&lt;BR /&gt;================================================================================&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Resource: record 84:67:1&lt;BR /&gt;&lt;BR /&gt;          ProcessID Process Name        Lock ID   System ID Requested Granted&lt;BR /&gt;          --------- ---------------     --------- --------- --------- -------&lt;BR /&gt;Waiting:  202054F6  _TNA282:.......     5E00A732  00010001  EX&lt;BR /&gt;Blocker:  202054F5  _TNA281:.......     550021A6  00010001            PR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you help me to find, how to interpret record by number.&lt;BR /&gt;Resource: record 84:67:1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 12:38:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140955#M14023</guid>
      <dc:creator />
      <dc:date>2008-02-06T12:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140956#M14024</link>
      <description>84:67:1 is the dbkey of the locked record&lt;BR /&gt;84 is the logical area id&lt;BR /&gt;67 the page number&lt;BR /&gt;1 the line number in the page&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can you issue under your sql sessions the command&lt;BR /&gt;"show transaction"&lt;BR /&gt;&lt;BR /&gt;to be sure that the first is a read only and the second a shared read write&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 13:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140956#M14024</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-02-06T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140957#M14025</link>
      <description>Waiting: 202054F6 _TNA282:....... 5E00A732 00010001 EX &lt;BR /&gt;Blocker: 202054F5 _TNA281:....... 550021A6 00010001 PR &lt;BR /&gt;&lt;BR /&gt;My assumption is:&lt;BR /&gt;&lt;BR /&gt;PID 202054F6 = 'session B' (delete) and PID 202054F5 = 'session A' (Select); Exclusive access to delete this record (EX) seems rather obvious to me: you'd better be sure the record is'"owned" by the deleter.&lt;BR /&gt;Perhaps it would help to remove "reserving table avail_table for shared read" in session A's SQL set transaction command. If that would set a NL (Null) lock, you're ploblem is solved (but as stated before, it depends on what the data is used for later on)</description>
      <pubDate>Wed, 06 Feb 2008 13:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140957#M14025</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2008-02-06T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140958#M14026</link>
      <description>The reserving clause in the read only only set a lock on the logical area which will only block a read write reserving the same table in exclusive write mode.&lt;BR /&gt;&lt;BR /&gt;Also if you try to select a table other that the one reserved you will have a error.&lt;BR /&gt;&lt;BR /&gt;A read only don't lock any record of the tables used in the select statement except if you have disabled the snapshot mechanism which is use by Rdb to maintain the correct isolation level (serializable). If you disabled the snap you will have a read committed isolation level for you read only transaction using transient lock on selected record.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 14:18:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140958#M14026</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-02-06T14:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140959#M14027</link>
      <description>Ajaydec,&lt;BR /&gt;&lt;BR /&gt;Make sure the table you are accessing has a snapshot file associated with it.&lt;BR /&gt;&lt;BR /&gt;Dan Herron</description>
      <pubDate>Thu, 07 Feb 2008 13:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140959#M14027</guid>
      <dc:creator>Dan Herron</dc:creator>
      <dc:date>2008-02-07T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: RDB problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140960#M14028</link>
      <description>A missing snap will generate the following error:&lt;BR /&gt;%RDB-F-SYS_REQUEST, error from system services request&lt;BR /&gt;-RDMS-F-FILACCERR, error opening storage area file xxxxxx&lt;BR /&gt;&lt;BR /&gt;and a corrupt one generate a bugcheck.&lt;BR /&gt;&lt;BR /&gt;JFP</description>
      <pubDate>Fri, 08 Feb 2008 08:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rdb-problem/m-p/4140960#M14028</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2008-02-08T08:15:17Z</dc:date>
    </item>
  </channel>
</rss>

