ITPub博客

首页 > 数据库 > Oracle > v$enabledprivs

v$enabledprivs

原创 Oracle 作者:warmbreeze 时间:2016-09-28 08:12:37 0 删除 编辑
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE    11.2.0.4.0      Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production


SQL> create user user2 identified by user2;


User created.


SQL> grant connect to user2;


Grant succeeded.


SQL> conn user2/user2
Connected.
SQL> select count(*) from all_tables;


  COUNT(*)
----------
        32


SQL> select * from (with v$enabledprivs as (select -45 as priv_number from dual) select count(*) from all_tables);


  COUNT(*)
----------
      1340

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/37279/viewspace-2125664/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-15

  • 博文量
    45
  • 访问量
    42544