# questions

**URL:** <https://forums.toadworld.com/t/questions/39311>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [April 8, 2017, 10:04am UTC](https://forums.toadworld.com/t/questions/39311 "2017-04-08T10:04:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaimaa](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shaimaa](https://forums.toadworld.com/u/shaimaa)\
**Post date:** [April 8, 2017, 10:04am UTC](https://forums.toadworld.com/t/questions/39311/1 "2017-04-08T10:04:05Z")

</div>

How to shrink tablespace using toad for oracle and how it works?

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [April 10, 2017, 5:53am UTC](https://forums.toadworld.com/t/questions/39311/2 "2017-04-10T05:53:04Z")

</div>

Technically, you don’t shrink tablespaces, you shrink datafiles. A tablespace contains one or more datafiles.

Anyway, to shrink, you can find the tablespace in the Schema Browser, then go to the right hand side where the files are listed and double-click on the file that you want to shrink. Click the “Minimum Size” button to find out what is the minimum size that you can shrink it to. Enter the new file size in the dialog that appears and click OK. Toad will issue a command like “ALTER DATABASE DATAFILE ‘c:\path\_to\_file\file.dbf’ RESIZE 100M;” and Oracle will resize it.

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [April 10, 2017, 11:33pm UTC](https://forums.toadworld.com/t/questions/39311/3 "2017-04-10T23:33:45Z")

</div>

…small addition to John’s reply:

all of that can be run online (when database is up and running) with no circumstances to any running session.
