Home > Database > Mysql Tutorial > DG修改SGA 遇ORA-00845

DG修改SGA 遇ORA-00845

WBOY
Release: 2016-06-07 17:58:15
Original
1437 people have browsed it

Oracle 11G: 生成PFILE文件: create pfile=/home/oracle/initorcl.ora from spfile; 修改PFILE中的*.memory_target=536870912 值。 然后重启数据库从新的PFILE文件启动到NOMOUNT状态。 SQL startup nomount pfile=/home/Oracle/initorcl.ora; ORA-00845: ME

Oracle 11G: 生成PFILE文件: create pfile='/home/oracle/initorcl.ora' from spfile;
修改PFILE中的*.memory_target=536870912 值。
然后重启数据库从新的PFILE文件启动到NOMOUNT状态。
SQL> startup nomount pfile='/home/Oracle/initorcl.ora';


ORA-00845: MEMORY_TARGET not supported on this system
原因是这个值大过了/dev/shm的值。
df -k /dev/shm
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   517600         0    517600   0% /dev/shm
解决方法:
修改FSTAB
vi /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults,size=1024m        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
重新挂载:
[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

再次启动数据库
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

可 以看到已经修改过来了。

最后验证同步功能。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template