problem with check constraint

Hi, could someone help me solve a problem with the check constraint.

CREATE TABLE RMD_2

(

NUMBER (10,0) "RMD_ID."

"ABB" VARCHAR2 (16 BYTE),

"act_ind CHAR (1 BYTE)

)

ALTER TABLE SYSADM. CONTRACT_DATA_EXCHANGE ADD CONSTRAINT 'RMD_2_C1 '.

CHECK)

act_ind IN('P','T',)

)

SQL > insert

2 in rmd_2

3 values(1,'A','X')

4.

Insert

*

ERROR on line 1:

ORA-02290: check constraint (RMD_2_C1) violated

SQL > insert

2 in rmd_2

3 values(1,'A','N')

4.

1 line of creation.

SQL > insert

2 in rmd_2

3 values(1,'A',)

4.

1 line of creation.

SQL > insert

so I don't understand why the N value is accepted

User235910 wrote:

Hi, could someone help me solve a problem with the check constraint.

CREATE TABLE RMD_2

(

NUMBER (10,0) "RMD_ID."

"ABB" VARCHAR2 (16 BYTE),

"act_ind CHAR (1 BYTE)

)

ALTER TABLE SYSADM. CONTRACT_DATA_EXCHANGE ADD CONSTRAINT 'RMD_2_C1 '.

CHECK)

act_ind IN('P','T',)

)

SQL > insert

2 in rmd_2

3 values(1,'A','X')

4.

Insert

*

ERROR on line 1:

ORA-02290: check constraint (RMD_2_C1) violated

SQL > insert

2 in rmd_2

3 values(1,'A','N')

4.

1 line of creation.

SQL > insert

2 in rmd_2

3 values(1,'A',)

4.

1 line of creation.

SQL > insert

so I don't understand why the N value is accepted

the posted CONSTRAINT is not on the table RMD_2, but on table SYSADM. CONTRACT_DATA_EXCHANGE

Tags: Database

