Alter a nonunique index to a unique index

前端 未结 3 535
悲&欢浪女
悲&欢浪女 2021-01-11 11:46

I have a few non-unique constraints that I want to alter into unique constraints ( business rules have changed since the data model was made ). Is there any way to do it wi

3条回答
  •  天命终不由人
    2021-01-11 12:19

    You can't modify a constraint in the way you wish you can only drop and recreate it. If you want to do this with no downtime then look into the DBMS_REDEFINITION package.

提交回复
热议问题