We ran into a situation when cloning a database for our demo machines. We had to rename an owner that is referenced in a number of views, but cannot use PLSd to update the views since the column aliases are lost when a view is invalid.
As the owner, create a view and compile it. It is currently valid (there is a synonym for xlattable_vw pointing to the appropriate owner).
from plsql browser window select view and choose edit:
The view becomes invalid (drop the synonym), you can no longer edit the view as the column aliases
are lost.
from plsql browser window select view and choose edit:
Why isn't the column aliases built when the view is invalid?
Thanks,
Tom
As the owner, create a view and compile it. It is currently valid (there is a synonym for xlattable_vw pointing to the appropriate owner).
from plsql browser window select view and choose edit:
Code:
create view testview ( idseq, fieldname, fieldvalue, effdt )
as
select 0, fieldname, fieldvalue, effdt
from xlattable_vw;
are lost.
from plsql browser window select view and choose edit:
Code:
create or replace view testview as
select 0, fieldname, fieldvalue, effdt
from xlattable_vw
Thanks,
Tom