生成某个用户下的脚本文件
select 'create sequence '||sequence_name||
' minvalue '||min_value||
' maxvalue '||max_value||
' start with '||last_number||
' increment by '||increment_by||
(case when cache_size=0 then ' nocache' else ' cache '||cache_size end) ||';'
from dba_sequences where sequence_owner='XX'
本文转自 randy_shandong 51CTO博客,原文链接:http://blog.51cto.com/dba10g/595458,如需转载请自行联系原作者