• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Maximum index limit in Oracle10g- can we reset?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

As I'm working in a Real Time Project, the database now contains 22digit indexes. We're using Oracle10g.
I want to know, whether we can set the Index to reset(to start from 0th Index) when it reaches the limit.

Please help me...


Thanks
-------
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need the CYCLE clause in your sequence DDL. If it does not have a max value... you will need to add it to the Alter below (for example of max... look at the create that follows the alter code).

To alter it



To create it...



I'd be surprised if you hit your limit any time soon.
[ November 24, 2008: Message edited by: Paul Campbell ]
 
Div Raj
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou Paul

But could you please tell me for what is the CYCLE clause used in sequence?


Thanks
-------
 
Div Raj
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I got it.

CYCLE clause we use if we want to force the sequence to start all over again once it hits the maximum value



Thankyou
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Div,
When all else fails, read the [Oracle] documentation.
For your information, documentation for nearly all Oracle versions can be accessed from:

http://www.oracle.com/technology/documentation/database.html

Good Luck,
Avi.
[ November 24, 2008: Message edited by: Avi Abrami ]
 
Div Raj
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ThankYou Avi
 
It's never done THAT before. Explain it to me tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic