-
Hiii,friends I want to get all sequences text ,i.e source from
owner abc.
So is there any sql script to find the all sequences text in abc owner.
if any one know plsss reply.
thanks
kavitha
kavitha
-
What is "sequences text"? Do you need the metadata?
Oracle Certified Master
Oracle Certified Professional 6i,8i,9i,10g,11g,12c
email: ocp_9i@yahoo.com
-
YES, I want sql scripts of all sequences in a particular owner.
ex- create seqence seqname etc like all sequences sql script.
thanks
kavitha
-
I just wrote that, try it first, it might not be 100% ok:
Code:
select 'CREATE SEQUENCE '||SEQUENCE_NAME||chr(10)||
' INCREMENT BY '||INCREMENT_BY||chr(10)||
' START WITH '||LAST_NUMBER||chr(10)||
' MINVALUE '||MIN_VALUE||chr(10)||
' MAXVALUE '||MAX_VALUE||chr(10)||
decode(CYCLE_FLAG,'N',' NOCYCLE','CICLE')||chr(10)||
decode(ORDER_FLAG,'N',' NOORDER','ORDER')||chr(10)||
' CACHE '||CACHE_SIZE
from ALL_SEQUENCES
where SEQUENCE_OWNER = 'ABC' ;
Oracle Certified Master
Oracle Certified Professional 6i,8i,9i,10g,11g,12c
email: ocp_9i@yahoo.com
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|