cmd下oracle数据库的连接问题

 

windows 2000的系统,oracle是9.2.0.1.0正式版

在cmd下做数据库的连接时,我使用命令sqlplus user/password@dbName 能够连接上数据库,而从大多数的资料上看到的使用sqlPlus连接数据库的指令是sqlplus conn user/password@dbName ,而我使用 sqlplus conn user/password@dbName 却连接不上,

说我使用的命令不对。

显示如下:

  1. C:/Documents and Settings/dong_ysheng>sqlplus conn user/password@DBname
  2. 用法: SQLPLUS [ [<option>] [<logon>] [<start>] ]
  3. 其中 <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
  4.      <logon>  ::= <username>[/<password>][@<connect_string>] | / | /NOLOG
  5.       <start>  ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
  6.         "-H" 显示 SQL*Plus 的版本标帜和使用语法
  7.         "-V" 显示 SQL*Plus 的版本标帜
  8. "-L" 只尝试登录一次
  9.         "-M <o>" 使用 HTML 标志选项 <o>
  10.         "-R <n>" uses restricted mode <n>
  11.         "-S" uses silent mode

 

看来是命令使用的不对。

命令应该为先运行 sqlplus

再运行 conn user/password@dbName

可运行完 sqlplus后

出现的界面如下:

  1. C:/Documents and Settings/dong_ysheng>sqlplus
  2. SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 10月 25 10:02:25 2008
  3. Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
  4. 请输入用户名:  user
  5. 请输入口令:

 

我输入user和password,报出的异常如下:

  1. C:/Documents and Settings/dong_ysheng>sqlplus
  2. SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 10月 25 10:02:25 2008
  3. Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
  4. 请输入用户名:  user
  5. 请输入口令:
  6. ERROR:
  7. ORA-01017: invalid username/password; logon denied

连接不上。想不通。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值