1. Oracle数据库

      select * from user_tab_privs where GRANTEE = ‘ONEKEEPER’;

    2. SQL Server数据库

      EXECUTE AS LOGIN = ‘onekeeper’;
      SELECT FROM fn_my_permissions(NULL, ‘SERVER’);
      SELECT
      FROM fn_my_permissions (NULL, ‘DATABASE’);
      SELECT * FROM fn_my_permissions(‘master.dbo.xp_readerrorlog’, ‘OBJECT’)
      REVERT;