oracle创建实例报错处理
安装oracle之后执行dbca的时候报错;
超过十年行业经验,技术领先,服务至上的经营模式,全靠网络和口碑获得客户,为自己降低成本,也就是为客户降低成本。到目前业务范围包括了:成都做网站、网站建设,成都网站推广,成都网站优化,整体网络托管,成都小程序开发,微信开发,App定制开发,同时也可以让客户的网站和网络营销和我们一样获得订单和生意!
sh:/bin/ksh:Nosuch file or directory
怀疑是没有安装ksh包,yum installksh
搞定!
File “/etc/oratab” is not accessible
原来是没有执行root.sh脚本,在oracle的家目录下(cd$ORACLE_HOME)product/11.2.0/db_1/ 目录下执行./root.sh
执行之后还是有报错,
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name'LISTENER_ORCL'
怀疑是监听的问题,lsnrctlstart启动失败,具体的报错信息既不清楚了,于是重新添加监听。
执行netca的时候报错;
TNS-12545 Connect failed because target host or object does not exist
经过检查是由于tnsname.ora文件不存在导致的,因为oracle不是我安装的,不太清楚为什么没有这个文件。于是从其他服务器上拷贝了一份过来:
# tnsnames.ora Network Configuration File:/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
Oracle11g=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL =TCP)(HOST = *.*.*.*)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = orcl)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL =TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
拷贝之后执行lsnrctl,监听启动成功。
执行startup的时候
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
root@test~]# cat /etc/fstab | grep tmpfs
tmpfs /dev/shm tmpfs defaults 0 0
重新挂载shm分区 mount -oremount,size=8G /dev/shm
修改fstab使其永久生效vi/etc/fstab
/dev/mapper/vg_ccbfpp-lv_home/home ext4 defaults 1 2
/dev/mapper/vg_ccbfpp-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 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 /dev/shm tmpfs defaults,size=16g 0 0
df -h|grepshm
tmpfs 8G 0 16G 0% /dev/shm
SQL>startup
ORACLE instancestarted.
Total SystemGlobal Area 9420095488 bytes
FixedSize 2236248 bytes
VariableSize 2315255976 bytes
DatabaseBuffers 7046430720 bytes
RedoBuffers 56172544 bytes
Databasemounted.
Databaseopened.
SQL> exit
真是一波三折啊。
本文名称:oracle创建实例报错处理
标题来源:http://myzitong.com/article/ipsdio.html