Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Negative Number ??

Posted on 2004-04-27
3
660 Views
Last Modified: 2013-12-11
Hello, I do a query about bytes send/received via SQL*NET by an user, and the result is like this:

NAME                                                             VALUE    
------------------------------------------------------ ----------
bytes sent via SQL*Net to client                        -1,357E09

VAULE is NUMBER in the view V$SESSTAT,

I do not understand why VALUE is negative, is a format question ?? I don´t know.

Thanks in advance.
0
Comment
Question by:core007
  • 2
3 Comments
 
LVL 10

Expert Comment

by:SDutta
ID: 10930685
This was identified as a bug and fixed in 8.1.7, what version are you on ?

Basically the reason given was if the database stays up for too long this number becomes large enough to wrap around and show up as a negative number. This was also related to using parallel query if parallel_max_servers was set > 0.
0
 

Author Comment

by:core007
ID: 10937159
My version is 8.1.6.

Another question about this is if this negative number is a real value. That is, if the real value is the shown number, but positive, not negative. Or the shown value is a wrong value?
I don´t know.

Thanks in advance, again.
0
 
LVL 10

Accepted Solution

by:
SDutta earned 125 total points
ID: 10939362
There are a couple of open bugs on wrong values, including negative, in v$sesstat (Bugs 1936101 and 1713403). All these values get reset when you shutdown the database and bring it up again.

The negative number is generally real value that has cycled over. When Oracle uses a 32bit integer to hold the value, once you exceed 2^32 or about 2.1 billion the number becomes -1 and increments again. To get the real value, you could take the absolute value of the number and add it to the maximum positive value that the statistic can hold if the count has not cycled more than once. The problem is knowing how many times it has cycled.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
'G_F01' is not a procedure or is undefined 3 34
PL/SQL Display based on value 4 39
Oracle collections 15 26
error in my cursor 5 41
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question