| PL/SQL [message #454436] |
Wed, 05 May 2010 10:18  |
indupriyav
Messages: 10 Registered: April 2010
|
Junior Member |
|
|
Im a oracle pl/sql developer but I didnt learn oracle as a language. With my sql skills I started working on Oracle.
In my project every table has an associated MLOG$ table for it.
For eg.
CREATE TABLE MLOG$_TEST
(
ID VARCHAR2(64 BYTE),
SNAPTIME$$ DATE,
DMLTYPE$$ VARCHAR2(1 BYTE),
OLD_NEW$$ VARCHAR2(1 BYTE),
CHANGE_VECTOR$$ RAW(255)
)
So is MLOG$_TEST oracle's internal table.
Whenever an insert/update/delete happens it is recorded in MLOG$ tables as I/U/D for the priamry key.
So if I do a bulk delete of records in tables an entry is made into MLOG$ tables. So deleting old records in a database doesnt free much space.
If this is oracle internal table is it advisable to delete from MLOG$ tables too.
My oracle database is mounted on the Linux server.
If I delete bulk records in tables from which path I can see how much space is freed.
Thanks!!!
|
|
|
|
|
|
| Re: PL/SQL [message #454439 is a reply to message #454436] |
Wed, 05 May 2010 10:24   |
cookiemonster
Messages: 13975 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
|
Suggest you read up on materialized view logs (and materialized views generally) in the documentation.
|
|
|
|
|
|
| Re: PL/SQL [message #454588 is a reply to message #454436] |
Thu, 06 May 2010 06:38   |
indupriyav
Messages: 10 Registered: April 2010
|
Junior Member |
|
|
Hi Michael,
I deleted old data in my database. There was a concern by a user that the space in the table did'nt decrease instead increased. He checked that in Toad-Database-Admin-Tablespace.
So I believe per your statement there wont be change in tablespace.
We thought an entry of deleted records being made in MLOG$ wont free up much space.
Generally I was asked to disable the MLOG$ during deletion of old records. How can I do that?
I have experince in mview created instead of normal views. But the MLOG$ associated with each table seemed to be different.
Thanks,
Priya
|
|
|
|
|
|
| Re: PL/SQL [message #454592 is a reply to message #454589] |
Thu, 06 May 2010 06:51   |
cookiemonster
Messages: 13975 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
indupriyav wrote on Thu, 06 May 2010 12:40DBMS_SPACE.SPACE_USAGE is expecting a lot of parameters.
So?
|
|
|
|
|
|
|
|
|
|