473,666 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle9i: very big problem with precition of SYSTIMESTAMP !

Hello All.

Could you please help us with one issue?

We have a table with QTIME TIMESTAMP(9) field and this field is primary key
in the table.
When we run 400 (or more) insert SQLs like the:

insert into Table1 (qtime, v1, v2) values (systimestamp, 'Vnnnnn',
'Vnnnnn');

we got 150 (or more) error messages that says:

ERROR at line 1:
ORA-00001: unique constraint (TEST.SYS_C0020 2884) violated

Finally only 230-270 rows were inserted successfully (rest or rows rejected
with the mentioned error message).
The SQL:

select qtime from Table1

shows something like the:

QTIME
---------------------------------------------------------------------------
2004-09-16-10.12.16.247000 000
2004-09-16-10.12.16.263000 000
2004-09-16-10.12.16.278000 000
[...etc...]

As you can see only first 3 digits are different in QTIME values.
As I got the problem occurs because of bad precision of SYSTIMESTAMP.
I think that insert SQLs executed faster than values returned by
SYSTIMESTAMP became different...

We want to have at least 6 unique digits in seconds fraction!
Is it possible to achieve this with Oracle ?

Oracle documentation said: "The exact resolution depends on the operating
system clock.".
But we also experienced in working with IBM DB2 - it provides 6 unique
digits for seconds fraction (in the similar hardware and software
configuration), then we have two options:
1) it is the BUG in Oracle9i;
2) or we need to configure something in Oracle to achieve needed precision
of SYSTIMESTAMP.
I hope this is not BUG of Oracle...
I hope we can configure something to resolve this problem.
But the question - what?...

Could you please share some your experience concerning the case?
Could you please provide us with some advices ?
WBR,
Dmitry.

ps. our Oracle server has the following configuration:
CPU=Dual AMD Athlon 2000+ MP, RAM=2Gb, HDD=80Gb
OS=Windows Server 2003 Standard with all latest hotfixes from MS

pps. NLS_TIMESTAMP_F ORMAT = 'YYYY-MM-DD-HH24.MI.SSXFF';
Jul 19 '05 #1
1 6028

"Dmitry Bond." <di******@ukr.n et> wrote in message
news:10******** *******@moxa.un ited.net.ua...
Hello All.

Could you please help us with one issue?

We have a table with QTIME TIMESTAMP(9) field and this field is primary key in the table.
When we run 400 (or more) insert SQLs like the:

insert into Table1 (qtime, v1, v2) values (systimestamp, 'Vnnnnn',
'Vnnnnn');

we got 150 (or more) error messages that says:

ERROR at line 1:
ORA-00001: unique constraint (TEST.SYS_C0020 2884) violated

Finally only 230-270 rows were inserted successfully (rest or rows rejected with the mentioned error message).
The SQL:

select qtime from Table1

shows something like the:

QTIME
-------------------------------------------------------------------------- - 2004-09-16-10.12.16.247000 000
2004-09-16-10.12.16.263000 000
2004-09-16-10.12.16.278000 000
[...etc...]

As you can see only first 3 digits are different in QTIME values.
As I got the problem occurs because of bad precision of SYSTIMESTAMP.
I think that insert SQLs executed faster than values returned by
SYSTIMESTAMP became different...

We want to have at least 6 unique digits in seconds fraction!
Is it possible to achieve this with Oracle ?

Oracle documentation said: "The exact resolution depends on the operating
system clock.".
But we also experienced in working with IBM DB2 - it provides 6 unique
digits for seconds fraction (in the similar hardware and software
configuration), then we have two options:
1) it is the BUG in Oracle9i;
2) or we need to configure something in Oracle to achieve needed precision
of SYSTIMESTAMP.
I hope this is not BUG of Oracle...
I hope we can configure something to resolve this problem.
But the question - what?...

Could you please share some your experience concerning the case?
Could you please provide us with some advices ?
WBR,
Dmitry.

ps. our Oracle server has the following configuration:
CPU=Dual AMD Athlon 2000+ MP, RAM=2Gb, HDD=80Gb
OS=Windows Server 2003 Standard with all latest hotfixes from MS

pps. NLS_TIMESTAMP_F ORMAT = 'YYYY-MM-DD-HH24.MI.SSXFF';


Log a tar with Metalink.
Jim
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1408
by: Kelly Carrigan | last post by:
What combination of component versions is required to get Python, DCOracle2, and an Oracle9i database on AIX 5.1 working together? It seems that installing on AIX 5.1 with Oracle9i has at least two challenges: 1. The libclntsh.so file doesn't exist and that file is referenced in the installation. There is a libclntsh.a file but that is now what is referenced. 2. The lib sub-directory is now the 64-bit Oracle distribution (don't know if...
0
6242
by: A. Fuentes | last post by:
Fellow Oracle Netters: I have the following problem: Enviroment: Oracle9i/AIX5.2/Veritas vxvm I am trying to create an Oracle database using RAW devices UNDER the Veritas vxvm.(Veritas Volume Manager). Brief Antecedents:
0
1939
by: Oracle Instructor | last post by:
Hi All, Edmonds Community College is now offering the Oracle Development Courses, which include Oracle9i SQL, Oracle9i PL/SQL, Oracle9i Forms, and Oracle9i Reports. These courses will provide you with the skills needed to pass the Oracle Certification tests. Because they are credit classes (State Funded), you will save thousands of dollars by taking these courses with Edmonds Community College. Here are the Oracle courses that are...
0
2210
by: aychai | last post by:
Hi all, I am trying to make use Oracle9i db to call an external .Net Web Service from a JAva Stored Procedure. I created the .Net Web Service and use JDeveloper 9.0.3.4Build(1247) to create the Client Stub Java class(ie: serviceClientStub.java). Following the instruction from the article"Calling External Web Service from Java Stored Procedure",
1
3016
by: Hesam Shamshiri | last post by:
I am having a problem linking an oci 7 application with oracle9i on AIX 4.3. The makefile has the following line: -L/home/oracle/product/9.0.1/lib -lclntsh This was working in oracle 8, however on oracle 9i, there are many unresolved symbols: orlon
3
10975
by: Nathan Sokalski | last post by:
When I attempt to run a form created with Oracle9i Forms Builder I receive a dialog box asking for the following info: User Name: Password: Database: I obviously know my User Name and Password, and I assume that the value I use for Database is the value found in the tnsnames.ora file (in my case, ORCL). However, when I do this I receive the following error:
4
3213
by: gopiinamadar | last post by:
hi i want to connect a jsp file with oracle9i server. initially i used MS Access with jsp and i will copy all jsp and html pages in webapp/root files and run apache tomacat5.5, it works fine.. but now i want to connect it with oracle9i server. so what i have to do or where i have to copy the files(jsp & html) or any other method? please help me thanks
1
1727
by: gopiinamadar | last post by:
hi i want to connect a jsp file with oracle9i server. initially i used MS Access with jsp and i will copy all jsp and html pages in webapp/root files and run apache tomacat5.5, it works fine.. but now i want to connect it with oracle9i server. so what i have to do or where i have to copy the files(jsp & html) or any other method? please help me thanks
1
1240
by: Dmitry Bond. | last post by:
Hello All. Could you please help us with one issue? We have a table with QTIME TIMESTAMP(9) field and this field is primary key in the table. When we run 400 (or more) insert SQLs like the: insert into Table1 (qtime, v1, v2) values (systimestamp, 'Vnnnnn', 'Vnnnnn');
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.