【发布时间】:2017-06-03 15:33:33
【问题描述】:
我的电脑操作系统是 Windows 7 64 位。我刚刚下载并安装了 Oracle Express 11g Windows 64 位。在安装过程中,它要求我为我提供为 P@ssword1 的 SYS 和 SYSTEM 数据库帐户设置密码。安装过程中一切正常。
现在我想使用 SQL Plus 进行连接。所以我点击All Programs --> Oracle Database 11g Express Edition --> Run SQL Command Line 打开SQL Plus。
在那里我输入connect system/P@ssword1 并按Enter 键。但我收到此错误消息:ORA-12154: TNS:could not resolve the connect identifier specified
SQL*Plus:2017 年 1 月 18 日星期三 22:19:11 发布 11.2.0.2.0 生产版
版权所有 (c) 1982、2014、甲骨文。保留所有权利。
SQL> 连接系统/P@ssword1
错误:
ORA-12154:TNS:无法解析 指定的连接标识符SQL>
为什么我无法连接?
谢谢
【问题讨论】:
-
无论如何,最好不要在连接标识符中提供密码。只提供用户名,让系统提示您输入密码。
标签: database oracle oracle11g sqlplus oracle-xe