I got a question regarding views in Oracle. Let's say we create a view:
Create View V1(col1, col3, col2) as
(
select a as col1,
b as col2,
c as col3
from x.y
)
And let us say that you then find out that you now are selecting it wrong because you select it as:
select col1, col2, col3
from V1
--Expecting col1, col2, col3
--but gets col1, col3, col2
Now you make a create or replace without the header names
Create or replace force editionable View V1 as
(
select a as col1,
b as col2,
c as col3
from x.y
)
Now you are still getting the same issue. Therefore my question is: When you create a view where you defined the headers, does Oracle store the position of the headernames somewhere and needs to be reloaded before the select goes correctly through?