<?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: Determine who has a lock on metadata and how to unlock it in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301711#M6227</link>
    <description>&lt;P&gt;A lock on the table does not happen in metadata, but on the OS level.&lt;/P&gt;
&lt;P&gt;So if a table is locked and can't be overwritten, you can only try to find the offending processes and terminate them.&lt;/P&gt;
&lt;P&gt;If your SAS system runs on UNIX, I have a (IMO nice) workaround where I simply delete the dataset first with the operating system's rm command, and then create it. On UNIX, this is possible because file and directory information is kept in separate places. The locking process still has its handle on the physical file, but the directory reference is removed, and a new file can be created. The locking process will see the old file until the handle is released (file closed), at which point the OS also deletes the physical data.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2016 06:49:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-09-30T06:49:43Z</dc:date>
    <item>
      <title>Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301672#M6221</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read that you can determine who has a lock on metadata using the Open Metadata Interface and then use the OMI_UNLOCK_FORCE flag to unlock it. &amp;nbsp;I am firstly trying to see who has the lock but cannot work out how to get this information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using proc metadata as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc metadata&lt;BR /&gt;in='&amp;lt;GetMetadata&amp;gt;&lt;BR /&gt; &amp;lt;Metadata&amp;gt;&lt;BR /&gt; &amp;lt;PhysicalTable Id="A57OBXEE.BE000MIP" Name="" Desc="" LockedBy=""&amp;gt;&lt;BR /&gt; &amp;lt;/PhysicalTable&amp;gt;&lt;BR /&gt; &amp;lt;/Metadata&amp;gt;&lt;BR /&gt; &amp;lt;NS&amp;gt;SAS&amp;lt;/NS&amp;gt;&lt;BR /&gt; &amp;lt;Flags&amp;gt;0&amp;lt;/Flags&amp;gt;&lt;BR /&gt; &amp;lt;Options/&amp;gt;&lt;BR /&gt;&amp;lt;/GetMetadata&amp;gt;';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which then returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;GetMetadata&amp;gt;&amp;lt;Metadata&amp;gt;&amp;lt;PhysicalTable Id="A57OBXEE.BE000MIP" Name="EDWPORT.PORTFOLIO" Desc="" &lt;BR /&gt;&lt;FONT color="#0000FF"&gt;LockedBy=""&lt;/FONT&gt;/&amp;gt;&amp;lt;/Metadata&amp;gt;&amp;lt;NS&amp;gt;SAS&amp;lt;/NS&amp;gt;&amp;lt;Flags&amp;gt;0&amp;lt;/Flags&amp;gt;&amp;lt;Options/&amp;gt;&amp;lt;/GetMetadata&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the table open in e-guide using the sasdemo user so the table should definitely be showing as locked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also tried using the metadata_getnatr function which also returns blank for LockedBy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; length attr $256 value $256;&lt;BR /&gt;&amp;nbsp; rc=1;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; n=1;&lt;BR /&gt;&amp;nbsp; do while(rc&amp;gt;0);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;rc=metadata_getnatr("A57OBXEE.BE000MIP", n);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (rc&amp;gt;0) then put n= attr= value=;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;n=n+1;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;n=1 attr=UsageVersion value=1000000&lt;BR /&gt;n=2 attr=TableName value=PORTFOLIO&lt;BR /&gt;n=3 attr=SASTableName value=PORTFOLIO&lt;BR /&gt;n=4 attr=PublicType value=Table&lt;BR /&gt;n=5 attr=NumRows value=-1&lt;BR /&gt;n=6 attr=Name value=EDWPORT.PORTFOLIO&lt;BR /&gt;n=7 attr=MetadataUpdated value=15Aug2016:23:20:31&lt;BR /&gt;n=8 attr=MetadataCreated value=27Jan2016:05:05:46&lt;BR /&gt;n=9 attr=MemberType value=VIEW&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;n=10 attr=LockedBy value=&lt;/FONT&gt; &lt;BR /&gt;n=11 attr=IsHidden value=0&lt;BR /&gt;n=12 attr=IsEncrypted value=0&lt;BR /&gt;n=13 attr=IsDBMSView value=1&lt;BR /&gt;n=14 attr=IsCompressed value=0&lt;BR /&gt;n=15 attr=Desc value= &lt;BR /&gt;n=16 attr=DBMSType value= &lt;BR /&gt;n=17 attr=ChangeState value= &lt;BR /&gt;n=18 attr=Id value=A57OBXEE.BE000MIP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have then tried using the OMI_UNLOCK_FORCE flag to unlock the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc metadata&lt;BR /&gt;in='&amp;lt;UpdateMetadata&amp;gt;&lt;BR /&gt; &amp;lt;Metadata&amp;gt;&lt;BR /&gt; &amp;lt;PhysicalTable Id="A57OBXEE.BE000MIP" Name="" Desc=""&amp;gt;&lt;BR /&gt; &amp;lt;/PhysicalTable&amp;gt;&lt;BR /&gt; &amp;lt;/Metadata&amp;gt;&lt;BR /&gt; &amp;lt;NS&amp;gt;SAS&amp;lt;/NS&amp;gt;&lt;BR /&gt; &amp;lt;Flags&amp;gt;262144&amp;lt;/Flags&amp;gt;&lt;BR /&gt; &amp;lt;Options/&amp;gt;&lt;BR /&gt;&amp;lt;/UpdateMetadata&amp;gt;';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but get ERROR: The user does not have permission to perform this action. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have administrator privileges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Tammy&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 01:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301672#M6221</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-09-30T01:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301693#M6222</link>
      <description>&lt;P&gt;This is an interesting question. Let me try if I&amp;nbsp;am able to put&amp;nbsp;my point&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through&amp;nbsp;metadata function you can only see whatever gets updated in metadata. When a table is locked by SAS EG, there is no change in metadata as such. The lock is put on the physical table not the metadata. Thats why you can't view using Open metadata Interface or SAS metadata_getattr function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now question would arise what about the "LockedBy" attribute in metadata. When we check out any table using SAS DI then this attribute is updated. Value of Lockedby would be the URI of the user &amp;nbsp;who has checked out the object. &amp;nbsp;You can try this by making a check out of any table then find the Locked by value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using metadata function it is not possible to find locked table and to unlock it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 04:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301693#M6222</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-09-30T04:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301695#M6223</link>
      <description>&lt;P&gt;Ah, thank you Rahul. I have misunderstood the type of lock those methods and functions are for. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have production jobs trying to update tables but they are falling over as there is a lock. &amp;nbsp;It turns out that a user has the table in their e-guide project and even though they don't have it open it is still causing issues as the metadata is in use in the active e-guide session.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 04:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301695#M6223</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-09-30T04:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301697#M6224</link>
      <description>&lt;P&gt;I am not sure on this, but you can explore that if we can apply an option that table lock should be row level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the advance properties of Library. But this has to be approved by your DBA&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 04:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301697#M6224</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-09-30T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301698#M6225</link>
      <description>&lt;P&gt;I think the lock is actually on the metadata as when we had the job running with the library as pre-assigned we didn't have this problem but now every second day or more we have several users having this core table in&amp;nbsp;their e-guide project and it's causing a lock even though they aren't actually using the table at the time. &amp;nbsp;(they leave jobs running on their pc's overnight)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 04:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301698#M6225</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-09-30T04:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301711#M6227</link>
      <description>&lt;P&gt;A lock on the table does not happen in metadata, but on the OS level.&lt;/P&gt;
