sys用户连接db
在安装了客户端的软件后,就可以通过客户端的tnsname连接db了。
如果要用sys用户通过远程客户端的形式连接到db,那么sys用户必须以sysdba或sysoper的身份连接。
C:\>sqlplus sys
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 5月 10 15:35:49 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
输入口令:
ERROR:
ORA-28009: 应当以 SYSDBA 身份或 SYSOPER 身份建立 SYS 连接
ERROR:
ORA-28009: 应当以 SYSDBA 身份或 SYSOPER 身份建立 SYS 连接
请输入用户名:
ERROR:
ORA-01017: 用户名/口令无效; 登录被拒绝
请输入用户名:
ERROR:
ORA-01017: 用户名/口令无效; 登录被拒绝
SP2-0157: 在 3 次尝试之后无法连接到 ORACLE, 退出 SQL*Plus
C:\>
C:\>sqlplus sys as sysdba
C:\>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 5月 10 15:36:08 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
输入口令:
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
SQL> show user;
USER 为 "SYS"
SQL>
SQL> show user;
USER 为 "SYS"
SQL>
C:\>sqlplus sys/test@cw as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 5月 10 15:39:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
而普通用户(包括system用户)必须被授予了sysdba权限后才能以
C:\>sqlplus system/test@cw as sysdba 方式(sysdba方式)连db,
而授予dba权限是不行的。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24862808/viewspace-723240/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24862808/viewspace-723240/