Similar Questions

  • Problems with check disk etc.

    I am constantly message on start up that I have a problem with NTFS, I do the consistency check, but I can't do it, my system just flicks and that's all! I also have a real problem with sound distortion and cracking more remarkable in games, etc. can someone help? I checked the drivers but no help am a novice about the tech things but could use some help, I was scammed! -I know, but have learned this lesson so I hope that geniune help you all I can also make a backup of everything more he says he's corrupt! Should I take the pill now or later?

    Hi, thanks for your response had attempted several times to chkdsk, never in safe mode, I contacted my provider now and they helped me clean my system and reload Windows Vista and I am up and running again, the noise problem that I had was reduced when I checked the key improvements. Thanks in any case.

  • Regexp_like with check constraint

    Hi all

    My requirement is user does not enter data such as (½, ¼,...).
    I created the table with the constraint validation with the following syntax:


    CREATE TABLE mytest (c1 VARCHAR2 (20),)
    CHECK (REGEXP_LIKE(c1,'^[[:alnum:]+[:digit:]+[!@#]]+$')));)

    The means above, except alphanumeric, should enable figures and characters from the keyboard. But it does not have any character.

    Please help me, any error in the syntax above.

    Thank you
    Mano

    Alnum already includes numbers well, you don't need to Pack! @# in [] within []:

    SQL> CREATE TABLE mytest (c1 VARCHAR2(20),
      2  CHECK (REGEXP_LIKE(c1,'^[[:alnum:]!@#]+$')));
    
    Table created.
    
    SQL> insert
      2    into mytest
      3    values('@xyz1abc')
      4  /
    
    1 row created.
    
    SQL> insert
      2    into mytest
      3    values('@xyz1abc*')
      4  /
    insert
    *
    ERROR at line 1:
    ORA-02290: check constraint (SCOTT.SYS_C0019122) violated
    
    SQL>  
    

    SY.

  • Problems with Check In / Check Out a site for displaced

    We are moving our website to a new server and have to keep the old man until the news is ready.
    Part of the process is tweaking a few things so that the new site will run on IIS instead of Apache, which means that I had to create a new local directory, all web pages copy to the new directory and put up a new site definition.

    The problem is that check-in / check-out has been activated on the old site definition.
    I activated in the new site definition and put the same name and e-mail address, but whenever I save a file that I worked, it says that the file is checked out to someone else (but shows my name and email), and the check in button is grayed out.

    I tried all sorts of things to try to disable completely the check-in and get rid of the problem in this way, but not luck.

    This isn't an SSL connection.
    The web server is connected to our network by using a VPN, so I move the files using LAN, not FTP.

    It seems that I could have found the solution to this, in case anyone has the same problem:
    I put the site in the remote view and Check-in / Check-out just illuminated.
    Then I checked the entire site, restarted dreamweaver, and it seems to work as it is supposed to... Weird

  • Windows Live problem with check "spamming."

    I can't send emails due to a 'spammer' check and it does not recognize the code.  I type in dozens of time code and it does not recognize.

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Please click the link below to be redirected to the Windows Live community:

    http://www.windowslivehelp.com/product.aspx?ProductID=15

  • Problem with "Check entity group" FDMEE 11.1.2.4

    In the doc, he States:

    When the establishment of a 'group of entity to check', you must complete the following fields:

    Parent

    Entity

    Consolidate the

    On the report

    Sequence

    However, in FDMEE version 11.1.2.4, the field 'Parent' didn't is not there (I checked to see if the column exists and just was not displayed). For this reason the consolidation-mistake a mistake he's looking for the "ORG."  Clues?

    Hello

    This is a bug of refresh.

    Again, select the application in the target list application.

    It should show the parent column and then

  • Problem in creating the CHECK constraint

    When creating a table, I want to apply a CHECK constraint, that pension_amount must be in accordance with pension_code, I get the below error.
    CREATE TABLE pension_amount_check
    (
       pension_amount         NUMBER (4),
       pension_code   NUMBER (1),
       CONSTRAINT amount_chk CHECK
          (CASE
              WHEN pension_code = 1 THEN (pension_amount = 3000 OR pension_amount > 3000)
              WHEN pension_code = 2 THEN pension_amount = 1500
           end)
    )
    ORA-00907: missing right parenthesis
    How I can solve this problem.

    Hello

    So you cann which adds another.

    CREATE TABLE PENSION_AMOUNT_CHECK
    (
      PENSION_AMOUNT  NUMBER(4),
      PENSION_CODE    NUMBER(1)
    )
    /
    
    ALTER TABLE PENSION_AMOUNT_CHECK ADD (
      CONSTRAINT SSSSSS
      CHECK (((pension_code =1) AND  (pension_amount = 3000 OR pension_amount > 3000)) OR (  (pension_code =1)  AND  pension_amount = 1500))  ENABLE NOVALIDATE)
    /
    

    * If the answer is correct, then mark it as a good answer

  • BAD RESULTS WITH OUTER JOINS AND TABLES WITH A CHECK CONSTRAINT

    HII All,
    Could any such a me when we encounter this bug? Please help me with a simple example so that I can search for them in my PB.


    Bug:-8447623

    Bug / / Desc: BAD RESULTS WITH OUTER JOINS AND TABLES WITH a CHECK CONSTRAINT


    I ran the outer joins with check queries constraint 11G 11.1.0.7.0 and 10 g 2, but the result is the same. Need to know the scenario where I will face this bug of your experts and people who have already experienced this bug.


    Version: -.
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    Why do you not use the description of the bug test case in Metalink (we obviously can't post it here because it would violate the copyright of Metalink)? Your test case is not a candidate for the elimination of the join, so he did not have the bug.

    Have you really read the description of the bug in Metalink rather than just looking at the title of the bug? The bug itself is quite clear that a query plan that involves the elimination of the join is a necessary condition. The title of bug nothing will never tell the whole story.

    If you try to work through a few tens of thousands of bugs in 11.1.0.7, of which many are not published, trying to determine whether your application would be affected by the bug? Wouldn't be order of magnitude easier to upgrade the application to 11.1.0.7 in a test environment and test the application to see what, if anything, breaks? Understand that the vast majority of the problems that people experience during an upgrade are not the result of bugs - they are the result of changes in behaviour documented as changes in query plans. And among those who encounter bugs, a relatively large fraction of the new variety. Even if you have completed the Herculean task of verifying each bug on your code base, which would not significantly easier upgrade. In addition, at the time wherever you actually performed this analysis, Oracle reportedly released 3 or 4 new versions.

    And at this stage would be unwise to consider an upgrade to 11.2?

    Justin

  • I have a strange problem with my RAM supported by installers. When I check the activity monitor, 3 installers are open and they start around 80 MB memory RAM used for about 7 or 10:08 minutes or so.

    I have a strange problem with my RAM supported by installers. When I check the activity monitor, 3 installers are open and they start around 80 MB memory RAM used for about 7 or 8 concerts after 10 minutes. I have to force them to quit, but I don't know what I am closing or why they open in the first place. Applications downloaded on iTunes?

    In addition, the Console has opened with the same message several times, but I don't know what that means.

    Any help would be appreciated.

    Hello

    The last is a picture of the Terminal window.

    Just because it lists 'Console' does not mean that it has nothing to do with this application.

    You have not said why or what you're trying to install so I can't help with that.

    You can use the activity monitor to leave their.

    After you select an item, use the X in a type of stop sign icon and confirm force quit.

    21:36 Thursday; September 15, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • It seems to be a problem with javascript on youtube (and other sites), because nothing happens when I click on my user name "tab" next to logout, when a menu needs to expand. I have unintalled FF, addons reinstalled, removed and checked the settings. Work

    Also on youtube, there is a problem with the bar of "James Blunt, live from London ' at the top of the page does not disappear when I click on the X.

    Check the dom.storage.enabled pref on the subject: config page and make sure that the pref is set to true.

  • iTunes problem with selection checking / unchecking

    Hello, I have a recurring problem with iTunes which I hope someone can help me please! That the size of my library is greater than the capacity of my iPod, I uncheck a lot of my songs in order to keep under the limit of capacity during the synchronization. However, recently almost everytime I sign back into iTunes, it has been reset so that each song is checked and therefore it synchronizes I'm more capacity. It is very annoying to have to go back through my library and uncheck songs I don't want out there every time.  Anyone have any idea why it does this please?

    Hey there claya1984,

    Welcome to Apple Support communities.

    As I understand it, there is a problem with all the songs are checked when launch connecting to iTunes on your MacBook Pro. Try to take a glance at the article following the link and removing add-ons from third-party iTunes that you can use with iTunes.

    iTunes: solving problems with third party plug-ins iTunes - Apple Support

    If the problem persists, you can isolate and resolve almost any issue in Mac OS X by testing with a different user account, as shown here:

    Insulation in Mac OS X - Apple support questions

    So long.

  • How can you check if you have a problem with the ghost attack

    How can you check if you have a problem with the ghost attack.

    My ISP (Virgin) sent me a letter saying I could have an attack on my apps by the phantom virus.

    How is this true and what can do

    The XcodeGhost malware affects the apps, mainly Chinese, created using a red version of Xcode.  It is not a 'virus '.  (Look at the difference between computer viruses and malware).  Remove the Apple listed here and get updated with the latest versions of the App Store.

  • Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities of free ware

    Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities free ware. Also, windows Explorer does not display dimension and other video related information for the file. Y at - it a tool that can indicate what exactly is the problem with the file.

    Ritu

    Hello

    1. you get any error message?

    2. don't you make changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/279242

  • I just did a check of norton power Eraser which revealed that I have a problem with the file ntsd.exe.

    original title: problem with file ntsd.exe

    I just did a check of norton power Eraser which revealed that I have a problem with the file ntsd.exe. Does anyone have suggestions about what to do to fix it? Thank you very much.

    Hi JohnABuckley,

    • Are you facing any problem on the computer?

    Ntsd.exe is a process belonging to the Microsoft symbolic debugger that lets you debug applications in user mode.

    As the link below, it says that there is a risk that Norton Power Eraser can select some legitimate programs for removal. You should carefully review the analysis results page before deleting the files. I suggest that you don't delete the file unless you are facing problems with the computer.

    https://www-secure.Symantec.com/Norton-support/JSP/help-solutions.jsp?LG=English&CT=us&docid=20100824120155EN&product=home&version=1&PVID=f-home

  • Problem with the disk check.

    32-bit Vista Home Premium:

    About 6 months ago, I ran a Check Disk from my C drive (using Vista error checking tool) and checked the two boxes before starting (fix Auto file system and search for errors / attempt to recover bad sectors).

    He ran through the 1 5 6 controls without finding an error.

    On the 6th and final verification that it is running, it hung (or the 4th of 5 controls it works - do not remember if it is 5 or 6 it works). According to me, he started the final control, but stopped and none did not move. A few hours later he still hadn't moved, so I did a hard stop.

    Fortunately, everything was fine when I rebooted.

    I use the computer since then without problems/errors obvious hard drive, but I'm afraid to run another check of the disk, even though I would right now.

    Suggestions are welcome as to what might have caused the shot, and if I do another check of the disk.

    Yes, it's essentially the same command.  Personally, I never use the other method - I just use the one that I you provided.

    : You are right about the meaning switches - you already know or you're an awfully good guesser.  Since you have expressed interest, here's more information on CHKDSK you might find of interest with other switches and guidelines and some good information on how it works and how to use the results: http://www.vistax64.com/tutorials/67612-check-disk-chkdsk.html.

    If you cannot complete a cHkdsk on your hard drive, then there is a problem with the player that must be resolved before it is any worse.  I would definitely give it another chance and also run the diagnostics that I recommended in a previous post.

    I hope this helps and I hope that the test completes successfully this time.  If this isn't the case, I hope that the diagnostic test identifies the problem and it can be repaired than replaced (even if it's pretty rare - usually if it goes wrong it must be replaced).  If this is the case, I would as soon as possible to ensure that it is not so bad that you can no longer access the drive at all - but then again, there may be nothing wrong and we could be worrying for nothing but a bad block or two which is nothing to worry about in itself.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • new type of fraud for iTunes?  !!!!!

    In my view, that there is a new type of fraud on iTunes. I recently received an email to my iCloud saying address my "iTunes account has been suspended and I have to re - authorize within 48 hours. He asks then fill in account information, etc.. Need

  • Vertical scrolling with the mouse, Microsoft 6000

    Is that what someone has encountered a problem with the mouse to move the front/diagram of block vertically scrolling panel.  Scroll wheel on the mouse works fine for all other applications, but is very intermittent in LabVIEW 2009.  I'm on a windows

  • Can't go beyond starting windows repair

    Hi, I have a problem with startup on my Acer repair. the option is to launch Windows repair or restart normally. Of course it does not work. When I select the repair option it asks to select the local drivers. I don't know which select here? I guess

  • Why my regional and Language Options disappear and the language settings in Windows Live is in its place?

    Some time ago I remember Panel\Clock change of control options, language and Region\Regional and Language Options to view the applications that I installed in another language. But now, it seems to me that the "Regional and Language Options" link tha

  • Question about particular processor working with my PC.

    Basically, I have a 1200-07w eMachines and I'm sure that a particular processor will work with my pc but I wanted to check before I bought it. The I am wanting to upgrade to the processor is an AMD Athlon 64 X 2-5050. I know Athlon X 2 works, but I w