1.oracle两个sys用户:system,sysoper。可以定义登录的身份,一般:normal;dba:sysdba。
2.Linux:conn / as sysdba;直接进去
win不行。。。得:conn system或者sysoper/passwd@yangkai; 可以在后面加上 as sysdba;
--conn system/passwd as sysdba;
--conn system/passwd;
--conn sysoper/passwd as sysdba;
--conn sysoper/passwd;
如果oracle里面有多个实例,则就要指明实例(主机字符串):
--conn system/passwd@yangkai as sysdba;
3.win上的操作记录:cmd——sqlplusw,输入用户名和密码,主机字符串,就是实例名。一般一个oracle建一个实例,创建多个用户就行了。
- ERROR:
- ORA-28009: connection to sys should be as sysdba or sysoper
- 连接到:
- Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> conn sysoper/zhangle as sysdba;
- 已连接。
- SQL> show user;
- USER 为 "SYS"
- SQL> select * from v$instance;
- INSTANCE_NUMBER INSTANCE_NAME
- --------------- ----------------
- HOST_NAME
- ----------------------------------------------------------------
- VERSION STARTUP_TIME STATUS PAR THREAD# ARCHIVE LOG_SWITCH_
- ----------------- -------------- ------------ --- ---------- ------- -----------
- LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST
- ---------- --- ----------------- ------------------ ---------
- 1 yangkai
- PC2012042915CDD
- 10.1.0.2.0 09-6月 -12 OPEN NO 1 STOPPED
- ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL
- SQL>
阅读(9416) | 评论(0) | 转发(0) |