Solve ORA-00845 with/dev/shm size under CentOS

Source: Internet
Author: User

Environment: CentOS 6.2 64bit VMWare Workstation 7.1

In Linux, the automatic memory management of Oracle 11 GB cannot specify the total memory size greater than this/dev/shm. Otherwise, the following error occurs:

ORA-00845: MEMORY_TARGET not supported on this system

In Linux, the mount point/dev/shm is 50% of the system memory by default. According to the Oracle Installation manual, you need to manually specify the/dev/shm space, so that automatic memory management can use more memory.

Recently, wait4friend is on a CentOS6.2 VM. After modifying/dev/shm, the configuration always returns to the default value after the system is restarted. The entire process is as follows:

1. Check the current configuration of the system. tmpfs is 1.9 GB and 50% of the system memory.

[Root @ centos01 ~] # Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/mapper/vg_centos00-lv_root

14 GB 11G 2.6G 80%/

Tmpfs 1.9G 88 K 1.9G 1%/dev/shm

/Dev/sda1 485 M 37 M 424 M 8%/boot

2. Modify/etc/fstab and specify a large value for/dev/shm. The red section below is the new value.

[Root @ centos01 ~] # Cat/etc/fstab

/Dev/mapper/vg_centos00-lv_root/ext4 ults 1 1

UUID = 3f3c551e-902d-46f6-9b93-0430c175421/boot ext4 ults 1 2

/Dev/mapper/vg_centos00-lv_swap swap defaults 0 0

Tmpfs/dev/shm tmpfs ults, size = 3276 M 0 0

3. After re-mount, you can confirm that the new setting 3.2G takes effect.

[Root @ centos01 ~] # Fuser-km/dev/shm

/Dev/shm: 2136 m

[Root @ centos01 ~] # Umount/dev/shm

[Root @ centos01 ~] # Mount/dev/shm

[Root @ centos01 ~] # Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/mapper/vg_centos00-lv_root

14 GB 11G 2.6G 80%/

/Dev/sda1 485 M 37 M 424 M 8%/boot

Tmpfs 3.2G 0 3.2G 0%/dev/shm

  • 1
  • 2
  • Next Page

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.