重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1422|回复: 0
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
楼主
发表于 2021-8-27 17:31:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在安装好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登录就正常了

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-30 11:19 , Processed in 0.092698 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表