Chinaunix首页 | 论坛 | 博客
  • 博客访问: 686322
  • 博文数量: 845
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5015
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:22
文章分类

全部博文(845)

文章存档

2011年(1)

2008年(844)

我的朋友

分类:

2008-10-15 16:26:28

        Copyright (c) Corporation 1995, 2002. All Rights Reserved.
        NAME
        plustrce.sql
        DESCRIPTION
        Creates a role with access to Dynamic Performance Tables
        for the SQL*Plus SET AUTOTRACE ... STATISTICS command.
        After this script has been run, each user requiring access to
        the AUTOTRACE feature should be granted the PLUSTRACE role by
        the DBA.
        USAGE
        sqlplus "/ as sysdba" @plustrce
        Catalog.sql must have been run before this file is run.
        This file must be run while connected to a DBA schema.
        set echo on
        drop role plustrace;
        create role plustrace;
        grant select on v_$sesstat to plustrace;
        grant select on v_$statname to plustrace;
        grant select on v_$mystat to plustrace;
        grant plustrace to dba with admin option;
        set echo off
        再执行:
        grant plustrace to public;
        set autotrace off;
        set autotrace on explain;
        set autotrace on statistics;
        set autotrace on;


--------------------next---------------------

阅读(314) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~