Oracle 视图 ALL_SEQUENCES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_SEQUENCES用于查看当前用户拥有权限的所有序列。它显示了当前用户拥有权限的序列应用信息,如用户、表空间、创建时间、最新数字、最大值、最小值、循环模式等。ALL_SEQUENCES视图中的每一个序列都是一个对象,它具有不同的属性和功能参数。
使用方式:
例:查看当前用户有权访问的序列
SELECT * from ALL_SEQUENCES;
例:查询指定序列的最大值
SELECT MAX_VALUE FROM ALL_SEQUENCES WHERE SEQUENCE_NAME = ‘sequence_name’;
官方英文解释
ALL_SEQUENCES
describes all sequences accessible to the current user.
Related Views
-
DBA_SEQUENCES
describes all sequences in the database. -
USER_SEQUENCES
describes all sequences owned by the current user. This view does not display theSEQUENCE_OWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the sequence |
|
|
|
Sequence name |
|
|
Minimum value of the sequence |
|
|
|
Maximum value of the sequence |
|
|
|
|
Value by which sequence is incremented |
|
|
Indicates whether the sequence wraps around on reaching the limit ( |
|
|
|
Indicates whether sequence numbers are generated in order ( |
|
|
|
|
Number of sequence numbers to cache |
|
|
|
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. For session sequences, the value in this column should be ignored. |
|
|
Indicates whether this is a scalable sequence ( |
|
|
|
Indicates whether this scalable sequence’s generated values extend beyond |
|
|
|
Indicates whether this is a sharded sequence ( |
|
|
|
Indicates whether sequence values are session private ( |
|
|
|
Indicates whether sequence values are kept during replay after a failure ( |
See Also:
-
“DBA_SEQUENCES”
-
“USER_SEQUENCES”