免费注册 查看新帖 |

Chinaunix

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

[数据库] 数据库导出时遇到的奇怪问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-30 12:04 |只看该作者 |倒序浏览
最近执行数据库导出时遇到一个很奇怪的问题,请各位大虾帮忙看看
[oracle@node1 admin]$ exp test/test123@orcl file=/data/111.dmp full=y

Export: Release 10.2.0.5.0 - Production on Thu May 30 11:54:14 2013

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


EXP-00056: ORACLE error 12154 encountered
ORA-12154: TNS:could not resolve the connect identifier specified
EXP-00000: Export terminated unsuccessfully
通过sqlplus / as sysdba登上数据库查看状态是OPEN,其它的也都正常,数据库监听也是正常的,通过PLSQL用test用户登陆也都OK
[oracle@guangxi1 admin]$ tnsping node1

TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 30-MAY-2013 11:56:59

Copyright (c) 1997,  2010, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.200.65)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (10 msec)
TNSPING显示OK

[oracle@guangxi1 admin]$ sqlplus test/test123@orcl

SQL*Plus: Release 10.2.0.5.0 - Production on Thu May 30 11:58:15 2013

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


Enter user-name: test
Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select instance_name,status from v$instance;

INSTANCE_NAME
------------------------------------------------
STATUS
------------------------------------
orcl
OPEN

SQL>
很奇怪,直接sqlplus test/test123@orcl登陆不了数据库,在输入用户名密码后又可以登陆,用户名和密码还是原来的test/test123,这种情况是哪里配置有问题呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP