DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: sequence

  1. #1
    Join Date
    May 2002
    Posts
    232
    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

  2. #2
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    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

  3. #3
    Join Date
    May 2002
    Posts
    232
    YES, I want sql scripts of all sequences in a particular owner.
    ex- create seqence seqname etc like all sequences sql script.
    thanks
    kavitha

  4. #4
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    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

  5. #5
    Join Date
    May 2002
    Posts
    232
    hii thanks
    kavitha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width