Solved

LOB's and tablespace

Posted on 2004-09-17
2
987 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
[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 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

752 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