Which three statements are true regarding the above command?

Examine the following statement that is used to modify the primary key constraint on the SALES table:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true regarding the above command? (Choose three.)

Examine the following statement that is used to modify the primary key constraint on the SALES table:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true regarding the above command? (Choose three.)

A.
The constraint remains valid.

B.
The index on the constraint is dropped.

C.
It allows the loading of data into the table using SQL *Loader.

D.
New data conforms to the constraint, but existing data is not checked.

E.
It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements.



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Daniel

Daniel

I keep finding this:

DISABLE VALIDATE disables the constraint, drops the index on the constraint, and disallows any modification of the constrained columns.

So how can A be true.

Ann

Ann

Please explain how B can be correct. If the Index should be dropped shulden it need a cascade like this
ALTER TABLE sales DROP CONSTRAINT pk CASCADE;

Justyna

Justyna

You cannot insert new records.

Cuco

Cuco

The extract from the above Oracle doc.
DISABLE VALIDATE disables the constraint and drops the index on the constraint, but keeps the constraint valid. This feature is most useful in data warehousing situations, because it lets you load large amounts of data while also saving space by not having an index. This setting lets you load data from a nonpartitioned table into a partitioned table using the exchange_partition_clause of the ALTER TABLE statement or using SQL*Loader. All other modifications to the table (inserts, updates, and deletes) by other SQL statements are disallowed.