Common Errors & Integrity During DML MCQs

4 MCQs  — Oracle: Modifying Data & Multiple Databases MCQs

Practice Common Errors & Integrity During DML MCQs with correct answers and explanations. These questions are from the Oracle: Modifying Data & Multiple Databases MCQs section.

Which error occurs when inserting a child row whose parent key does not exist?
ORA-02292: child record found
ORA-00001: unique constraint violated
ORA-01400: cannot insert NULL
ORA-02291: integrity constraint violated - parent key not found
Which error occurs when deleting a parent row that still has child rows?
ORA-02292: child record found
ORA-02291: parent key not found
ORA-00054: resource busy
ORA-01722: invalid number
Which error occurs when inserting NULL into a NOT NULL column?
ORA-00942: table does not exist
ORA-01017: invalid username
ORA-00904: invalid identifier
ORA-01400: cannot insert NULL
Which error indicates the net service name in a connect string cannot be resolved?
ORA-12541: no listener
ORA-01034: ORACLE not available
ORA-28000: account locked
ORA-12154: TNS:could not resolve the connect identifier