home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 28.ddi / admin / monitor.sql < prev    next >
Encoding:
Text File  |  1991-03-04  |  1.9 KB  |  55 lines

  1. rem 
  2. rem $Header: monitor.sql,v 6002300.1 89/06/16 01:22:44 cyang Exp $ monitor.sql Copyr (c) 1987 Oracle
  3. rem 
  4. rem RDBMS660023,DISK$DEV1:[V6SOURCE.OLB.60023]
  5. Rem Copyright (c) 1988 by Oracle Corporation
  6. Rem NAME
  7. Rem   monitor.sql
  8. Rem FUNCTION
  9. Rem   Grant public access to all views used by the SQLDBA monitor command.
  10. Rem NOTES
  11. Rem   This file must be run while logged-in as SYS.
  12. Rem   Catalog.sql must have been run before this file is run.
  13. Rem
  14. Rem   By default, only users with dba privilege may access the SQLDBA monitor 
  15. Rem   screens.  The execution of this file grants all users access to the 
  16. Rem   screens.  This file may be edited to provide access to a subset of
  17. Rem   your users to a subset of the monitor screens.  See the DBA guide
  18. Rem   for more information.
  19. Rem
  20. Rem MODIFIED
  21. Rem   Bulchan    10/21/88 - Add views for mon file and mon rollback
  22. Rem   Bulchan    10/03/88 - Add v$parameter
  23. Rem   Bulchan      07/22/88 - Add v_$sga 
  24. Rem   Mendelsohn   07/16/88 - Creation
  25. Rem
  26. set echo on;
  27. grant select on v_$process to public;
  28. grant select on v_$bgprocess to public;
  29. grant select on v_$session to public;
  30. grant select on v_$transaction to public;
  31. grant select on v_$latch to public;
  32. grant select on v_$latchname to public;
  33. grant select on v_$latchholder to public;
  34. grant select on v_$resource to public;
  35. grant select on v_$_lock to public;
  36. grant select on v_$lock to public;
  37. grant select on v_$sesstat to public;
  38. grant select on v_$sysstat to public;
  39. grant select on v_$statname to public;
  40. grant select on v_$access to public;
  41. grant select on v_$dbfile to public;
  42. grant select on v_$filestat to public;
  43. grant select on v_$logfile  to public;
  44. grant select on v_$rollname to public;
  45. grant select on v_$rollstat to public;
  46. Rem
  47. Rem v_$sga here for want of a better place. Enables 'SHOW SGA' command.
  48. Rem 
  49. grant select on v_$sga to public;
  50. Rem v$_parameter here too for want of a better place. Enables 'SHOW PARAMETER'
  51. Rem
  52. grant select on v_$parameter to public;
  53. set echo off;
  54.  
  55.