windows 2000的系统,oracle是9.2.0.1.0正式版
在cmd下做数据库的连接时,我使用命令sqlplus user/password@dbName 能够连接上数据库,而从大多数的资料上看到的使用sqlPlus连接数据库的指令是sqlplus conn user/password@dbName ,而我使用 sqlplus conn user/password@dbName 却连接不上,
说我使用的命令不对。
显示如下:
- C:/Documents and Settings/dong_ysheng>sqlplus conn user/password@DBname
- 用法: SQLPLUS [ [<option>] [<logon>] [<start>] ]
- 其中 <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
- <logon> ::= <username>[/<password>][@<connect_string>] | / | /NOLOG
- <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
- "-H" 显示 SQL*Plus 的版本标帜和使用语法
- "-V" 显示 SQL*Plus 的版本标帜
- "-L" 只尝试登录一次
- "-M <o>" 使用 HTML 标志选项 <o>
- "-R <n>" uses restricted mode <n>
- "-S" uses silent mode
看来是命令使用的不对。
命令应该为先运行 sqlplus
再运行 conn user/password@dbName
可运行完 sqlplus后
出现的界面如下:
- C:/Documents and Settings/dong_ysheng>sqlplus
- SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 10月 25 10:02:25 2008
- Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
- 请输入用户名: user
- 请输入口令:
我输入user和password,报出的异常如下:
- C:/Documents and Settings/dong_ysheng>sqlplus
- SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 10月 25 10:02:25 2008
- Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
- 请输入用户名: user
- 请输入口令:
- ERROR:
- ORA-01017: invalid username/password; logon denied
连接不上。想不通。