troubleshooting Question

ORA-01449: column contains NULL values; cannot alter to NOT NULL

Avatar of Nakuru1234
Nakuru1234 asked on
Oracle Database
12 Comments5 Solutions3790 ViewsLast Modified:
Hello,

I am executing this query but I keep getting an error message

ALTER TABLE UTG.PARAMETER
 ADD CONSTRAINT PARAMETER_PK
 PRIMARY KEY
 (PARAM_ID, CIR_TYPE)

Error at line 1
ORA-01449: column contains NULL values; cannot alter to NOT NULL

How can I be able to add a PK on both columns (PARAM_ID, CIR_TYPE) and make them NOT NULL without this error message?

TIA,
N.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 5 Answers and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros