DG modify SGA in case of ORA-00845

Source: Internet
Author: User
Oracle11G: generate the PFILE: createpfilehomeoracleinitorcl. orafromspfile; modify the value of *. memory_target542570912 in PFILE. Then restart the database from the new PFILE file to the NOMOUNT state. SQLstartupnomountpfilehomeOracleinitorcl. ora; ORA-00845: ME

Oracle 11G: generate the PFILE: create pfile =/home/oracle/initorcl. ora from spfile; modify the value of *. memory_target = 536870912 in PFILE. Then restart the database from the new PFILE file to the NOMOUNT state. SQL startup nomount pfile =/home/Oracle/initorcl. ora; ORA-00845: ME

Oracle 11G: Generate PFILE file: create pfile = '/home/oracle/initorcl. ora' from spfile;
Modify the value of *. memory_target = 536870912 in PFILE.
Then restart the database from the new PFILE file to the NOMOUNT state.
SQL> startup nomount pfile = '/home/Oracle/initorcl. ora ';


ORA-00845: MEMORY_TARGET not supported on this system
The reason is that the value is greater than the value of/dev/shm.
Df-k/dev/shm
Filesystem 1K-blocks Used Available Use % Mounted on
Tmpfs 517600 0 517600 0%/dev/shm
Solution:
Modify FSTAB
Vi/etc/fstab
/Dev/VolGroup00/LogVol00/ext3 defaults 1 1
LABEL =/boot ext3 defaults 1 2
Tmpfs/dev/shm tmpfs ults, size = 1024 m 0 0
Devpts/dev/pts devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
/Dev/VolGroup00/LogVol01 swap defaults 0 0
Remount:
[Root @ localhost ~] # Umount/dev/shm
[Root @ localhost ~] # Mount/dev/shm
[Root @ localhost ~] # Df-h/dev/shm
Filesystem Size Used Avail Use % Mounted on
Tmpfs 1.0G 0 1.0G 0%/dev/shm

Start the database again
SQL> startup pfile = '/home/Oracle/initorcl. ora ';
Oracle instance started.

Total System Global Area 535662592 bytes
Fixed Size 1337720 bytes
Variable Size 327157384 bytes
Database Buffers 201326592 bytes
Redo Buffers 5840896 bytes
Database mounted.
Database opened.
SQL> show sga

Total System Global Area 535662592 bytes
Fixed Size 1337720 bytes
Variable Size 327157384 bytes
Database Buffers 201326592 bytes
Redo Buffers 5840896 bytes
SQL> select 535662592/1024/1024 from dual;

535662592/1024/1024
-------------------
510.847656

You can see that it has been modified.

Finally, verify the synchronization function.

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.