日期:2014-05-16  浏览次数:20518 次

Oracle导出数据库中所有sequence
select 'create sequence &your_schema_name.'|| SEQUENCE_NAME || ' minvalue '||MIN_VALUE||' maxvalue '||MAX_VALUE||' start with '||LAST_NUMBER||' increment by '||INCREMENT_BY||' cache '||CACHE_SIZE||' ;'
from dba_sequences where SEQUENCE_OWNER=upper('&your_schema_name');