ORA-00942: table or view does not exist
今天執行一個 procedure 突然報錯:這個procedure 不合法.這個都執行好幾年了的procedure 怎麼突然報錯,難道什麼物件被刪除了.如是編輯它,發現報錯的語句是這句:
select count(1) into cout from dba_tables where table_name = 'XXSXX';
這個 dba_tables 不是系統自帶的檢視嘛,怎麼會報找不到了.如是向高手們請教,大家給我支招如下
方法一 建立 同義詞 並授權:
create synonym test.dba_tables for sys.dba_tables;
grant select on test.dba_tables to test;
方法二 直接授權
grant select on sys.dba_tables to test;
或者
grant select any dictionary to test;
下面這句是把資料字典的查詢許可權都賦予指定使用者,而上面的授權,需要一個個檢視授權了.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9399028/viewspace-746800/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- Waring: /dev/centos/swap does not existdevCentOS
- Property [title] does not exist on this collection instance
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- [BUG反饋]子查詢報錯,Base table or view not found: 1146 Table 'onethink.(' doesn't existView
- Property 'context' does not exist on type 'NodeRequire'.ts(2339)ContextUI
- Laravel Class env does not exist 問題排查Laravel
- ABAP 資料結構啟用時的錯誤訊息 - combination reference table field does not exist資料結構
- SAP對工單做101收貨,報錯- Check table TFBEFU_CR entry 10 does not exist–對策
- ORA-04043: object DBA_DATA_FILES does not existObject
- [20211231]ORA-01418 specified index does not exist.txtIndex
- SAP MM 對採購訂單執行收貨,報錯 - Table T169P entry ZNMI does not exist -
- dcat-admin 表單 Field type [autocomplete] does not exist.
- ORA-30012 undo tablespace 'UNDOTBS3' does not exist or of wrong typeS3
- The operation, ‘DecodeJpeg/contents‘, does not exist in the graph.錯誤解決方法
- 易優CMS【錯誤程式碼】 SQLSTATE【42S02】:Base table or view not found:1146 Table‘111.ey_admin_theme‘doesn‘t exist-eyoucmsSQLView
- Android解決The APK file app-debug.apk does not exist on disk.AndroidAPKAPP
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- Eclipse裡Tomcat報錯:Document base ……does not exist or is not a readable directory(圖文詳解)...EclipseTomcat
- 安裝kernel...src.rpm錯誤:warning: user mockbuild does not exist - using rootMockUI
- Hadoop的mapreduce出現問題,報錯The auxService:mapreduce_shuffle does not existHadoopUX
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- 整潔的 Table View 程式碼View
- Flutter開發-iOS報錯Trying to embed a platform view but the PrerollContext does not sFlutteriOSPlatformViewContext
- pgsql 執行建庫指令碼時候出現ERROR: relation "xxx_id_seq" does not existSQL指令碼Error
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- ORA-20000:unable to analyze table "XXX"."DBMS_TABCOMP_TEMP_UNCMP",insufficient privileges or does no
- MySQL 5.6執行DDL報錯ERROR 1050 (42S01): Table 'sms/#sql-ib752' already existMySqlError
- SQL not exist out joinSQL
- 帝國CMS重新整理資料表article提示Table ‘empirecms.phome_ecms_’ doesn’t exist的解決
- What does -> do in clojure?
- does not support SSL connections
- ‘map’ does not name a type
- sql case when, Exist ,group by ,聚合SQL
- create table,show tables,describe table,DROP TABLE,ALTER TABLE ,怎麼使用?
- The label does not denote a loop in forEachOOP
- What does "xargs grep" do?