[oracle@centosinfa ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 16 16:31:00 2013Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to an idle instance.SQL> startupORA-00845: MEMORY_TARGET not supported on this system
怎么回事啊
[oracle@centosinfa ~]$ oerr ora 0084500845, 00000, "MEMORY_TARGET not supported on this system"// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
查询一下SGA_MAX_SIZE的大小
SQL> show parameter SGA_MAX_SIZE;NAME TYPE VALUE------------------------------------ ----------- ------------------------------sga_max_size big integer 748MSQL>
[root@centosinfa ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root 50G 25G 23G 53% /tmpfs 1.0G 487M 537M 48% /dev/shm/dev/sda1 485M 76M 384M 17% /boot/dev/mapper/VolGroup-lv_home 48G 9.9G 36G 22% /home
所以只有增加/dev/shm的大小了。
[root@centosinfa ~]# vim /etc/fstab增加一个size,m代表MB,g代表GB。例如我的修改:[root@centosinfa ~]# grep shm /etc/fstab tmpfs /dev/shm tmpfs defaults,size=2000m 0 0
然后不用重启就生效:
[root@centosinfa ~]# mount -o remount tmpfs
OK,现在再来启动Oracle;
SQL> startupORACLE instance started.Total System Global Area 780824576 bytesFixed Size 2217424 bytesVariable Size 591399472 bytesDatabase Buffers 180355072 bytesRedo Buffers 6852608 bytesDatabase mounted.Database opened.