Solved

clear space

Posted on 2014-04-01
7
360 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, EE MVE
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PL SQL Search Across Columns 4 38
fedora linux on laptop - setup sendmail - or some kind of email 5 45
form builder not starting 3 37
pl/sql - query very slow 26 61
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Via a live example, show how to take different types of Oracle backups using RMAN.

809 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