Home » SQL & PL/SQL » SQL & PL/SQL » materialized view log size doesn't correlate with its rows quantity (Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production)
materialized view log size doesn't correlate with its rows quantity [message #628051] Wed, 19 November 2014 09:34 Go to next message
ecivgamer
Messages: 147
Registered: May 2011
Location: Ukraine
Senior Member
Hi all,

We investigated that materialized view log size doesn't correlate with its rows quantity.

For example,

select segment_name, bytes from dba_segments where (segment_name, owner) = (
select log_table, log_owner
from dba_mview_logs
where master = 'AP_INVOICES_ALL'
)

SEGMENT_NAME BYTES
------------------------------
MLOG$_AP_INVOICES_ALL 113786880


select count(1) cnt from AP.MLOG$_AP_INVOICES_ALL

CNT
----------
15


Maybe I just do not know something, but

select 113786880 / 1024 / 1024 as mbytes from dual

MBYTES
----------
108,515625


this size doesn't seem to be the appropriate.

Could someone please comment?


Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
"CORE 9.2.0.3.0 Production"
TNS for Solaris: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production
Re: materialized view log size doesn't correlate with its rows quantity [message #628052 is a reply to message #628051] Wed, 19 November 2014 09:39 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Could someone please comment?
V9 Oracle should be upgraded.

There can be a difference between allocated & used space.
Re: materialized view log size doesn't correlate with its rows quantity [message #628053 is a reply to message #628051] Wed, 19 November 2014 09:46 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Remember DELETE does not free space and does not shrink the table and return the space back to tablespace.

Re: materialized view log size doesn't correlate with its rows quantity [message #628055 is a reply to message #628053] Wed, 19 November 2014 09:50 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Problem Exists Between Keyboard And Chair
Re: materialized view log size doesn't correlate with its rows quantity [message #628065 is a reply to message #628055] Wed, 19 November 2014 13:20 Go to previous message
ecivgamer
Messages: 147
Registered: May 2011
Location: Ukraine
Senior Member
Thanks, Michel Cadot and BlackSwan (despite of irony).
Previous Topic: how to use analytical function
Next Topic: Pattern Marching using regexp
Goto Forum:
  


Current Time: Thu Apr 25 06:53:59 CDT 2024