QuestionQ68

VerifiedManaging Schema Objects

Evaluate the following commands, which execute successfully:

Question Image

Which two statements are correct about the ORD_ITEMS table and the ORD_SEQ sequence?

Choose two
Explanation

ORD_NO has the default expression ord_seq.NEXTVAL, so an insert that omits ORD_NO obtains the sequence’s next value. NEXTVAL requires access to the sequence; for a sequence in another schema, Oracle requires either the SELECT object privilege on that sequence or the SELECT ANY SEQUENCE system privilege. CYCLE causes an ascending sequence to resume at its minimum after its maximum, so this sequence can reuse values after reaching 100000; CACHE 5000 controls only how many values are preallocated.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!