标签:gbk a10 lin get ati dba omd share fail
1.[oracle@rsyslogserver 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
[oracle@rsyslogserver 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用户的组信息:
[oracle@yans1 ~]$ id oracle
uid=500(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)
[oracle@yans1 ~]$ more /proc/sys/vm/hugetlb_shm_group
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
标签:gbk a10 lin get ati dba omd share fail
原文地址:http://www.cnblogs.com/unsine/p/6907631.html