473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

disable system given name constraint

Hello

A check constraint SYS_C0011712 is system given name to the constraint but when i want to disable it. i can' t it please give me some solution.

thanks

Expand|Select|Wrap|Line Numbers
  1. SQL> SELECT CONSTRAINT_NAME, CONSTRAINT_TYPE FROM USER_CONSTRAINTS WHERE TABLE_NAME='SUBCATEGORY
  2.  
  3. CONSTRAINT_NAME                C
  4. ------------------------------ -
  5. SYS_C0011712                   C
  6. PK_SUBCATEGORY                 P
  7. FK_STRCAT_TO_SUBCAT            R
  8.  
  9. SQL> ALTER TABLE SubCategory DISABLE CONSTRAINT SYS_C0011719;
  10. ALTER TABLE SubCategory DISABLE CONSTRAINT SYS_C0011719
  11. *
  12. ERROR at line 1:
  13. ORA-02431: cannot disable constraint (SYS_C0011719) - no such constraint
Dec 24 '07 #1
1 2625
amitpatel66
2,367 Expert 2GB
Hello

A check constraint SYS_C0011712 is system given name to the constraint but when i want to disable it. i can' t it please give me some solution.

thanks

Expand|Select|Wrap|Line Numbers
  1. SQL> SELECT CONSTRAINT_NAME, CONSTRAINT_TYPE FROM USER_CONSTRAINTS WHERE TABLE_NAME='SUBCATEGORY
  2.  
  3. CONSTRAINT_NAME                C
  4. ------------------------------ -
  5. SYS_C0011712                   C
  6. PK_SUBCATEGORY                 P
  7. FK_STRCAT_TO_SUBCAT            R
  8.  
  9. SQL> ALTER TABLE SubCategory DISABLE CONSTRAINT SYS_C0011719;
  10. ALTER TABLE SubCategory DISABLE CONSTRAINT SYS_C0011719
  11. *
  12. ERROR at line 1:
  13. ORA-02431: cannot disable constraint (SYS_C0011719) - no such constraint
Just try renaming a constraint and then disabling it!!
Dec 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Phil | last post by:
I am using MySQL 4.1.1-1. When I add a "named" foreign key constraint alter table sb_query_nm_sub_tp add constraint f1sbquerynmsubtp foreign key (query_nm) references sb_query_class...
7
by: Resant | last post by:
I know to disable all constraint in a table just : ALTER TABLE table_A CHECK CONSTRAINT ALL but how to disable ALL tables at the same time? Thanks anyway
9
by: Jan Wieck | last post by:
Dear community, for some reason the post I sent yesterday night still did not show up on the mailing lists. I have set up some links on the developers side under...
6
by: GD | last post by:
Hi, I wonder how to disable the "submit" behavior of a button. What I want is to assign values to dynamically added user controls without page postback. Problem: dynamically created control can...
5
by: Brian Henry | last post by:
I have a form with a main menu on it (mdi parent form) and i have a child form with a menu and I am mergeing the menus together for the menu called reports.. now when i do this they merge just...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
3
by: dgirdhar | last post by:
Hello, I created one table say "Table1" with one column say "Column1" with constraint Not Null. Oracle generated its own name for this constraint. Say SYS_C#########. I want to delete this...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
37
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.