共計 690 個字符,預(yù)計需要花費 2 分鐘才能閱讀完成。
這篇文章主要介紹了數(shù)據(jù)庫中啟動執(zhí)行計劃報 SP2-0618\SP2-0611 錯誤怎么辦,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓丸趣 TV 小編帶著大家一起了解一下。
問題:
SQL set autotrace on traceonly explain;
SP2-0618: 無法找到會話標(biāo)識符。啟用檢查 PLUSTRACE 角色
SP2-0611: 啟用 STATISTICS 報告時出錯
解決方法:
1、執(zhí)行以下腳本
SQL @/u01/app/oracle/product/11.2.0.4/db_1/sqlplus/admin/plustrce.sql
2、刪除已經(jīng)存在的 plustrace 角色
SQL drop role plustrace;
3、重新創(chuàng)建 plustrace 角色
SQL create role plustrace;
4、對角色授權(quán)
SQL grant select on v_$sesstat to plustrace;
SQL grant select on v_$statname to plustrace;
SQL grant select on v_$mystat to plustrace;
SQL grant plustrace to dba with admin option;
grant plustrace to public;
5、再次打開成功
SQL set autotrace on;
SQL
感謝你能夠認(rèn)真閱讀完這篇文章,希望丸趣 TV 小編分享的“數(shù)據(jù)庫中啟動執(zhí)行計劃報 SP2-0618\SP2-0611 錯誤怎么辦”這篇文章對大家有幫助,同時也希望大家多多支持丸趣 TV,關(guān)注丸趣 TV 行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!