Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

change a view while it is running

vuatabcMay 30 2022

At work, on the production server, when I changed a view, it hung for a while and I had to kill it because DBAs told me it caused some blockings. I think other processes were running/waiting to run that view . ( it should be similar to the case when we are using a package and trying to recompile it, shouldn't it ? ).
On my home PC, I open two sessions, the first one runs "select * fron my_test_vw" which runs in a long time due to the underlying table has millions of records. At the same time on the second session I execute "create or replace view my_test_vw ..." to change its exposing columns. I thought it should hang waiting for my first session finishing, but the command executed successfully immediately while the other session is still running.
Then, what might have caused my view change at work hung ?
Thanks,
Vu

Comments
Post Details
Added on May 30 2022
5 comments
543 views