Solved

clear space

Posted on 2014-04-01
7
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 38

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

688 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