Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Sync serial value after manually inserted records: msg#00059

db.maxdb

Subject: Sync serial value after manually inserted records

Hi all,

I've encountered a very serious problem using serials.

A MaxDB is first filled via an ETL-process as a copy of a different DBMS, i.e. all tables containing serial columns are filled not by the MaxDB number generator, but by a manual insert.

The source database is already used and, because of some normal deletions, the serial ids are not subsequent.

Using the new filled MaxDB our application gets lots of "Duplicate key error", because the next generated serial id is already in use within the table.

So here are the questions:

+) Is it possible to synchronize the max value of a serial with the highest value of the serial id within the table?

+) Is there any way, maybe as dba, to change the current serial value within the cataloge?

+) Is there any other way to use serials for tables wich values can also be manually inserted?

Environment is
- Linux / WindowsXP SP2
- MaxDB version: 7.5.00.18 build 018-121-079-776
- JDBC-driver-version: 7.6.0 build 000-000-003-264

Different combinations of other (newer/older) versions are also tested without success.

Any help is greatly appreciate.

--
Erik Rehrmann

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo