Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> NUMBER precision vs. performance question
Let's say in Oracle 8i, 9i or 10g we have a proc like
Procedure P1( p number)
Is
x1 number :=12;
x2 number(2,0) :=34;
x3 BINARY_INTEGER :=56;
begin
When the procedure is called, and x1, x2 and x3 are allocated in memory, does x1 take more memory space than x2, how about x2 and x3?
According to Oracle 10g Doc http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10807/12_tune.htm:
The issue is that I found many palces in our application code have local variables defined as NUMBER, not NUMBER(p,s) or BINARY_INTEGER , I assume the memory impact would be very very small, but if hundreds or thousands of places are like that, and the application is called by many, many users, then what kinds of impact could it be? BTW, I have never done any tests, just curious what other people's experience is.
TIA.
Guang
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Jun 14 2006 - 13:20:09 CDT
![]() |
![]() |