Solved

How to reclaim data store space in timesten 7.0.5 database

Posted on 2014-01-03
2
692 Views
Last Modified: 2014-01-06
Hello experts,

Lately i am having challenges with Timesten datastore space issues. I truncated one huge table consisting of 2+ millions rows and even after that i would not get the space back. I tried restarting the TT manager and that didnt work either.

The 'log purge and 'Log auto truncate' options are enabled in my DSN.

Perm size: 900 (currently sitting at 845 mb)
Temp size: 100
log file size 128
log bugger: 131072
0
Comment
Question by:parpaa
2 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
I don't think you can shrink it directly, but  could you copy the data (if there is anything left after deletes/trunctes), drop the tables (and tablespaces if they have nothing else in them), then recreate the structures and reload the data?
0
 
LVL 18

Expert Comment

by:sventhan
Comment Utility
If the tablespace has not objects on it drop it using the following syntax

drop tablespace tablespace_name including contents;

This will drop the datafiles at the OS level and free up the space.

If the tablespace is NOT empty, but if it has some freespace move that object to a new tablespace and then drop the tablespace. This will help reclaiming the space.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Creating and Managing Databases with phpMyAdmin in cPanel.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now