Solved

LOB's and tablespace

Posted on 2004-09-17
2
986 Views
Last Modified: 2008-03-10
problem:

some applications safe some data into some tables. one table use 'CLOB' as datatype.
after some time i will manually delete the records (delete from table xxx;commit;)

but: i cannot get free tablespace (tablespace that used by 'LOB' are full)

i am thinking of reorganisation of the used tables, but are there other options available?
the 'CLOB' use very much tablespace too!! are there options to safe some data (messages) more effective?


0
Comment
Question by:timemasterx
2 Comments
 
LVL 23

Expert Comment

by:seazodiac
ID: 12086231
Use truncate instead of delete.

truncate command will reclaim the data storage used by table and return them as free space to the tablespace.

SQL>truncate table <table_name>


but the above command only apply to the situation that you want to delete all the records in the table.


0
 
LVL 9

Accepted Solution

by:
konektor earned 250 total points
ID: 12099871
disable constraints before truncate and enable them afterthat (even if there are no child records)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Suggested Solutions

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…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

828 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