- 论坛徽章:
- 0
|
如何在客户端sqlplus用sys登录
我试了好多方法都不行呢……
- D:\MySql>[color=Red]sqlplus system/manager@hs01-new[/color]
- SQL*Plus: Release 8.1.6.0.0 - Production on 星期五 3月 19 09:17:37 2010
- (c) Copyright 1999 Oracle Corporation. All rights reserved.
- 连接到:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> [color=Red]conn sys/abc[/color]
- ERROR:
- ORA-12560: TNS: 协议适配器错误
- 警告: 您不再连接到 ORACLE。
- SQL> exit
- [color=Blue]--这样不行[/color]
- D:\MySql>sqlplus system/manager@hs01-new
- SQL*Plus: Release 8.1.6.0.0 - Production on 星期五 3月 19 09:20:38 2010
- (c) Copyright 1999 Oracle Corporation. All rights reserved.
- 连接到:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> alter user sys identified by abc;
- 用户已更改。
- SQL> exit
- 从Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options中断开
- [color=Blue]--为了保险,修改sys用户密码:ABC[/color]
- D:\MySql>[color=Red]sqlplus sys/abc@hs01-new[/color]
- SQL*Plus: Release 8.1.6.0.0 - Production on 星期五 3月 19 09:21:08 2010
- (c) Copyright 1999 Oracle Corporation. All rights reserved.
- ERROR:
- ORA-28009: 应当以 SYSDBA 身份或 SYSOPER 身份建立 SYS 连接
- 请输入用户名:
- ERROR:
- ORA-12560: TNS: 协议适配器错误
- 请输入用户名:
- ERROR:
- ORA-12560: TNS: 协议适配器错误
- SP2-0157: 在3次尝试之后无法 CONNECT 到 ORACLE, 退出 SQL*Plus
- [color=Blue]--这样也不行[/color]
- D:\MySql>[color=Red]sqlplus sys/abc@hs01-new as sysdba[/color]
- 用法: SQLPLUS [ [<option>] [<logon>] [<start>] ]
- 其中 <option> ::= - | -? | [ [-M <o>] [-R <n>] [-S] ]
- <登录> ::= <用户名>[/<口令>][@<connect_string>] | / | /NOLOG
- <启动> : : = @<文件名>[.<ext>] [<参数> ...]
- "-"显示使用语法
- "-?"显示 SQL*Plus 版本标帜
- "-M <o>" 使用 HTML 标志选项 <o>
- "-R <n>" uses restricted mode <n>
- "-S" uses silent mode
- -[color=Blue]-这样也不行[/color]
- D:\MySql>[color=Red]sqlplus system/manager@hs01-new[/color]
- SQL*Plus: Release 8.1.6.0.0 - Production on 星期五 3月 19 09:21:37 2010
- (c) Copyright 1999 Oracle Corporation. All rights reserved.
- 连接到:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> [color=Red]conn sys/abc as sysdba[/color]
- ERROR:
- ORA-12560: TNS: 协议适配器错误
- 警告: 您不再连接到 ORACLE。
- -[color=Blue]-这样也不行[/color]
复制代码 到底怎么都能用sys登录呢! |
|