from v * ERROR at line 1: ORA-00942: table or view does not exist
在執行一個備份指令碼的時候,當執行在v$動態效能檢視時,就會報錯,如果單獨執行該sql語句的時候就不會有問題 ,具體情況如下:
#/bin/bash
$ORACLE_HOME/bin/sqlplus -s "/ as
sysdba" << !
… …
spool &fil
select 'host cp ' || name ||' &dir' from
v$datafile;
… …
spool off;
exit
!
select 'host cp ' || name ||' /u01/backup/cold'
from v
*
ERROR at line 1:
ORA-00942: table or view does not exist
Solution:
Escape the $ in v$datafile with a like this v$datafile,
select 'host cp ' || name ||' &dir' from v$datafile;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12472709/viewspace-1037106/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00942: table or view does not existView
- PL/SQL: ORA-00942: table or view does not existSQLView
- imp 時出現在ORA-00942: table or view does not existView
- job呼叫過程報錯 ORA-00942: table or view does not existView
- SNMP TABLE ERROR : Requested table is empty or does not existError
- 啟動OEM時關於ora-00942:table or view does not exist的處理View
- GoldenGate 執行ddl_setup.sql出錯 ORA-00942: table or view does not existGoSQLView
- MIRO Error:Table T169V: entry G180 does not existError
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- MIGO Error:Check table 169P: entry G180 does not existGoError
- MYSQL ERROR 1146 Table doesnt exist 解析MySqlError
- asmcmd does not exist in directoryASM
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- javax.media does not existJava
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- Property [title] does not exist on this collection instance
- Waring: /dev/centos/swap does not existdevCentOS
- PatchObject constructor:Input file does not existObjectStruct
- GoldenGate "Error mapping from table.a to table.a"錯誤測試GoErrorAPP
- Error: cannot fetch last explain plan from PLAN_TABLEErrorASTAI
- The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist or no vPluginApacheMavenTomcat
- Laravel Class env does not exist 問題排查Laravel
- FAQ:Field DATABASE does not exist; see long textDatabase
- Check table 169P: entry XXXX does not exist的解決
- Error response from daemon: Get "https://registry-1.docker.io/v2/": netErrorHTTPDocker
- error :does not name a typeError
- [BUG反饋]子查詢報錯,Base table or view not found: 1146 Table 'onethink.(' doesn't existView
- relation with OID 637165 does not exist
- lower_case_table_names引數設定解決Error Code: 1146. Table doesn't exist?Error
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't existErrorMySql
- ORA-04043: object DBA_DATA_FILES does not existObject
- ORA-04042 procedure, function, package, or package body does not existFunctionPackage
- ORA-24756: transaction does not exist問題解決
- 【Oracle】-【許可權-ORA-04043】- object does not existOracleObject
- ORA-12545 TNS: Host or Object Does not ExistObject
- error: 'cout' does not name a type|Error
- An error from listenerError
- pgsql 執行建庫指令碼時候出現ERROR: relation "xxx_id_seq" does not existSQL指令碼Error