DG修改SGA 遇ORA-00845

來源:互聯網
上載者:User

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

可 以看到已經修改過來了。

最後驗證同步功能。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.