您好,登錄后才能下訂單哦!
[oracle@up ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 10 19:26:05 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORA-00845: MEMORY_TARGET not supported on this system
SQL>
錯誤原因:tmpfs空間不能小于MEMORY_TARGET的值,tmpfs空間太小數(shù)據(jù)庫無法啟動
[root@up ~]# vi /u01/app/oracle/product/11.2.0/dbs/init.ora
db_name='ORCL'
memory_target=1G
processes = 150
audit_file_dest='<ORACLE_BASE>/admin/orcl/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
數(shù)據(jù)庫參數(shù)文件里memory_target參數(shù)的大小為1G
[root@up ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 26G 17G 7.4G 70% /
tmpfs 242M 0 242M 0% /dev/shm
/dev/sda1 190M 28M 153M 16% /boot
tmpfs空間大小242M,所以無法啟動數(shù)據(jù)庫
解決方法,在/etc/fstab里修改tmpfs的掛載選項,增大tmpfs的空間
[root@up ~]# vi /etc/fstab
UUID=a6948461-a0e3-4e64-bf75-e9a45864d48a / ext4 defaults 1 1
UUID=0d5a41b3-3988-467f-be75-93e0e4fad1e9 /boot ext4 defaults 1 2
UUID=bba460fd-bdbe-4a7e-ba49-4016f4633067 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=2G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
修改tmpfs掛載,將tmpfs空間大小設置為2G
重啟系統(tǒng)
[root@up ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 26G 17G 7.4G 70% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sda1 190M 28M 153M 16% /boot
更改后tmpfs為2G
[root@up ~]# su - oracle
[oracle@up ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 10 19:40:28 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 409194496 bytes
Fixed Size 2213856 bytes
Variable Size 301991968 bytes
Database Buffers 96468992 bytes
Redo Buffers 8519680 bytes
Database mounted.
Database opened.
問題解決,數(shù)據(jù)庫啟動完畢
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。