赞
踩
查看跟踪文件,报错信息:
Failed to get HAS home
PRCT-1011:无法运行“getcrshome”。详细错误:[]
解决办法:
更新主机名:
vi /etc/hosts 文件中添加主机IP和主机名
223.254.16.151 host151
vi /etc/sysconfig/network
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = host151
最后一定要更新
sudo hostnamectl set-hostname host151
报错:
TNS-12541:TNS:no listener
TNS-12560:TNS:protocol adapter error
TNS-00511:TNS:no listener
解决办法:
listener.ora
LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=host151)(PORT=1521)
)
)
)
SID_LIST_LISTE1=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=PROD)
(ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1)
(SID_NAME=PROD)
)
)
tnsnames.ora
PROD=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=host151)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=PROD))
)
格式一定要按照图片中的格式来,一个空格不要多,一个空格不要少,空格对配置文件的影响很大
报错:
TNS-12555:TNS:permission denied
TNS-12560:TNS:protocol adapter error
TNS-00525:TNS:Insufficient privilege for operation
根据提示查看报错日志:
一直在listen IPC
起作用的应该是TCP
删掉 listener.ora文件中
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。