Solved

LOB's and tablespace

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Difference in number of minutes between 2 timestamps 16 54
case statement in where clause 5 48
Best RAID for a BDD Oracle 4 69
Create table from select - oracle 6 41
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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
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.

803 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