ORA-22984: view query cannot contain references to a super view ORACLE 报错 故障修复 远程处理

文档解释

ORA-22984: view query cannot contain references to a super view

Cause: The query defining the view contains references to a super-view of the view being created.

Action: Make sure that the view query does not reference a super-view.

ORA-22984: view query cannot contain references to a super view , 是Oracle报出的一个错误,指定义视图时查询不能包含对超级视图的引用。

官方解释

此错误类型的消息文本为:

ORA-22984: 查看查询不能包含对超级视图的引用

描述:

当你尝试定义视图时,该查询不能包含对超级视图的引用。

常见案例

在建立视图时,视图的定义存在指向超级视图的语句,比如:

CREATE OR REPLACE VIEW myView AS

SELECT * FROM v_super_view;

正常处理方法及步骤:

要解决这个错误,只需要删除定义视图时引用超级视图的语句,例如:

CREATE OR REPLACE VIEW myView AS

SELECT * FROM table;


数据运维技术 » ORA-22984: view query cannot contain references to a super view ORACLE 报错 故障修复 远程处理