Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> ORA-01981: CASCADE CONSTRAINTS must be specified to perform this
I'm trying to REVOKE a GRANT.
Why must I drop constraints?
See below.
FK_AGCY_AYCS AGCY PK_AGCY_CLS AGCY_CLS_CD FK_AGCY_AYGP AGCY PK_AGCY_GRP AGCY_GRP_CD FK_AGCY_AYRP AGCY PK_AGCY_REP REP_NBR FK_AGCY_AYRN AGCY PK_AGCY_RSTN AGCY_RSTN_CD FK_AGCY_AYST AGCY PK_AGCY_STAT AGCY_STAT_CD FK_AGCY_ST AGCY PK_ST AGCY_LIC_ST_CD FK_AGCY_ST2 AGCY PK_ST AMS_MAIL_ST_CD FK_AGCY_ZPCDAA AGCY PK_ZIP_CD_AREA ZIP_CD FK_T_AGCY_AY T_AGCY PK_AGCY AGCY_NBR
> 9 rows selected.
>
> -- THE FOLLOWING ALTERS WERE SUCCESSFUL
> alter table AGCY drop constraint FK_AGCY_AYCS;
> alter table AGCY drop constraint FK_AGCY_AYGP;
> alter table AGCY drop constraint FK_AGCY_AYRP;
> alter table AGCY drop constraint FK_AGCY_AYRN;
> alter table AGCY drop constraint FK_AGCY_AYST;
> alter table AGCY drop constraint FK_AGCY_ST;
> alter table AGCY drop constraint FK_AGCY_ST2;
> alter table AGCY drop constraint FK_AGCY_ZPCDAA;
> alter table T_AGCY drop constraint FK_T_AGCY_AY;
>
SQL> revoke all on agcy_cls from public;
> revoke all on agcy_cls from public
> *
> ERROR at line 1:
> ORA-01981: CASCADE CONSTRAINTS must be specified to perform this revoke
![]() |
![]() |