Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Negative Number ??

Posted on 2004-04-27
3
Medium Priority
?
666 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 375 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

972 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