启动ArcSDE服务报:“ORA-12547: TNS:lost contact”

[arcsde@rhsde ~]$ sdemon -o start -p sde
-------------------------------------------------------
ArcSDE 10.0  for Oracle11g Build 685 Fri May 14 12:05:43  2010
-------------------------------------------------------

DB_open_instance()::db_connect (OCI8) error: 12547

init_DB DB_instance_open_as_dba: -51

DBMS error code: 12547
ORA-12547: TNS:lost contact



Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde.
我使用直连方式可以连接,说明ArcSDE Schema没有什么问题
解决方法:切换到oracle用户
[oracle@rhsde ~]$ relink all
writing relink log to: /opt/oracle/product/11.2.0/dbhome_1/install/relink.log

稍等即可!
但是Relink All这个命令轻易不能使用,这个如果是生产库,需要跟Oracle  DBA商量后再做决定!
---------------------------------------------------------------------
另外一个解决方法,这个是可以借鉴的
查了oracle的maintant link。获取如下信息:
Symptoms
- Not able to make a local connection.
- Getting the following error when trying to connect to scott/tiger

ERROR:
----------------
ORA-12547: TNS:lost contact
 
Cause
1. This could be due to kernel parameters settings
2. Incorrect permissions on the ORACLE executable 
 
Solution
To implement the solution, please execute the following steps:

1.
This could be due to kernel parameters settings
Please check the notes below that provide the required settings for kernel parameters
Note 169706.1 Oracle Database on AIX,HP-UX,Linux,MacOSX,Solaris,Tru64
Note 201021.1 SOLARIS: Quick Start Guide - 9.2.0 RDBMS Installation

2.
This could be due to Incorrect permissions on the ORACLE.exe
The 'ls' command should show permissions 6751 (as follows)

Please check the following:

$ cd $ORACLE_HOME/bin
$ ls -l oracle

The output should be
-rwsr-s--x 1 oracle dba

If not then please execute the following
$ chmod 6751 oracle

原因是第二个,用户执行执行了chmod 775对整个oracle文件夹了,但是$ORACLE_HOME/bin里面的oracle文件应该是6751.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值