RE: Can you add not null column to a table already containing data ?
Yes
ALTER TABLE <Table Name>
MODIFY <Column Name> NOT NULL;
Ex:
ALTER TABLE scfg MODIFY scfg1 VARCHAR2(10) NOT NULL;
If you have null values in the column then you have to update all with some default value using update script otherwise it will give you error: Null Value Found
RE: Can you add not null column to a table already containing data ?
Yes you can add NOT NULL column to a table that already contains data. There would not be any error such that. But only the new records inserted would be affected.
RE: Can you add not null column to a table already containing data ?
1. By default you cannot add not null constraints which already have null value in the column. 2. You need replace some dummy values to null value to meet requirement and then add constraint to that column.