&lt;P&gt;So if a table is locked and can't be overwritten, you can only try to find the offending processes and terminate them.&lt;/P&gt;
&lt;P&gt;If your SAS system runs on UNIX, I have a (IMO nice) workaround where I simply delete the dataset first with the operating system's rm command, and then create it. On UNIX, this is possible because file and directory information is kept in separate places. The locking process still has its handle on the physical file, but the directory reference is removed, and a new file can be created. The locking process will see the old file until the handle is released (file closed), at which point the OS also deletes the physical data.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 06:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301711#M6227</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-30T06:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301712#M6228</link>
      <description>&lt;P&gt;Please post your actual SAS error message. It is easy for users to cause this type of problem by opening a view data window in EG and just leaving it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We deal with this type of problem by making our Production data libraries read-only via OS folder permissions and AD user groups for all SAS users except for SAS&amp;nbsp;administrators allowed to run Production updates. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 06:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/301712#M6228</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-09-30T06:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302803#M6258</link>
      <description>&lt;P&gt;Our users have told us they haven't left the view data window open. &amp;nbsp;Obviously someone is telling fibs as I think this is the issue as well!! &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read only for the users in metadata and also on the file system (Windows).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;631 proc datasets lib = EDWPORT nolist nowarn memtype = (data view);&lt;BR /&gt;632 delete PORTFOLIO;&lt;BR /&gt;633 quit;&lt;/P&gt;
