Solved

Negative Number ??

Posted on 2004-04-27
3
663 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
[X]
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
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

623 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