home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / DB / UTIL72 / UTLTKPRF.SQL < prev    next >
Encoding:
Text File  |  1995-05-09  |  1.1 KB  |  38 lines

  1. rem 
  2. rem $Header: utltkprf.sql 7020100.1 94/09/23 22:14:38 cli Generic<base> $ 
  3. rem 
  4. Rem NAME
  5. REM    UTLTKPRF.SQL
  6. Rem FUNCTION
  7. Rem   Grant public access to all views used by TKPROF with verbose=y option.
  8. Rem NOTES
  9. Rem   This file must be run while logged-in as SYS.
  10. Rem   Catalog.sql must have been run before this file is run.
  11. Rem
  12. Rem
  13. Rem MODIFIED
  14. Rem     drady      03/22/93 -  merge changes from branch 1.1 
  15. Rem     drady      01/21/93 -  Creation 
  16. Rem     drady      01/13/92 -  Creation
  17. Rem
  18. Rem
  19. set echo on;
  20. drop roles  tkprofer;
  21. create role tkprofer;
  22. Rem
  23. Rem Dynamic views that TKPROF needs to dereference wait events.
  24. grant select on v_$datafile   to tkprofer;
  25. grant select on v_$latchname  to tkprofer;
  26. grant select on v_$log        to tkprofer;
  27. grant select on v_$logfile    to tkprofer;
  28. grant select on v_$thread     to tkprofer;
  29. Rem
  30. Rem View extent_to_object is defined in catio.sql
  31. grant select on extent_to_object  to tkprofer;
  32. Rem
  33. Rem  let's grant this role to dba with admin option
  34. grant tkprofer to dba with admin option;
  35. Rem
  36. set echo off;
  37.  
  38.