Bo's Oracle Station

查看: 1798|回复: 0

课程第47次:2016-07-13星期三

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2016-7-13 23:25:03 | 显示全部楼层 |阅读模式
【上完1Z0-052的第8章】用户、权限和PROFILE
【上完1Z0-051】:共12章0 1 2 3 4 5 6 7 8 9 10 11
【1Z0-052】:共15章(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
【1Z0-053】:共15章(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
表示已经上过的,表示还没上的。
composite.png

composite2.png

  1. select  * from user1.t05208_a;

  2. set role resource;

  3. select  * from user1.t05208_a;

  4. create or replace procedure proc05208
  5. is
  6. v_1  number ;
  7. begin
  8.   select  sum(a) into v_1  from user1.t05208_a;
  9.   dbms_output.put_line('The sum of table is '||v_1||' .');
  10. end;

  11. select  * from user_errors;

  12. select  * from user_objects o where o.OBJECT_NAME='PROC05208';

  13. alter procedure proc05208 compile;

  14. begin
  15.    user1.proc05208;
  16. end;

  17. ----


  18. select * from user_role_privs;

  19. --
  20. select  * from dba_profiles;

  21. CREATE PROFILE "PROFILE1" LIMIT
  22. SESSIONS_PER_USER 1;

  23. alter user hr profile PROFILE1;

  24. select  * from resource_cost;

  25. alter resource cost CPU_PER_SESSION 100;
复制代码

完全按照上课顺序:
https://www.botangdb.com/mytrain/201601/00000028.html



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 18:52 , Processed in 0.041638 second(s), 27 queries .

快速回复 返回顶部 返回列表