<?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: Multiple errors SQL process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360196#M93418</link>
    <description>Thanks Chris.  I will look into that as well.</description>
    <pubDate>Wed, 18 Feb 2009 12:36:00 GMT</pubDate>
    <dc:creator>odwillia</dc:creator>
    <dc:date>2009-02-18T12:36:00Z</dc:date>
    <item>
      <title>Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360187#M93409</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Our programmers are seeing an issue wherein some of our users are getting different (incorrect) SQL results. All of them are running the same query in the same environment but for whatever reason the result set is different. They believe that this is due to a profile issue.  However these users have run the same process previously without error. To test we matched profiles with a user that received the correct results but the test user still got the same incorrect SQL results.&lt;BR /&gt;&lt;BR /&gt;Then the programmer received the following errors for the processusing a test account we created:&lt;BR /&gt;&lt;BR /&gt;RDB-F-SYS_REQUEST, error from system services request   &lt;BR /&gt;&lt;BR /&gt;            The programmer  tried the SQL under TEST_DB &amp;amp; executed to create the CSV file out on PCDATA.  This is the error message at the bottom of the SQLOUT file found in this user account home directory.&lt;BR /&gt;&lt;BR /&gt;%RDB-F-SYS_REQUEST, error from system services request&lt;BR /&gt;-COSI-E-OPENERR, cannot open file&lt;BR /&gt;-RDMS-F-ERROPENOUT, error opening RMADSK04:[SORT_WORKSPACE_2]SORTWORK.TMP; as output&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;&lt;BR /&gt;When the programmer logged out of the test account she received these errors:&lt;BR /&gt;&lt;BR /&gt;%BAS-E-FATSYSIO_, Fatal system I/O failure                        │ │[ ] 80  │&lt;BR /&gt;-BAS-I-ON_CHAFIL, on channel 5 for file TT:[].; at user PC 00000000 │[ &lt;BR /&gt;________________________________________&lt;BR /&gt;] 132 │&lt;BR /&gt;-RMS-F-IFI, invalid internal file identifier (IFI) value──────────┘ └────────┘&lt;BR /&gt;  TEST_DB      logged out at 13-FEB-2009 15:44:28.44─────────────────────────┐&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you need more info or this is not clear.&lt;BR /&gt;&lt;BR /&gt;We believe this is an application issue.&lt;BR /&gt;&lt;BR /&gt;As always I appreciate your assistance.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2009 13:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360187#M93409</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-17T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360188#M93410</link>
      <description>&amp;gt;&amp;gt; They believe that this is due to a profile issue. &lt;BR /&gt;&lt;BR /&gt;Please try to explain in OpenVMS terms what you mean with 'profile'. SYSUAF account attributes? Logical names / symbols perhpas set up by a login.com?  A logical name table being included? Some RDB settings?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; However these users have run the same process previously without error. &lt;BR /&gt;&lt;BR /&gt;So something changed. That 'profile'?&lt;BR /&gt;Or maybe just 'more data' requireing an external sort now, versus memory sort before?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; To test we matched profiles with a user that received the correct results but the test user still got the same incorrect SQL results.&lt;BR /&gt;&lt;BR /&gt;Can you identify the difference between a workgn and failing 'profile'?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; -RDMS-F-ERROPENOUT, error opening RMADSK04:[SORT_WORKSPACE_2]SORTWORK.TMP; as output&lt;BR /&gt;&amp;gt;&amp;gt; -RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;&lt;BR /&gt;That's a clear, and hard, error. Does it make sence? &lt;BR /&gt;- $DIRECTORY/SECURITY RMADSK04:[000000]SORT_WORKSPACE_2.DIR&lt;BR /&gt;- What identifiers does the user have?&lt;BR /&gt;- If you temporarely open remove protection on that directory, does that problem go away?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; When the programmer logged out of the test account she received these errors:&lt;BR /&gt;&amp;gt;&amp;gt; %BAS-E-FATSYSIO_, Fatal system I/O failure &amp;gt;&amp;gt; -BAS-I-ON_CHAFIL, on channel 5 for file -&amp;gt;&amp;gt; RMS-F-IFI, invalid internal file identifier (IFI) value&lt;BR /&gt;&lt;BR /&gt;Don't worry too much about that, just now.&lt;BR /&gt;It means BASIC asked RMS to close a file using a FAB which was either completely invalid, or had already been closed. &lt;BR /&gt;Typically it suggest that some code stomped over dynamic memory corrupting some of the BASIC RTL structures. Most likely an error handler. This is not good, and ought to be figured out some say, but it is likely to be a secondary problem just now.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein.</description>
      <pubDate>Tue, 17 Feb 2009 13:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360188#M93410</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-17T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360189#M93411</link>
      <description>I'm not sure if it's related to your SQL problems, but your SORT "privilege" error is usually caused when you redefine SYS$SCRATCH to be a common directory for your users.  It becomes a timing issue with the .tmp files being created there.  You will find it's an intermittent error depending on timing of processes using SORT.  IMO, SORT should be using uniquely named temp files but that's not the case right now.  You probably have good reason for making SYS$SCRATCH a common area (such as disk space reasons) but you might wanna try deassigning it temporarily for test purposes to see if that's your problem.  You would need sufficient disk space for the home directories of the users if you deassign SYS$SCRATCH.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2009 13:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360189#M93411</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-02-17T13:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360190#M93412</link>
      <description>&amp;gt;&amp;gt;Please try to explain in OpenVMS terms what you mean with 'profile'. SYSUAF account attributes? Logical names / symbols perhpas set up by a login.com? A logical name table being included? Some RDB settings?&lt;BR /&gt;&lt;BR /&gt;By profile I mean the SYSUAF account attributes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;So something changed. That 'profile'?&lt;BR /&gt;Or maybe just 'more data' requireing an external sort now, versus memory sort before?&lt;BR /&gt;&lt;BR /&gt;We tested by making the user accounts match exactly. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Can you identify the difference between a workgn and failing 'profile'?&lt;BR /&gt;&lt;BR /&gt;No difference that I can see.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; -RDMS-F-ERROPENOUT, error opening RMADSK04:[SORT_WORKSPACE_2]SORTWORK.TMP; as output&lt;BR /&gt;&amp;gt;&amp;gt; -RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;&lt;BR /&gt;That's a clear, and hard, error. Does it make sence? &lt;BR /&gt;&lt;BR /&gt;- $DIRECTORY/SECURITY RMADSK04:[000000]SORT_WORKSPACE_2.DIR&lt;BR /&gt;- What identifiers does the user have?&lt;BR /&gt;- If you temporarely open remove protection on that directory, does that problem go away?&lt;BR /&gt;&lt;BR /&gt;I'll test this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Hope this helps some,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;Every little bit helps. Thanks.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2009 14:12:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360190#M93412</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-17T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360191#M93413</link>
      <description>&amp;gt;&amp;gt;I'm not sure if it's related to your SQL problems, but your SORT "privilege" error is usually caused when you redefine SYS$SCRATCH to be a common directory for your users. It becomes a timing issue with the .tmp files being created there. You will find it's an intermittent error depending on timing of processes using SORT. IMO, SORT should be using uniquely named temp files but that's not the case right now. You probably have good reason for making SYS$SCRATCH a common area (such as disk space reasons) but you might wanna try deassigning it temporarily for test purposes to see if that's your problem. You would need sufficient disk space for the home directories of the users if you deassign SYS$SCRATCH.&lt;BR /&gt;&lt;BR /&gt;How can I tell if I have redefinned SYS$SCRATCH?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2009 17:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360191#M93413</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-17T17:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360192#M93414</link>
      <description>$ SHOW LOGICAL SYS$SCRATCH&lt;BR /&gt;&lt;BR /&gt;normally SYS$SCRATCH is defined to be your login directory.  Some sites define a system-wide (or group-wide, etc.) logical for SYS$SCRATCH to a common area for all users.&lt;BR /&gt;&lt;BR /&gt;I've seen this SORT problem a few times... a user owns a sort work temp file in the directory... another user tries to open the same file name and gets the privilege error.  All my users have their own accounts.  If you have multiple users using the same account name, you'd probably have a more subtle problem.</description>
      <pubDate>Tue, 17 Feb 2009 18:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360192#M93414</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-02-17T18:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360193#M93415</link>
      <description>This what I get for a logical for SYS$SCRATCH and the disk with the error.&lt;BR /&gt;&lt;BR /&gt;$ SHOW LOGICAL SYS$SCRATCH&lt;BR /&gt;   "SYS$SCRATCH" = "CLUSTERDISK:[CONRES]" (LNM$JOB_8213F8C0)&lt;BR /&gt;&lt;BR /&gt;$ sh logical RMADSK04&lt;BR /&gt;   "RMADSK04" = "$1$DGA858:" (LNM$SYSTEM_TABLE)&lt;BR /&gt;$&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2009 19:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360193#M93415</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-17T19:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360194#M93416</link>
      <description>&lt;BR /&gt;It looks like "CLUSTERDISK:[CONRES]" is your login home directory.  That doesn't match the work directory shown in your original post (RMADSK04:[SORT_WORKSPACE_2]).  What I'm trying to tell you is that the accounts running the application (and experiencing the problem) must be using/sharing the same SORT temp directory.  You might wanna try to separate that (just to see if that's your problem).</description>
      <pubDate>Tue, 17 Feb 2009 20:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360194#M93416</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-02-17T20:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360195#M93417</link>
      <description>I believe that there is also a logical that can be used to point Rdb sortwork files to a particular directory. Given that RMADSK04:[SORT_WORKSPACE_2] is not your home directory, I would be checking to see whether that logical is turned on.  I don't remember it's name, but a "Show log rdm*" should pick it up - or just check the documentation to be sure.&lt;BR /&gt;&lt;BR /&gt;It could be that the working user has accessto this directory, whereas the other users do not.&lt;BR /&gt;&lt;BR /&gt;Why then would it have worked previously ?&lt;BR /&gt;- maybe the logical has only been defined recently&lt;BR /&gt;- maybe the query didn't use to require a sort work file, but something has changed in the optimisation (often cardinalities), and now it does.&lt;BR /&gt;&lt;BR /&gt;Just one more idea...&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;chris</description>
      <pubDate>Tue, 17 Feb 2009 23:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360195#M93417</guid>
      <dc:creator>Chris Barratt</dc:creator>
      <dc:date>2009-02-17T23:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360196#M93418</link>
      <description>Thanks Chris.  I will look into that as well.</description>
      <pubDate>Wed, 18 Feb 2009 12:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360196#M93418</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-18T12:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360197#M93419</link>
      <description>If it is a privilege-problem....&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;$ SET AUDIT/ALARM/ENABLE=FILE=FAIL&lt;BR /&gt;$ REPLY/ENABLE&lt;BR /&gt;&lt;BR /&gt;and hopefully you will get an event telling you&lt;BR /&gt;what file(s) that don't allow access.&lt;BR /&gt;&lt;BR /&gt;Hakan</description>
      <pubDate>Wed, 18 Feb 2009 12:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360197#M93419</guid>
      <dc:creator>Hakan Zanderau ( Anders</dc:creator>
      <dc:date>2009-02-18T12:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360198#M93420</link>
      <description>The sort files come per default in sys$scratch. If they exist, a new version is created. And that's were it goes wrong in your case. The previous version has a different owner.&lt;BR /&gt;&lt;BR /&gt;If you define sys$scratch as a common directory you will get sorts that use the same workfiles (the pid is not in the work file name, bad program).&lt;BR /&gt;&lt;BR /&gt;Solution 1 : put an acl on the directory so that every file created is rwed by anyone.&lt;BR /&gt;&lt;BR /&gt;Solution 2 : in login.com you define sortwork (and sortworkN if you also use /work=N) as a unique directory (e.g. [sortwork.xxxxxxxx] where xxxxxxxx is the pid) and also create that directory. Then the collision is gone.&lt;BR /&gt;&lt;BR /&gt;Solution 3 : don't use workfiles. Increase PGFLQ in the sysuaf until sortfiles are no longer used (will consume memory). But you're never sure that it will be high enough.&lt;BR /&gt;&lt;BR /&gt;I also wonder if the sort always succeeds correctly when 2 processes are competing for the files.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 18 Feb 2009 12:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360198#M93420</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-18T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360199#M93421</link>
      <description>It could be an Rdb logical as previous poster mentioned, but the bottom line is the utility that's creating the file is SORT and SORT is not using uniquely named temp files.  So if you had a user who exited abnormally and the sort work file in the scratch directory didn't get cleaned up, another account could get a privilege error trying to use the same file name.&lt;BR /&gt;&lt;BR /&gt;Here is the email thread of when we were experiencing the SORT "insufficient privilege" problem.  Hope it helps...&lt;BR /&gt;&lt;BR /&gt;From: xxxx, Kathy&lt;BR /&gt;Sent: Thursday, March 27, 2008 2:12 PM&lt;BR /&gt;To: Zamora, Edgar; xxxxxx, Tom&lt;BR /&gt;Subject: RE: CLCC - Protections&lt;BR /&gt;&lt;BR /&gt;Thanks for looking into this.  The redefinition of SYS$SCRATCH also seems to be working.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;&lt;BR /&gt;From: Zamora, Edgar &lt;BR /&gt;Sent: Thursday, March 27, 2008 1:27 PM&lt;BR /&gt;To: xxxx, Kathy; xxxxxx, Tom&lt;BR /&gt;Subject: RE: CLCC - Protections&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;I deleted those.  It should be fine now.&lt;BR /&gt;&lt;BR /&gt;Ok, I tested this... it looks like the sort utility creates these temp files (and normally deletes them when done, but if thereâ  s an error they may not get deleted).  The problem arises when two people use sort simultaneously  (DTR uses sort, I also discovered R2CONSOL uses sort because this problem arose in the RDA system while a user was running R2CONSOL)  The sort utility creates these temp files with the protection (S:RWED,O:RWED,G,W) overriding any default protection we specify.  So... bottom line the problem is because we use a common scratch/work directory... I don't know how to fix this other than recommending that you retry at a later time if you encounter the problem (deleting the sys$scratch:sortwork*.tmp.* files will work as long as the other user no longer has these files open).&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;From: xxxx, Kathy &lt;BR /&gt;Sent: Thursday, March 27, 2008 1:19 PM&lt;BR /&gt;To: Zamora, Edgar; xxxxxx, Tom&lt;BR /&gt;Subject: RE: CLCC - Protections&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;There are old files in SYS$SCRATCH so it still does not work for me.&lt;BR /&gt;&lt;BR /&gt;$ cat sys$scratch:sort*&lt;BR /&gt;&lt;BR /&gt;Directory $1$DGA426:[SCRATCH]&lt;BR /&gt;&lt;BR /&gt;SORTWORK0.TMP;1            0/3600     21-MAR-2008 10:37:02.97  [1,1]            &lt;BR /&gt;&lt;BR /&gt;SORTWORK1.TMP;1            0/4400     21-MAR-2008 10:37:02.97  [1,1]            &lt;BR /&gt;&lt;BR /&gt;Total of 2 files, 0/8000 blocks.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;SYS$SCRATCH was already defined to be my users directory.  But I believe the MJ_SITE_TABLE definition was overriding that.  So, I have now defined it in my LOGIN.COM to be in the MJ_PROCESS_SPECIFIC table and that seems to be working.  Thanks.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;$ show log sys$scratch&lt;BR /&gt;&lt;BR /&gt;   "SYS$SCRATCH" = "SYS$USERS:[Kxxxx]" (MJ_PROCESS_SPECIFIC)&lt;BR /&gt;&lt;BR /&gt;   "SYS$SCRATCH" = "$1$DGA426:[SCRATCH]" (MJ_SITE_TABLE)&lt;BR /&gt;&lt;BR /&gt;   "SYS$SCRATCH" = "SYS$USERS:[Kxxxx]" (LNM$JOB_82B44900)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;From: Zamora, Edgar &lt;BR /&gt;Sent: Thursday, March 27, 2008 1:02 PM&lt;BR /&gt;To: xxxxxx, Tom; xxxx, Kathy&lt;BR /&gt;Subject: RE: CLCC - Protections&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I just realized I didn't explain it clearly... someone was running something that used the same name temp file.  That is why you got the error.  If you run it at another time it will probably work.  Like right now, no one else has a file named sortxxxx  in sys$scratch.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;From: Zamora, Edgar &lt;BR /&gt;Sent: Thursday, March 27, 2008 12:56 PM&lt;BR /&gt;To: xxxxxx, Tom; xxxx, Kathy&lt;BR /&gt;Subject: RE: CLCC - Protections&lt;BR /&gt; &lt;BR /&gt;This problem just occurred in RDA.  It's not a privilege problem per se, because the directory is actually wide open.  However, because MJ redefines sys$scratch to be that one central directory (instead of the VMS default that your login dir is your scratch dir) identically named files get created by some software and this results in conflict.  This is the main reason why in most MJ scripts, the PID or some unique id is used as part of the file name of a temp file so there's no conflict.&lt;BR /&gt;&lt;BR /&gt;I think we need to discuss this a bit more, but sys$scratch is already wide open.  Datatrieve (or Sort) is not creating uniquely named work files.&lt;BR /&gt;&lt;BR /&gt;As a workaround for your current problem, I believe if you define sys$scratch to be your login directory you will circumvent the error.&lt;BR /&gt;&lt;BR /&gt;CLCC&amp;gt; dir/secu $1$dga426:[000000]scratch&lt;BR /&gt;&lt;BR /&gt;Directory $1$DGA426:[000000]&lt;BR /&gt;&lt;BR /&gt;SCRATCH.DIR;1        [1,1]                            (RWED,RWED,RWED,RWED)&lt;BR /&gt;&lt;BR /&gt;          (DEFAULT_PROTECTION,SYSTEM:RWED,OWNER:RWED,GROUP:RWED,WORLD:RWED)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;From: xxxx, Kathy &lt;BR /&gt;Sent: Thursday, March 27, 2008 12:41 PM&lt;BR /&gt;To: Zamora, Edgar&lt;BR /&gt;Cc: xxxxxx, Tom&lt;BR /&gt;Subject: CLCC - Protections&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possible to modify the protections on the SYS_WORK directory on CLCC so that I can use Datatrieve?  When my collection of records is large, I cannot even sort the records (Datatrieve appears to sort in memory when it can and to go to disk when necessary).  Here is an example.&lt;BR /&gt;&lt;BR /&gt;$ dtr32&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; ready mag_cdd.retpost&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; find all retpost&lt;BR /&gt;&lt;BR /&gt;[23038 records found] &lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; sum 1 by rp-art&lt;BR /&gt;&lt;BR /&gt;%SORT-E-OPENOUT, error opening $1$DGA426:[SCRATCH]SORTWORK1.TMP; as output&lt;BR /&gt;&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; find first 10 retpost&lt;BR /&gt;&lt;BR /&gt;[10 records found] &lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; sum 1 by rp-art&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360199#M93421</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-02-18T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360200#M93422</link>
      <description>Ahhh... reply collisions... I didn't see Wim's response while I was writing mine... but he explained the problem clearly (I am REALLY BAD at explaining)...&lt;BR /&gt;&lt;BR /&gt;"The sort files come per default in sys$scratch. If they exist, a new version is created. And that's were it goes wrong in your case. The previous version has a different owner."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360200#M93422</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-02-18T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360201#M93423</link>
      <description>So in summary&lt;BR /&gt;&lt;BR /&gt;- is 'worked' when using the same profile because the owners of the sortwork files became the same.&lt;BR /&gt;&lt;BR /&gt;- if you use a shared scratch directory, then be sure to put an acl with option=default on that directory to allow anyone to write any file in there.&lt;BR /&gt;&lt;BR /&gt;- consider providing per-user scratch directories as is the default:... sys$login:&lt;BR /&gt;&lt;BR /&gt;- consider logical name definitions for sortwork to include a Process-ID or other, unique to the process, identifier.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360201#M93423</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-18T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360202#M93424</link>
      <description>How can I find all of the sort directories being used?</description>
      <pubDate>Wed, 18 Feb 2009 16:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360202#M93424</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-18T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360203#M93425</link>
      <description>I got it nevermind.</description>
      <pubDate>Wed, 18 Feb 2009 16:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360203#M93425</guid>
      <dc:creator>odwillia</dc:creator>
      <dc:date>2009-02-18T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple errors SQL process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360204#M93426</link>
      <description>Note that my solution 3 will speed up the sort too. You can implement it with the other solutions. If you don't have an idea of how much to increase it, increase it 10% at the time and check the result (memory usage). Note that they must login again after the modification.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 19 Feb 2009 07:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/multiple-errors-sql-process/m-p/4360204#M93426</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-19T07:15:42Z</dc:date>
    </item>
  </channel>
</rss>

