oracle10g 基於linux6安裝問題收集
1.[[email protected] database]$ dbca -silent -responseFile /home/oracle/database/dbca.rsp
No command specified to perform. Please specify one of following commands:
createDatabase, createTemplateFromDB or createCloneTemplate
No command specified to perform. Please specify one of following commands:
createDatabase, createTemplateFromDB or createCloneTemplate
[[email protected] database]$ vi dbca.rsp
[GENERAL]
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "ora10g"
SID = "ora10g"
SYSPASSWORD = "sys"
SYSTEMPASSWORD = "system"
CHARACTERSET = "ZHS16GBK"
TEMPLATENAME = "/oracle/product/10.2.0/db_1/assistants/dbca/templates/General_Purpose.dbc"
EMCONFIGURATION = "LOCAL"
SYSMANPASSWORD = "sysman"
DBSNMPPASSWORD = "dbsnmp"
TEMPLATENAME參數位於[CREATEDATABASE]下
2
安裝數據庫後,啟動數據庫報錯:ORA-27125。
Oracle文檔上關於ORA-27125錯誤的描述為:
ORA-27125: unable to create shared memory segment
Cause: shmget() call failed
Action: contact Oracle support
查詢了一下,發現問題和linux上的hugetbl有關。
解決方法也很簡單,首先檢查oracle用戶的組信息:
[[email protected] ~]$ id oracle
uid=500(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)
[[email protected]
0
下面用root執行下面的命令,將dba組添加到系統內核中:
# echo 501 > /proc/sys/vm/hugetlb_shm_group
然後啟動數據庫,問題消失。
但以上這種方式在重啟操作系統後失效, /proc/sys/vm/hugetlb_shm_group又變為了0,建議采用以下方式解決:
加入vm.hugetlb_shm_group = 501 到/etc/sysctl.conf中來解決:
# vi /etc/sysctl.conf
加入如下的內容,其中501為dba組號,需要根據你實際的情況進行改變。
vm.hugetlb_shm_group = 501
# sysctl -p
oracle10g 基於linux6安裝問題收集