Solved

clear space

Posted on 2014-04-01
7
354 Views
Last Modified: 2014-04-06
From here how we can clear space

oracle@pulars:/home[DEFAULT]:
===> df -g .
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd1           2.00      0.08   96%    56722    57% /home
0
Comment
Question by:tonydba
7 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39969247
First, you could determine which are the biggest files and directories:

cd /home
du -ks * |sort -n

The biggest will appear at the bottom of the list. Values are shown in kilobytes.

To dig deeper you can "cd" to the biggest directories, one after the other,  and reissue the above command:

cd /home/big_dir
du -ks * | sort -n

At the end of these investigations you will know the biggest space consumers and can decide if they could be deleted or not ("rm filename" to delete a file or "rm -r directoryname" to delete a complete directory including all its files and subdirectories).
0
 
LVL 23

Expert Comment

by:David
ID: 39969255
It largely depends upon what is consuming your space.  I might begin with huge temporary files (logs, trace, reports, etc.); then go after smaller ones that are old.  Your Oracle alert, archive, and listener log(s) should be trimmed periodically for preventative maintenance.

Obviously, DO NOT drop the datafiles, redo logs, etc.

A simple search of the abundant linux documentation will give you the syntax of the find command.

Do you have any specific examples of potential problems?
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 39969577
Hi tonydba, your question is about making space available on the /home filesystem.

Are we right to assume that you have an Oracle database installed under /home or is it just that you have to clean some files? If it's just about files then Oracle Database would not be the right topic.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 39970894
I haven't read above comments, but based on your question, you can find if any file(s) older than certain day can be delete. To do this use find command with rm.
i.e.

find /home/ \( -name '*.*' -mtime +45 \) -print -exec rm {} \;
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39971491
Check what all files are consuming the most of the space

#find /home -xdev -ls | sort -nr -k 7 | head

accordingly you can do the needful..

TY/SA
0
 

Author Closing Comment

by:tonydba
ID: 39981677
thanks
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

911 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

19 Experts available now in Live!

Get 1:1 Help Now