&lt;P&gt;NOTE: Deleting EDWPORT.PORTFOLIO (memtype=VIEW).&lt;BR /&gt;ERROR: A lock is not available for EDWPORT.PORTFOLIO.VIEW.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 22:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302803#M6258</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-10-05T22:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302839#M6260</link>
      <description>&lt;P&gt;Well, there might be "dead" processes lying around (workspace servers that have lost their client connection, but don't act properly by shutting themselves down). One can only try to use operating system tools to locate such processes. Sometimes locks might be caused by backup software or malware scanners (which are only needed on the Windows *@x?!#, one of the gazillion reasons Windows should never be used on a server).&lt;/P&gt;
&lt;P&gt;Be also aware that a lock on a SAS view might be caused by a lock on one of the datasets referenced in the view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you might have some detective/computer forensics work coming up.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 05:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302839#M6260</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-06T05:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302851#M6261</link>
      <description>RO won't stop users to lock tables.</description>
      <pubDate>Thu, 06 Oct 2016 06:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302851#M6261</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-06T06:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302861#M6262</link>
      <description>&lt;P&gt;Actually, the problem is not that the file is locked, but that a lock (which is necessary for writing) can not be obtained, because some process(es) has/have an open handle on that file.&lt;/P&gt;
&lt;P&gt;And therefore setting the file, directory or filesystem to RO for the other users (that don't need write access) won't remedy the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 07:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302861#M6262</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-06T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302999#M6269</link>
      <description>There have been several threads on the forum regarding similar issues. Scroll through those might give you some insight. &lt;BR /&gt;Bottom line is that can be resolved either on that application level by killing any process that holds a lock. Or move your data to an engine that has better multi user support. In SAS that is SPD Server.</description>
      <pubDate>Thu, 06 Oct 2016 17:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/302999#M6269</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-06T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303074#M6273</link>
      <description>&lt;P&gt;There's no way for me to determine which process it is that has the lock on Windows however. &amp;nbsp;I don't want to have to kill all processes.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 00:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303074#M6273</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-10-07T00:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303104#M6275</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16117"&gt;@tammy_dezilva&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;There's no way for me to determine which process it is that has the lock on Windows however. &amp;nbsp;I don't want to have to kill all processes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to run SAS as a more-or-less administrator or at least as a power user, access to certain operating system features and knowledge how to use them is essential. Either you run the system, or the system runs you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On top of that, it is my personal belief that Windows is NOT suited as a server platform. Certain multi-user issues are much more easily dealt with in a UNIX system. Like the problem with open SAS datasets.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 06:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303104#M6275</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-07T06:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303464#M6279</link>
      <description>&lt;P&gt;I'm wondering if it is possible to change your application so the troublesome VIEW is created in a user's WORK or SASUSER library. That way each user has their own copy so it can never be locked.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 18:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303464#M6279</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-10-09T18:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303509#M6280</link>
      <description>&lt;P&gt;Hi Tammy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the past,&amp;nbsp;when trying to determine who had a handle open on a (SAS dataset) file, I would use Process Explorer. It is available for download from Microsoft Sysinternals at&amp;nbsp;&lt;A href="https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst Process Explorer provides a point and click method for this, if you are after a scripting method then there's also a&amp;nbsp;command line utility &lt;EM&gt;handle&lt;/EM&gt; available at &lt;A href="https://technet.microsoft.com/en-us/sysinternals/handle.aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/sysinternals/handle.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/303509#M6280</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-10-10T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/305842#M6358</link>
      <description>&lt;P&gt;Thanks Paul. This sounds like a great tool to suit our needs.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 02:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/305842#M6358</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-10-20T02:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/309162#M6437</link>
      <description>&lt;P&gt;Hi Paul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our IT are saying that we need administrator rights in order for this to work (to see processes that run by other people) and won't give us this. &amp;nbsp;Do you know of any way around this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Tammy&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 23:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/309162#M6437</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2016-11-03T23:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determine who has a lock on metadata and how to unlock it</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/309172#M6438</link>
      <description>&lt;P&gt;Hi Tammy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that situation I might&amp;nbsp;keep asking IT to tell me who has a file locked in the hope that they might eventually decide to delegate access&amp;nbsp;so I can find out for myself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something else that comes to mind is to use SAS library&amp;nbsp;access logging to give you an idea of who has been accessing the&amp;nbsp;table&amp;nbsp;most recently. Gerry Nelson wrote a blog post about it:&amp;nbsp;&lt;A href="http://blogs.sas.com/content/sgf/2015/09/30/part-1-auditing-data-access-who-did-what-and-when/" target="_self"&gt;Auditing data access: who did what and when?&lt;/A&gt;&amp;nbsp;There's some more info in the &lt;A href="http://support.sas.com/documentation/cdl/en/logug/67485/HTML/default/viewer.htm#n1lqdz4oc7qu55n1dhdja3awi39n.htm" target="_self"&gt;Audit Messages for SAS Library Access&lt;/A&gt;&amp;nbsp;section of the &lt;EM&gt;SAS 9.4 Logging: Configuration and Programming Reference&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the logging enabled you would write a stored process to report on recent table access.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 03:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Determine-who-has-a-lock-on-metadata-and-how-to-unlock-it/m-p/309172#M6438</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-11-04T03:20:53Z</dc:date>
    </item>
  </channel>
</rss>

