Solved

Negative Number ??

Posted on 2004-04-27
3
656 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now