国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

用一個實例講解如何生成autotrace權限

2024-07-21 02:42:25
字體:
來源:轉載
供稿:網友
生成autotrace權限的示例:

一、配置autotrace

1、cd [Oracle_HOME]/rdbms/admin;

2、以system用戶登陸;

3、執行@utlxplan;

4、執行create public synonym plan_table for plan_table;

5、執行 grant all on plan_table to public;

二、創建plustrace角色

1、cd [ORACLE_HOME]/sqlplus/admin;

2、以sys或sysdba登陸;

3、運行@plustrce;

4、執行grant plustrace to public;

注:也可以將public指定為某個用戶。

[oracle@olivenan oracle]$ cd $ORACLE_HOME/rdbms/admin/

[oracle@olivenan admin]$ sqlplus system/oracle

SQL*Plus: Release 9.2.0.4.0 - PRoduction on Wed Jun 27 11:00:20 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.4.0 - Production

SQL> @utlxplan

Table created.

SQL> create public synonym plan_table for plan_table;

Synonym created.

SQL> grant all on plan_table to public;

Grant succeeded.

SQL> exit

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.4.0 - Production

[oracle@olivenan admin]$ cd $ORACLE_HOME/sqlplus/admin

[oracle@olivenan admin]$ sysplus "/as sysdba"

-bash: sysplus: command not found

[oracle@olivenan admin]$ sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Wed Jun 27 11:04:55 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.4.0 - Production

SQL> @plustrce

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> grant plustrace to public;

Grant succeeded.

SQL>

至此,執行成功。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 温州市| 石城县| 比如县| 横山县| 和田县| 巴里| 萍乡市| 曲松县| 常宁市| 巧家县| 天长市| 温泉县| 镇赉县| 健康| 辽宁省| 山阴县| 梅河口市| 房产| 衡水市| 双江| 娱乐| 新绛县| 顺义区| 黄陵县| 客服| 唐河县| 屏东县| 武宁县| 曲靖市| 寻甸| 泗水县| 潮州市| 神木县| 广汉市| 壶关县| 武平县| 扶沟县| 五原县| 宜君县| 嘉鱼县| 南和县|