cancel
Showing results for 
Search instead for 
Did you mean: 

ASA 7 alter table

Former Member
2,452

when altering a table with one new column, pb8 was hanged and i close and reopen and again the same problem is coming, does any body know to solve this issue...

Accepted Solutions (1)

Accepted Solutions (1)

johnsmirnios
Advisor
Advisor

ALTER TABLE ... ADD COLUMN requires an exclusive lock: all other transactions that are referencing the table must commit before the ALTER can proceed.

Also, in v7 the ALTER must rewrite all of the rows. If the table is large, it can take a significant amount of time. The exclusive lock is held the entire time so while the ALTER is in progress, all other connections that attempt to access the table will block.

-john.

Former Member
0 Kudos

Thank you john, it worked..

Answers (0)