91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle set autot的權限設置方法

發布時間:2021-08-16 20:15:04 來源:億速云 閱讀:163 作者:chen 欄目:關系型數據庫

這篇文章主要講解了“oracle set autot的權限設置方法”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“oracle set autot的權限設置方法”吧!

建plustrace權限。普通用戶沒有這個權限不能進行autot

2010-01-17 16:55

SQL> conn scott/tiger
set Connected.
          
SQL> 
SQL> 
SQL> set autot on;
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SQL> conn /as sysdba 
Connected.
SQL> grant plustrace to scott;
grant plustrace to scott
      *
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

SQL> @?/sqlplus/admin/plustrce.sql
SQL> 
SQL> drop role plustrace;
drop role plustrace
          *
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist


SQL> create role plustrace;

Role created.

SQL> 
SQL> grant select on v_$sesstat to plustrace;

Grant succeeded.

SQL> grant select on v_$statname to plustrace;

Grant succeeded.

SQL> grant select on v_$mystat to plustrace;

Grant succeeded.

SQL> grant plustrace to dba with admin option;

Grant succeeded.

SQL> 
SQL> set echo off
SQL> show user;
USER is "SYS"
SQL> grant plustrace to scott;

Grant succeeded.

SQL> conn scott/tiger
Connected.
SQL> set autot on
SQL> set autot 
Usage: SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]
SQL> set autot off
SQL>


[oracle@localhost ~]$ ls /opt/oracle/product/10g/sqlplus/admin/plustrce.sql 
/opt/oracle/product/10g/sqlplus/admin/plustrce.sql
[oracle@localhost ~]$ cat /opt/oracle/product/10g/sqlplus/admin/plustrce.sql 
--
-- Copyright (c) Oracle 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
[oracle@localhost ~]$

感謝各位的閱讀,以上就是“oracle set autot的權限設置方法”的內容了,經過本文的學習后,相信大家對oracle set autot的權限設置方法這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

皮山县| 巩义市| 德安县| 常德市| 沈丘县| 时尚| 荥阳市| 丰宁| 连江县| 巴南区| 米林县| 安新县| 德清县| 中江县| 绿春县| 金川县| 边坝县| 乡城县| 双流县| 项城市| 峡江县| 公安县| 晋中市| 白水县| 仪陇县| 饶河县| 承德县| 兴文县| 安达市| 大荔县| 锡林郭勒盟| 紫阳县| 洪泽县| 兰州市| 炉霍县| 黔南| 全椒县| 石河子市| 柘荣县| 桑日县| 门源|