i have a pl\sql process that run an alter table exchange partition operation.
another sessions makes selects on this table, and if the select started before the alter but doesn't finished yet (alter table start during the select) - the select throws an exception (object no longer exists).
since the exchnage operation is realy fast, i want to prevent any action on the table and then execute the alter. or if the select already start - to delay the exchnage until it will be finished and then execute the alter.
the selects comming from a-lot of sessions and i can't constrol them. so i just can't add any code before\after the selects - only before\after the alter table.
is there a way to make something like this???
i tried rdbm_redefinition instead the exchange but always the select failes, for the same reason..
thanks.