Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Replacing a view with selects on it
At 09:49 AM 5/16/2004, you wrote:
>1) start long select from a view
>
>2) create or replace the view while the session is running
>3) see what happen:)
>
> The reader session did "survived" (I guess with the cached version of
> the view).
Unless my understanding is utterly wrong, the view definition is only
required during the parsing of the query. Once it starts the execute/fetch
phase the plan is bound to the physical objects and the view definition can
change.
I am confident that Oracle would prevent view changes until the query
finishes if it was needed beyond the parse.
>But it is no prove!
>
>Are there situation, where this approach can cause problems? Any
>experience with this topic on the list?
Based on my understanding and assessment, I do not foresee any problems. I have not done it on a massive or regular basis, but I have never had a problem altering a view definition in a live system, except when not using replace and permissions get lost temporarily.
>Jaromir D.B. Nemec
regards
Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Sun May 16 2004 - 12:37:51 CDT
![]() |
![]() |