الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Grant Date For Privilege

Featured Replies

بتاريخ:

السلام عليكم
مثلاً يوزر يملك الصلاحية " sysdba "
هل يمكن معرفة التاريخ الذي تم فيه اعطاءه هذه الصلاحية ؟

بتاريخ:

بمراجعة محتويات اجداول التالي ذكرها يمكنك ايجاد معلومات وافية

Determine Roles and Privileges Granted to UsersThis is a featured page
set lines 110 pages 1000 ver off
col role for a16
col pv for a75 hea 'PRIVILEGE OR ROLE'
bre on role on type skip 1

define usercheck = 'SH'

select grantee, 'ROL' type, granted_role pv
from dba_role_privs where grantee = '&usercheck' union
select grantee, 'PRV' type, privilege pv
from dba_sys_privs where grantee = '&usercheck' union
select grantee, 'OBJ' type,
max(decode(privilege,'WRITE','WRITE,'))||max(decode(privilege,'READ','READ'))||
max(decode(privilege,'EXECUTE','EXECUTE'))||max(decode(privilege,'SELECT','SELECT'))||
max(decode(privilege,'DELETE',',DELETE'))||max(decode(privilege,'UPDATE',',UPDATE'))||
max(decode(privilege,'INSERT',',INSERT'))||' ON '||object_type||' "'||a.owner||'.'||table_name||'"' pv
from dba_tab_privs a, dba_objects b
where a.owner=b.owner and a.table_name = b.object_name and a.grantee='&usercheck'
group by a.owner,table_name,object_type,grantee union
select username grantee, '---' type, 'empty user ---' pv from dba_users
where not username in (select distinct grantee from dba_role_privs) and
not username in (select distinct grantee from dba_sys_privs) and
not username in (select distinct grantee from dba_tab_privs) and username like '%&usercheck%'
group by username
order by grantee, type, pv;



استخدم USER_SYS_PRIVS and USER_ROLE_PRIVS and role_sys_privs
كذلك

Select LPAD (' ', 2 * Level)
|| granted_role "user, his roles and privileges"
From ( /* the users */Select Null grantee, username granted_role
From dba_users
Where username Like
UPPER
('%&enter_username%')
/* the roles to roles relations */
Union
Select grantee, granted_role
From dba_role_privs
/* the roles to privilege relations */
Union
Select grantee, Privilege
From dba_sys_privs)
Start With grantee Is Null
Connect By grantee = Prior granted_role;



وببساطة لمعرفة Role Creation Date time stamp يمكنك

QL> select name,to_char(ctime,'dd/mm/yyyy hh24:mi:ss') ctime from user$



select owner,object_name,object_type from dba_objects where object_name='USER$';


انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.