Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LOB's and tablespace

Posted on 2004-09-17
2
Medium Priority
?
990 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 750 total points
ID: 12099871
disable constraints before truncate and enable them afterthat (even if there are no child records)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

885 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