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

Thread: Sequence Number issue in 11g RAC

  1. #1
    Join Date
    Feb 2006
    Posts
    10

    Sequence Number issue in 11g RAC

    Hi All,

    In our production, we have two nodes in the cluster. We use the sequence for one of the main table for primary key. Our application is expecting sequence number increments along with created date time stamp. Right now sequences are cached for each node and it creates problem for the application. We would not like to use NOCACHE option because it causes performance issue.

    This is the current scenario -

    Transaction #1 on Node 1 - Seq ID 1 - Time Stamp 12:01
    Transaction #2 on Node 2 - Seq ID 51 - Time Stamp 12:02
    Transaction #3 on Node 1 - Seq ID 2 - Time Stamp 12:03

    When I try to query based on the time stamp, primary should also go up. How do I achieve that?

    Thanks in advance,
    Rao

  2. #2
    Join Date
    Feb 2006
    Posts
    10
    To be very clear on what I would like to have, please consider the following example.

    Without using NOCACHE option, I need to have the data in the following order.

    Transaction #1 on Node 1 - Seq ID 1 - Time Stamp 12:01
    Transaction #2 on Node 2 - Seq ID 2 - Time Stamp 12:02
    Transaction #3 on Node 1 - Seq ID 3 - Time Stamp 12:03

    In other words, sequence number should always increment along with the time.

  3. #3
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    Quote Originally Posted by rchenna View Post
    ... Etc ...
    Without using NOCACHE option, I need ...
    Keep on dreaming...not possible without using NOCACHE option.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  4. #4
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    IMHO, You don't really need the sequence to be in the same order as the date stamp, it is not important or attainable, without the no cache. You can also try looking for a natural key in your data, since there is a lot of overhead in using sequences for insert heavy tables.

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