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

  1. rem 
  2. rem $Header: utlmontr.sql 7020100.1 94/09/23 22:14:27 cli Generic<base> $ monitor.sql 
  3. rem 
  4. Rem Copyright (c) 1988 by Oracle Corporation
  5. Rem NAME
  6. REM    UTLMONTR.SQL
  7. Rem FUNCTION
  8. Rem   Grant public access to all views used by the char-mode SQLDBA.
  9. Rem NOTES
  10. Rem   This file must be run while logged-in as SYS.
  11. Rem   Catalog.sql must have been run before this file is run.
  12. Rem
  13. Rem   By default, only users with dba privilege may access some
  14. Rem   SQLDBA screens.  The execution of this file grants read access
  15. Rem   on all views used by the char-mode SQL*DBA to a role which may
  16. Rem   then be granted to other users.  This file may be edited to
  17. Rem   provide access to a subset of your users to a subset of the 
  18. Rem   screens.  See the DBA guide for more information.
  19. Rem
  20. Rem MODIFIED
  21. Rem     wmaimone   07/06/94 -  221789, add more grants
  22. Rem     wmaimone   04/07/94 -  merge changes from branch 1.2.710.2
  23. Rem     wmaimone   02/23/94 -  grant v$sess_io to monitorer
  24. Rem     wmaimone   02/14/94 -  grant monitorer to public, matching doc
  25. Rem     rnakhwa    04/19/93 -  Bugs # 145783 and # 145557
  26. Rem     glumpkin   10/20/92 -  Renamed from MONITOR.SQL 
  27. Rem     cozbutun   06/29/92 -  make use of roles and remove unnecessary grants
  28. Rem     rnakhwa    03/10/92 -  More views added---v$thread, v$log & v$datafile 
  29. Rem   Bulchan    10/21/88 - Add views for mon file and mon rollback
  30. Rem   Bulchan    10/03/88 - Add v$parameter
  31. Rem   Bulchan      07/22/88 - Add v_$sga 
  32. Rem   Mendelsohn   07/16/88 - Creation
  33. Rem
  34.  
  35. set echo on;
  36. drop role monitorer;
  37. create role monitorer;
  38.  
  39. grant select on v_$datafile to monitorer;
  40. grant select on v_$log to monitorer;
  41. grant select on v_$thread to monitorer;
  42. grant select on v_$process to monitorer;
  43. grant select on v_$bgprocess to monitorer;
  44. grant select on v_$session to monitorer;
  45. grant select on v_$transaction to monitorer;
  46. grant select on v_$latch to monitorer;
  47. grant select on v_$latchname to monitorer;
  48. grant select on v_$latchholder to monitorer;
  49. grant select on v_$lock to monitorer;
  50. grant select on v_$sesstat to monitorer;
  51. grant select on v_$sysstat to monitorer;
  52. grant select on v_$access to monitorer;
  53. grant select on v_$dbfile to monitorer;
  54. grant select on v_$filestat to monitorer;
  55. grant select on v_$logfile  to monitorer;
  56. grant select on v_$rollname to monitorer;
  57. grant select on v_$rollstat to monitorer;
  58. grant select on v_$sess_io to monitorer;
  59. grant select on v_$librarycache to monitorer;
  60. Rem note: all passwords are stripped out of v$sqlarea
  61. grant select on v_$sqlarea to monitorer;
  62. grant select on v_$shared_server to monitorer;
  63. grant select on v_$dispatcher to monitorer;
  64. grant select on v_$circuit to monitorer;
  65. grant select on v_$queue to monitorer;
  66. grant select on v_$statname to monitorer;
  67. grant select on v_$backup to monitorer;
  68.  
  69. Rem  v_$sga here for want of a better place. Enables 'SHOW SGA' command
  70. grant select on v_$sga to monitorer;
  71.  
  72. Rem   v$_parameter here too for want of a better place.  Enables 'SHOW
  73. Rem   PARAMETER'
  74. grant select on v_$parameter to monitorer;
  75.  
  76. Rem  let's grant this role to dba with admin option
  77. grant monitorer to dba with admin option;
  78. grant monitorer to public;
  79.  
  80. set echo off;
  81.  
  82.