Thursday, September 4, 2008

DBA_SEQUENCES

Oracle 11gR1

DBA_SEQUENCES describes all sequences in the database. Its columns are the same as those in "ALL_SEQUENCES".

Related Views

· ALL_SEQUENCES describes all sequences accessible to the current user.

· USER_SEQUENCES describes all sequences owned by the current user. This view does not display the SEQUENCE_OWNER column.

Column

Datatype

NULL

Description

SEQUENCE_OWNER

VARCHAR2(30)

NOT NULL

Name of the owner of the sequence

SEQUENCE_NAME

VARCHAR2(30)

NOT NULL

Sequence name

MIN_VALUE

NUMBER

Minimum value of the sequence

MAX_VALUE

NUMBER

Maximum value of the sequence

INCREMENT_BY

NUMBER

NOT NULL

Value by which sequence is incremented

CYCLE_FLAG

VARCHAR2(1)

Does sequence wrap around on reaching limit

ORDER_FLAG

VARCHAR2(1)

Are sequence numbers generated in order

CACHE_SIZE

NUMBER

NOT NULL

Number of sequence numbers to cache

LAST_NUMBER

NUMBER

NOT NULL

Last sequence number written to disk. If a sequence uses caching, the number written to disk is the last number placed in the sequence cache. This number is likely to be greater than the last sequence number that was used.

Note:

1.

select * from DBA_SEQUENCES;

SEQUENCE_

OWNER

SEQUENCE_

NAME

MIN_

VALUE

MAX_

VALUE

INCREMENT_

BY

CYCLE_

FLAG

ORDER_

FLAG

CACHE_

SIZE

LAST_

NUMBER

SDE

R20

1

2147483647

1

N

N

0

1

SDE

R22

1

2147483647

1

N

N

0

1

SDE

R24

1

2147483647

1

N

N

0

137

SDE

R26

1

2147483647

1

N

N

0

1

Oracle data dictionary views

No comments:

Post a Comment