[Oracle] sqlplus登录数据库时报错:ORA-12547

[Oracle] sqlplus登录数据库时报错:ORA-12547

在安装好oracle数据库后,sqlplus登录数据库发现报错:
ERROR:
ORA-12547: TNS:lost contact
Enter user-name:

参照官方文档(ID:552979.1)给出的建议进行处理:查看文件:

$ ls -ld bin/ora*
-rwsr-s--x 1 oracle dba 0 Aug 15 2005 bin/oracle
-rwxr-xr-x 1 oracle dba 0 Jun 22 2005 bin/oracleO

... and the <$ORACLE_HOME>/rdbms/lib/config.o object file is zero filesize as well ...
$ cd $ORACLE_HOME/rdbms/lib
$ ls -l config*
-rw-r----- 1 oracle dba 255 Jan 18 11:43 config.c
-rw-r----- 1 oracle dba   0 Jan 18 11:53 config.o

发现文件大小均为0
config.o was not generated during the installation, and it will not be re-compiled if it already exists. Remove the zero-length config.o and then re-compile oracle as mentioned below
$ cd $ORACLE_HOME/rdbms/lib
$ rm config.o
$ make -f ins_rdbms.mk config.o ioracle
$ ls -l config*
-rw-r----- 1 oracle dba  255 Jan 18 11:43 config.c
-rw-r--r-- 1 oracle dba 1448 Feb  6 14:56 config.o
$ cd $ORACLE HOME/bin
$ ls -l oracle*
-rwsr-s--x 1 oracle dba 112842648 Feb 6 14:57 oracle
-rwsr-s--x 1 oracle dba         0 Aug 15 2005 oracleO
这下使用sqlplus登录就正常了
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值