免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1920 | 回复: 0
打印 上一主题 下一主题

redhat 下安装完oracle 9.2后,无法sqlplus 登陆,请大家看看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-29 16:08 |只看该作者 |倒序浏览
操作系统:redhat AS4.0

新装了oralce,建了个portaldb库,sqlplus 连不上本机该库,也连不上远程开发测试库

1.远程数据库,在其它机器可以登陆,在本机也可tnsping
/oracle/product/9.2/network/admin>tnsping crmdev

TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 29-OCT-2007 04:50:
39

Copyright (c) 1997, 2006, Oracle Corporation.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
) LOBAL_NAME = crmdev))TCP)(HOST = 10.153.195.55)(PORT = 1521))
OK (0 msec)

2.
/oracle/product/9.2/network/admin>sqlplus yydev/yyde@crmdev

SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 29 04:51:24 2007

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve service name


Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied

3.本机数据库,不可登陆
/oracle/product/9.2/network/admin>tnsping portaldb

TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 29-OCT-2007 04:52:
09

Copyright (c) 1997, 2006, Oracle Corporation.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = portaldb)P)(HOST = 10.147.134.12)(PORT = 1521))
OK (0 msec)
/oracle/product/9.2/network/admin>

4.

/oracle/product/9.2/network/admin>sqlplus system/sys@portaldb

SQL*Plus: Release 9.2.0.8.0 - Production on Mon Oct 29 04:46:52 2007

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve service name
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP