- 论坛徽章:
- 0
|
操作系统: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 |
|