473,803 Members | 3,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disable system given name constraint

17 New Member
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 2641
amitpatel66
2,367 Recognized Expert Top Contributor
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
1698
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 (query_nm); And then do a show create table:
7
15480
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
2452
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 http://developer.postgresql.org/~wieck/slony1.html The concept will be the base for some of my work as a Software Engineer here at Afilias USA INC. in the near future. Afilias is like many of you in need of reliable and performant replication solutions for backup and failover...
6
4053
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 not be accessed because the button click trigers page postback(see sample code). When the button is clicked, an error occurs: "System.NullReferenceException: Object reference not set to an instance of an object." Please help. Thanks.
5
1529
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 fine.. but i need to disable the menu when the user logs out of the system or clear it so they cant run reports still after logout. but when i try to set the mdi parent's menu's mnuReports item's enabled property to false it throws an item isnt set to...
669
26255
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
3
69738
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 constraint using one sql script. But how i will find out the constraint name to drop this constraint? -Dhiraj
2
3982
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: D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database Buildfile: build.xml env-user: prop-user: set-user:
37
5084
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 redirect stderr to a temporary file (or /dev/null but is there an equivalent under Windows? Is it "nul:") and then to *restore* the default stderr so that standard library functions that write to stderr produce output again.
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.