473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Oracle Sequences

We make use of sequences throughout our application. However, one in particular is causing concern. The sequence is tied to a table and increments when an insert trigger fires on the table. The sequence then becomes the primary key ( number 15 ) on the inserted row. In creating the sequence, 1 was established as the increment value.

The number of rows in the underlying table is approximately 40,000; the sequence is over 216,000,000.

We see large jumps in the sequence ( 100k + ) only when new processes are started i.e. a batch job or online transaction. During this process, if rows are inserted, the increment is 1, as expected.

Nowhere in our application is the nextval statement on this sequence used except in the trigger.

Any ideas?

Thanks,
Charlie
Jan 19 '07 #1
2 1681
i2eye
5
So you are saying that the sequence jumps more than 1 increment at a time?

If that is the case, perhaps the records are getting inserted and the sequence is being inserted as normal... but somewhere in the proccess, the inserts are not being commited...perhaps a rollback occuring, and only some of the records are being commited.
Jan 19 '07 #2
the cache option of oracle sequence causes numbers to skip if there is any slight problem(can be network problems or any other)...So if its necessary in your application that sequence numbers are not skipped,use the no cache option...there wont be much decrease in performance also...


alter sequence "'sequencename' "no cache ;
Jan 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

38
by: Mike | last post by:
No flame wars, please! We're planning a move from a non-relational system to a relational system. Our choices have been narrowed to Oracle and DB2. Since we're moving from non-relational to...
125
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup...
4
by: golu | last post by:
Has any body done the porting from oracle to sql server, what were the issues in porting the data bases? Also suggest some resources which can be helpful in the porting project TIA Golu
28
by: prunoki | last post by:
Hello, I am an SQL server newbie. Our company has a massive application written in PL/SQL. I need to port parts of it to SQL Server. - Which SQL server version should I choose, to have a...
6
by: Prince Kumar | last post by:
I have a requirement where I have to generate sequnce like numbers within another key. My table is like, custrec ------- cust# seq# 10 1 10 2
5
by: berj | last post by:
Is it possible to access an Oracle sequence by using ODBC in MS Access? I have been able to link to the Oracle tables, but need autonumbering and I am not able to change the column properties. ...
42
by: Paul | last post by:
Anyone know where I can find some good resources to help us choose between SQL and Oracle ( Progress Openedge as well ) . Any comments on what you would choose ?? We are creating a new Warehouse...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
0
debasisdas
by: debasisdas | last post by:
PL/SQL: Sequences ================ In Oracle, the sequences object provides a sequential series of numbers to applications without the overhead of disk I/O or transaction locking. These values are...
0
by: mail2sanand | last post by:
Hi all, I am facing a new issue with oracle and rails. I feel rails is expecting a sequence name associated with all the tables. The actual question is that how can we make rails...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.