NULLABLE column is not updated after the NOT NULL constraint definition...

Hi,
SQL> select column_name,nullable from all_tab_columns where table_name='EMP';
COLUMN_NAME                    NULLABLE
EMPNO                          N
ENAME                          Y
JOB                            Y
MGR                            Y
HIREDATE                       Y
SAL                            Y
COMM                           Y
DEPTNO                         Y
CODE_POLEIS_DIAM               Y
9 rows selected
SQL> ALTER TABLE EMP add constraint emp_job_nn check(job is not null);
Table altered
SQL> select constraint_name from all_cons_columns
  2  where table_name='EMP';
CONSTRAINT_NAME
FK_DEPTNO
PK_EMP
EMP_JOB_NN
SQL> select column_name,nullable from all_tab_columns where table_name='EMP';
COLUMN_NAME                    NULLABLE
EMPNO                          N
ENAME                          Y
JOB                            Y                         <---------'NULL'
MGR                            Y
HIREDATE                       Y
SAL                            Y
COMM                           Y
DEPTNO                         Y
CODE_POLEIS_DIAM               Y
9 rows selected
Why is not updated....????
In Oracle ebook:
Oracle® Database Reference
10g Release 2 (10.2)
Part Number B14237-02
the comments about the NULLBLE column are as follows:
"Specifies whether a column allows NULLs. Value is N if there is a NOT NULL constraint on the column or if the column is part of a PRIMARY KEY. The constraint should be in an ENABLE VALIDATE state."
BUT BY DEFAULT ALL CONSTRAINTS ARE IN VALIDATE STATE
(Ref: Oracle® Database SQL Reference
10g Release 2 (10.2)
Part Number B14200-02 )Note : I use OraDB 10g v.2
Thanks a lot
Sim

Hi,
Tom Kytes answer it before:
SQL> create table t ( id int );
Table created.
SQL> desc t
Name                            Null?    Type
ID                                       NUMBER(38)
SQL> alter table t add constraint t_nn check (id is not null);
Table altered.
SQL> insert into t (id) values (null);
insert into t (id) values (null)
ERROR at line 1:
ORA-02290: check constraint (TANDREWS.T_NN) violated
SQL> desc t
Name                            Null?    Type
ID                                       NUMBER(38)
Followup July 16, 2003 - 10am US/Eastern:
that is not a NOT NULL constraint, that is a check constraint
ops$tkyte@ORA920LAP> create table t ( x int );
Table created.
ops$tkyte@ORA920LAP> alter table t modify x not null;
Table altered.
ops$tkyte@ORA920LAP> set linesize 50
ops$tkyte@ORA920LAP> desc t
Name                    Null?    Type
X                       NOT NULL NUMBER(38)To see the full thread in asktom, please refer to:
- http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1338402651192
Cheers,
Francisco Munoz Alvarez
http://www.oraclenz.com

