The disk space of the oracle for linux server is insufficient. The disk space is released through expired files.

Source: Internet
Author: User
Tags tmp file

-- Data intercepted from --

Run the df-h command to view the system disk space.

[Root @ erpdbs PROD] # df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda5 4.9G 241 M 4.4G 6%/
/Dev/sda10 716G 432G 248G 64%/back
/Dev/sda1 4.9G 50 M 4.6G 2%/boot
/Dev/sda9 481G 415G 42G 91%/data
None 7.9G 0 7.9G 0%/dev/shm
/Dev/sda7 4.9G 47 M 4.6G 1%/home
/Dev/sda8 2.0G 36 M 1.8G 2%/tmp
/Dev/sda3 9.7G 3.2 GB 6.0G 35%/usr
/Dev/sda6 4.9G 144 M 4.5G 4%/var

We found that the sda9 partition has used 91%.

Use du-h -- max-depth = 1/data/* to view the file or directory in the/data Directory, which occupies a large disk space.

[Root @ erpdbs cron] # du-h -- max-depth = 1/data /*
121G/data/arch/PROD
20 K/data/arch/PROD1
121 GB/data/arch
16 K/data/lost + found
20 M/data/ora
2.6 M/data/ora. log
4.0 K/data/ora. sh
11G/data/prod/proddb
190G/data/prod/proddata
201 GB/data/prod
160 K/data/RCV11i_RMA_9000033349-_N.html
92 K/data/scripts_db/rmanback
16 K/data/scripts_db/coldback
24 K/data/scripts_db/hotback
144 K/data/scripts_db
774 M/data/soft/database
60 KB/data/soft/9726739 KB
1.3G/data/soft/Disk1
728 M/data/soft/companion
5.3 GB/data/soft
67G/data/tmp

Delete the tmp file of/data/tmp two years ago, use the following command

[Root @ erpdbs cron] # find/data/tmp/-name '*. *'-mtime + 720 | xargs rm

Only 3G space is released for/data

-- Data intercepted in --

[Root @ erpdbs PROD] # df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda5 4.9G 241 M 4.4G 6%/
/Dev/sda10 716G 432G 248G 64%/back
/Dev/sda1 4.9G 50 M 4.6G 2%/boot
/Dev/sda9 481G 319 GB 138G 70%/data
None 7.9G 0 7.9G 0%/dev/shm
/Dev/sda7 4.9G 47 M 4.6G 1%/home
/Dev/sda8 2.0G 36 M 1.8G 2%/tmp
/Dev/sda3 9.7G 3.2 GB 6.0G 35%/usr
/Dev/sda6 4.9G 144 M 4.5G 4%/var

[Root @ erpdbs cron] # du-h -- max-depth = 1/data /*
46G/data/arch/PROD
4.0 K/data/arch/PROD1
46G/data/arch
16 K/data/lost + found
20 M/data/ora
2.7 M/data/ora. log
4.0 K/data/ora. sh
11G/data/prod/proddb
190G/data/prod/proddata
201 GB/data/prod
160 K/data/RCV11i_RMA_9000033349-_N.html
132 K/data/scripts_db/rmanback
16 K/data/scripts_db/coldback
24 K/data/scripts_db/hotback
184 K/data/scripts_db
774 M/data/soft/database
60 KB/data/soft/9726739 KB
1.3G/data/soft/Disk1
728 M/data/soft/companion
5.3 GB/data/soft
68G/data/tmp

View/data/scripts_db/rmanback. log. The old archive log under/data/arch is deleted and 20 GB of disk space is released.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.