احصل على أذونات للإجراءات المخزنة في Sybase

StackOverflow https://stackoverflow.com/questions/4274873

  •  28-09-2019
  •  | 
  •  

سؤال

كيف يمكنني الحصول على أذونات ممنوعة لإجراء تخزين في Sybase؟

هل كانت مفيدة؟

المحلول

يعتمد ذلك على النموذج الذي تريده.

  • إذا كنت تكتب SQL لغرض داخلي ، وتحتاج إلى هذه المعلومات كبيانات لها ، فإن إجابة Kolchanov صحيحة.
  • إذا كنت تقوم فقط بتنفيذ وظائف DBA ، فإن أي عدد من أدوات DBA GUI (Sybasecentral تأتي مع القرص المضغوط ؛ dbartisan أفضل بكثير) توفر تلك المعلومات عبر نافذة المستكشف ونقرات
    • إذا كان لديك وصول قائم على الشخصية فقط ، فاستخدم
      sp_helprotect proc_name

رابط إلى أدلة Sybase عبر الإنترنت

ثم انتقل إلى: دليل الخادم التكيفي 15.5/دليل المرجع: الإجراءات ، واتبع المستكشف.

نصائح أخرى

إذا كنت أرغب في التحقق من أذونات الكائن "anhands_ [الجدول | إجراء] ، سأقوم بتشغيل الاستعلام التالي:

مثال على "أي شيء" كونه طاولة

Displaying result for:
---------------------
select permission = a.name
from master.dbo.spt_values a
   , master.dbo.spt_values b
   , sysprotects p
   , sysobjects  o
where a.type = "T"
and   a.number = p.action
and   b.type = "T"
and   b.number = (p.protecttype + 204)
and   o.id = p.id
and   o.name = 'whatever_table'

permission                   
---------------------------- 
References                   
Select                       
Insert                       
Delete                       
Update                       

5 Row(s) affected

مثال على "أي شيء" كونه إجراء مخزن

Displaying result for:
---------------------
select permission = a.name
from master.dbo.spt_values a
   , master.dbo.spt_values b
   , sysprotects p
   , sysobjects  o
where a.type = "T"
and   a.number = p.action
and   b.type = "T"
and   b.number = (p.protecttype + 204)
and   o.id = p.id
and   o.name = 'whatever_procedure'

permission                   
---------------------------- 
Execute                      

1 Row(s) affected

Enterprise Server Enterprise 15.5> دليل المرجع: الجداول> جداول النظام

sysprotects

يحتوي SysProtects على معلومات حول الأذونات التي تم منحها أو إلغاؤها من المستخدمين والمجموعات والأدوار.

http://infocenter.sybase.com/help/index.jsp؟topic=/com.sybase.infocenter.dc36274.1550/html/tables/x16615.htm

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top