處理set autotrace故障又一例_ora-942_sp2-0611
SQL> set autot traceonly exp stat --啟用autotrace報如下錯誤
Error ORA-942 while gathering statistics
SP2-0611: Error enabling STATISTICS report
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
-bash-3.2$ oerr ora 942
00942, 00000, "table or view does not exist"
// *Cause:
// *Action:
-bash-3.2$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 17 11:42:08 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
-bash-3.2$ oerr sp2 0611 --用oerr查sp2-0611錯誤
00611, 0, "Error enabling %s report\n"
// *Document: NO
// *Cause: Continuation of 613 or 618.
// *Action:
-bash-3.2$ oerr sp2 0613 --根據以上提示查sp2 0613
00613, 0, "Unable to verify PLAN_TABLE format or existence\n"
// *Cause: An AUTOTRACE command was issued by a user with insufficient --根據提示:檢查scott使用者是否存在plan_table表及是否被授予角色plustrace(此角色指令碼位於$ORACLE_HOME/sqlplus/admin/plustrce.sql)
// privileges, or who did not have a PLAN_TABLE.
// *Action: Make sure the user has been granted the PLUSTRACE role,
// and that a PLAN_TABLE has been created for the user.
-bash-3.2$
備記下plustrce.sql指令碼內容
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
最後再次執行set autot trace exp stat --成功ok
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-671201/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OGG 故障處理一例
- goldengate故障處理一例Go
- GaussDB(分散式)例項故障處理分散式
- set autotrace in SQL*PlusSQL
- ORA-00054 故障處理一例
- goldengate故障處理一例(續)Go
- database link故障處理一例Database
- set autotrace on [configure]
- 處理mysql複製故障一例薦MySql
- Set autotrace命令及解釋
- ORACLE 10G rac故障處理一例Oracle 10g
- oracle dataguard資料同步故障處理一例Oracle
- 【故障處理】一次RAC故障處理過程
- MongoDB故障處理MongoDB
- 故障分析 | Greenplum Segment 故障處理
- 常見路由器故障處理例項詳解路由器
- 【優化】ORACLE set autotrace in SQL*Plus優化OracleSQL
- GPON網路故障如何處理?GPON網路故障處理流程
- 【故障處理】ORA-600:[13013],[5001]故障處理
- 【故障處理】ORA- 2730*,status 12故障分析與處理
- linux故障處理Linux
- ora-故障處理
- 開啟執行計劃set autotrace on
- 線上故障處理手冊
- MySQL show processlist故障處理MySql
- 微服務的故障處理微服務
- teams登入故障處理
- Oracle更新Opatch故障處理Oracle
- 如何快速處理線上故障
- Mysql故障處理2則MySql
- dataguard故障處理一則
- AIX系統故障處理AI
- 【Linux】 nfs 故障處理LinuxNFS
- set autotrace的用法和含意及區別
- 檢視sql執行計劃--set autotraceSQL
- 【故障處理】CRS-1153錯誤處理
- 【故障處理】ORA-19809錯誤處理
- 【故障處理】imp PLS-00302: component 'SET_NO_OUTLINES' must be declared