ORA-04063: view "DAILY.TMP_TBX_100_0_S4" 有错误
2016-03-28 15:26
567 查看
执行:
CREATE TABLE TMP_TBX_100_0_S3 AS SELECT t.* FROM (select t1.*,NULL AS sdate, NULL AS report_id from TMP_TBX_100_0_S4_1 t1union all
select t2.* from TMP_TBX_100_0_S4_2 t2) t
报错:
ORA-00955: name is already used by an existing object现象:
drop table TMP_TBX_100_0_S4 提示不错在表名或视图。select * from TMP_TBX_100_0_S4
报错:
ORA-04063: view "DAILY.TMP_TBX_100_0_S4" 有错误
04063. 00000 - "%s has errors"
*Cause: Attempt to execute a stored procedure or use a view that has
errors. For stored procedures, the problem could be syntax errors
or references to other, non-existent procedures. For views,
the problem could be a reference in the view's defining query to
a non-existent table.
Can also be a table which has references to non-existent or
inaccessible types.
*Action: Fix the errors and/or create referenced objects as necessary.
原因:
查了很多资料,百思不得其解,后来把drop table TMP_TBX_100_0_S4 改成 drop view TMP_TBX_100_0_S4。成功了!
原来是,存在名为 TMP_TBX_100_0_S4 的视图,不存在名为TMP_TBX_100_0_S4 的表。
反之亦然
相关文章推荐
- 《科学》封面重磅论文:人工智能终于能像人类一样学习
- paint画笔style为Stroke时circle的半径分析
- 文本分类——NaiveBayes
- Win7 64位 VS2015及MinGW环境编译矢量库agg-2.5和cairo-1.14.6
- http://blog.csdn.net/sevenquan/article/details/50687077
- AfxGetMainWnd()函数用法
- http://blog.csdn.net/friendan/article/details/12226201
- 百度地图系列05——显示屏幕范围内的marker
- Jenkins——应用篇——插件使用——Deploy to container Plugin
- Submission Details
- OFBIZ:启动之ContainerLoader
- 详解收发不畅原因及U-Mail邮件中继解决之道
- 详解收发不畅原因及U-Mail邮件中继解决之道
- MacBook OS Air密码忘了,苹果电脑密码忘了怎么办,密码恢复
- failed to open the runspace pool. the server manager winrm plug-in might be corrupted or missing
- airplay
- Error Domain=kCLErrorDomain Code=0 "(null)"
- MXnet: RuntimeError: module compiled against API version a but this version of numpy is 9
- 编译spark1.6.0出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (sparkr-pkg)
- 也说说TIME_WAIT状态