QuestionQ115

VerifiedManaging Schema Objects

Review the following requirements for a sequence:

  1. Name: EMP_SEQ
  2. Initial value returned: 1
  3. Duplicate values must never be allowed.
  4. Supply values for insertion into the EMPLOYEES.EMPLOYEE_ID column.
  5. Minimize the likelihood of gaps in the values.

Which two statements meet these requirements?

Choose two
Explanation

Oracle sequences default to an ascending sequence that starts at 1 and increments by 1, and they are noncycling by default. NOCACHE prevents sequence values from being preallocated, which reduces gaps that can result from unused cached values. Thus, an explicit START WITH 1 INCREMENT BY 1 NOCACHE definition and a definition that uses the default start/increment settings with NOCACHE both meet the requirements.

Learn more

Community Discussion

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