Similar Messages

  • I have a problem with the iPhoto not updating after the hard drive recall.

    The iPhoto with not update after doing the Hard Drive Recall. It keeps saying I don't have the right ID. I have tried resetting all my passwords and no change. What do I need to do to fix this problem?

    Which OS version did you have when you acquired iPhoto and was it on a DVD (iLife) or did you download it from the app store initially?
    And, last question, did you skip Mavericks? Mavericks owners were given the opportunity to update iPhoto to an app store version free of charge; if you skipped it and do not have a backup or the installer DVD or purchased a new computer recently, then you'll need to purchase it.

  • Student iTunesU course not updating after the teacher updates course.

    A student mentioned that he was unable to see updates made on the course by the teacher on his iPad. Any suggested fixes or solutions to this?

    After tapping into a course, tap "Materials" at the bottom of the screen; a gear menu appears in the upper right. Tapping the gear menu pops up a menu. Ensure that the student has enabled Subscription (and probably "Auto Download" as well).

  • My Itunes will not start after the latest update. I keeo getting error message tEventType : InPageError     P1 : c000009c     P2 : 00000003 . I have tried to reinstall but no joy. Any advise?

    My Itunes will not start after the latest update. I keeo getting error message tEventType : InPageError     P1 : c000009c     P2 : 00000003 . I have tried to reinstall but no joy. Any advise?

    'The installer has insufficient privileges to modify this file C:\Program Files (x86)\Common Files\Apple\Apple Application Support\Web kit.resources\inspector\Images\Spinner Inactive Selected.gif.'
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Jquery content not working after the updates from firefox

    Hi, i've realized that some of my website's banner is not working after the recent updates from firefox, whereas those website's banner is working in google chrome.
    Hope there is a solution for this as i'm using the firefox for years and wish this issues can be settle.
    The banner URL is http://www.irs.com.my/slider/index.html

    SlideDeck has a post on how to resolve this error, caused by a bug in this very old version of their library that you're using. See: [http://www.slidedeck.com/blog/firefox-20-update-and-slidedeck-js-weve-got-you-covered/ Firefox 20 update and SlideDeck.js – we’ve got you covered] for more information. As a Pro customer, you were supposed to get an email notice, but... here you are.
    I studied the script before discovering that and found two issues, but there might be more:
    (1) slidedeck.jquery.js detects Firefox 20 as Firefox 2 and halts. Note that this regex is the problem:
    firefox2:F.match(/firefox\/2/)?true:false
    (2) Starting in Firefox 16, the -moz-transform property was unprefixed, that is, you need to use transform for Firefox 16 and later.

  • Why MLB.TV is not appearing after the last update?

    why MLB.TV is not appearing after the last update?

    Make sure the store is set to the US.. Also restart the ATV.

  • My facetime on iphone 4 is not working after the update to IOS7

    Hi guys, can you help me about my problem? My Facetime on Iphone 4 is not working  after The update to IOS7       Thanks xxx

    Hey Junie1387,
    Thanks for the question. I understand you are experiencing issues with FaceTime. The following articles may help to resolve your issue:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/TS3367
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    You may also want to reset your network settings:
    Settings > General > Reset > Reset Network Settings.
    Note: this will delete any network related settings (saved Wi-Fi passwords, etc), it will not erase any content from your device.
    Thanks,
    Matt M.

  • Videofunction on iphone 4 is not working after the update to IOS7

    Hi. The videofunction on my iphone 4 is not working after the update to IOS 7:
    Anyone else experiencing the same problem?
    Anyone with solutions?
    Thanks!

    Hey Junie1387,
    Thanks for the question. I understand you are experiencing issues with FaceTime. The following articles may help to resolve your issue:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/TS3367
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    You may also want to reset your network settings:
    Settings > General > Reset > Reset Network Settings.
    Note: this will delete any network related settings (saved Wi-Fi passwords, etc), it will not erase any content from your device.
    Thanks,
    Matt M.

  • My iPad orientation is not working after the IOS 8 update.  Please fix this bug!

    my iPad air orientation is not working after the IOS8 update.  Can you fix this bug? Thx

    Did you try a reset?
    Restart / Reset
    http://support.apple.com/kb/HT1430

  • Illustrator tools dropdown is not working after the recent software update

    My Illustrator tools dropdown is not working after the recent software update. Any help would much appreciate.

    Same problem here.  I have a Mac with a recent Yosemite update.

  • Airplay is not working after the latest update, whats wrong? Sound will not go to Apple TV or my Surround receiver

    Airplay is not working after the latest update, whats wrong? Sound will not go to Apple TV or my Surround receiver

    Hi Tokha,
    If you are having an issue with using AirPlay from your MacBook Air, I would suggest that you troubleshoot using the steps in this article - 
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Why am I now receiving the error 42404: a required iTunes component is not installed after the 10.5.3 iTunes update? Now, I cannot sync my iphone...

    Why am I now receiving the error 42404: a required iTunes component is not installed after the 10.5.3 iTunes update? Now, I cannot sync my iphone...I have uninstalled and re-installed several times now without any luck.
    Thanks,

    'The installer has insufficient privileges to modify this file C:\Program Files (x86)\Common Files\Apple\Apple Application Support\Web kit.resources\inspector\Images\Spinner Inactive Selected.gif.'
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Why Netflix does not open after the new 7.0 update?

    WHY  Netflix does not open after the new update 7.9?

    Vincent149 wrote:
    I went to At&t yesterday, they said you have to call Apple support! Which im gong to try today since no one on here has posted anything back! Im frustrated! Maybe its there way of selling new phone!!!!
    These are user to user forums.  You are not addressing Apple by posting here.  If some other person has a solutoin for you, then they will post it.

  • HT1338 Final Cut Pro will not update after new os and compressor will not run until the update is done. System shows no updates available

    Final Cut Pro will not update after new os and compressor will not run until the update is done. System shows no updates available

    Sorry for being unclear.
    When I am using the update in the App Store App, there will be a list of various applications that have updates to be installed (Final Cut Pro will be in this list).  I will already be logged in with the Apple ID I use for everything (my dev account).  I will be able to update all of the other various applications needing updating except for my Final Cut Pro.  When I click the update button next to the FCP update, it will give me an error saying  "This download is not available for this apple ID either because it was bought by a different user or the item was refunded or cancelled"
    I have not had any applications refunded or cancelled and this has only happened since my update to Yosemite.  FCP was working fine until the upgrade.  Is there anything that can be done to fix this?

  • TS3992 Changes to my notes, contacts, etc., on my iPhone are not updating in the Cloud after back up

    I upgraded to iPhone 5 but when I back up the Cloud (both wifi and plug-in), changes to my notes, contacts, etc., that I've made on my iPhone are not updating in the Cloud

    Hi Gorm019,
    If you are having issues with Photo Stream, you may find the following articles helpful:
    iCloud: My Photo Stream FAQ
    http://support.apple.com/kb/ht4486
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/ts3989
    Regards,
    - Brenden

Maybe you are looking for